aboutsummaryrefslogtreecommitdiff
path: root/tests.js
diff options
context:
space:
mode:
authorKarol Rychlicki <karol@dash.org>2017-06-16 19:30:15 +0200
committerKarol Rychlicki <karol@dash.org>2017-06-16 19:30:15 +0200
commitc0386f3b78c31bc23c935603abe9ed9fafe300d4 (patch)
treecc4ddcd57e4e4538e18db66ab42f270fa4b101e3 /tests.js
parent56b1275f405f900872f95fc440c487fd478c3094 (diff)
downloadBIP39-c0386f3b78c31bc23c935603abe9ed9fafe300d4.tar.gz
BIP39-c0386f3b78c31bc23c935603abe9ed9fafe300d4.tar.zst
BIP39-c0386f3b78c31bc23c935603abe9ed9fafe300d4.zip
add dash testnet
Diffstat (limited to 'tests.js')
-rw-r--r--tests.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests.js b/tests.js
index ecd9f9a..f346729 100644
--- a/tests.js
+++ b/tests.js
@@ -601,6 +601,35 @@ page.open(url, function(status) {
601}); 601});
602}, 602},
603 603
604function() {
605page.open(url, function(status) {
606 // set the phrase and coin
607 var expected = "yaR52EN4oojdJfBgzWJTymC4uuCLPT29Gw";
608 page.evaluate(function() {
609 $(".phrase").val("abandon abandon ability");
610 $(".phrase").trigger("input");
611 $(".network option[selected]").removeAttr("selected");
612 $(".network option").filter(function() {
613 return $(this).html() == "DASH Testnet";
614 }).prop("selected", true);
615 $(".network").trigger("change");
616 });
617 // check the address is generated correctly
618 waitForGenerate(function() {
619 var actual = page.evaluate(function() {
620 return $(".address:first").text();
621 });
622 if (actual != expected) {
623 console.log("DASH Testnet address is incorrect");
624 console.log("Expected: " + expected);
625 console.log("Actual: " + actual);
626 fail();
627 }
628 next();
629 });
630});
631},
632
604// Network can be set to game 633// Network can be set to game
605function() { 634function() {
606page.open(url, function(status) { 635page.open(url, function(status) {