diff options
author | Karol Rychlicki <karol@dash.org> | 2017-06-16 19:30:15 +0200 |
---|---|---|
committer | Karol Rychlicki <karol@dash.org> | 2017-06-16 19:30:15 +0200 |
commit | c0386f3b78c31bc23c935603abe9ed9fafe300d4 (patch) | |
tree | cc4ddcd57e4e4538e18db66ab42f270fa4b101e3 /tests.js | |
parent | 56b1275f405f900872f95fc440c487fd478c3094 (diff) | |
download | BIP39-c0386f3b78c31bc23c935603abe9ed9fafe300d4.tar.gz BIP39-c0386f3b78c31bc23c935603abe9ed9fafe300d4.tar.zst BIP39-c0386f3b78c31bc23c935603abe9ed9fafe300d4.zip |
add dash testnet
Diffstat (limited to 'tests.js')
-rw-r--r-- | tests.js | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -601,6 +601,35 @@ page.open(url, function(status) { | |||
601 | }); | 601 | }); |
602 | }, | 602 | }, |
603 | 603 | ||
604 | function() { | ||
605 | page.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 |
605 | function() { | 634 | function() { |
606 | page.open(url, function(status) { | 635 | page.open(url, function(status) { |