aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Coleman <coleman.ian@gmail.com>2017-08-07 18:58:08 +1000
committerIan Coleman <coleman.ian@gmail.com>2017-08-07 19:01:03 +1000
commitc18511dd0d3d1dfeec6c3f84985f3fecc34f3f8e (patch)
tree2e544d3890e336ef96f7587f7febe3c1be37cfbe
parent7ebdf61c9977b66c83263d5ec0ced6a68eb9e3d9 (diff)
downloadBIP39-c18511dd0d3d1dfeec6c3f84985f3fecc34f3f8e.tar.gz
BIP39-c18511dd0d3d1dfeec6c3f84985f3fecc34f3f8e.tar.zst
BIP39-c18511dd0d3d1dfeec6c3f84985f3fecc34f3f8e.zip
Add myriadcoin test
-rw-r--r--tests.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests.js b/tests.js
index 2e2e38b..4a67ed7 100644
--- a/tests.js
+++ b/tests.js
@@ -902,6 +902,36 @@ page.open(url, function(status) {
902}); 902});
903}, 903},
904 904
905// Network can be set to myriadcoin
906function() {
907page.open(url, function(status) {
908 // set the phrase and coin
909 var expected = "MJEswvRR46wh9BoiVj9DzKYMBkCramhoBV";
910 page.evaluate(function() {
911 $(".phrase").val("abandon abandon ability");
912 $(".phrase").trigger("input");
913 $(".network option[selected]").removeAttr("selected");
914 $(".network option").filter(function() {
915 return $(this).html() == "XMY - Myriadcoin";
916 }).prop("selected", true);
917 $(".network").trigger("change");
918 });
919 // check the address is generated correctly
920 waitForGenerate(function() {
921 var actual = page.evaluate(function() {
922 return $(".address:first").text();
923 });
924 if (actual != expected) {
925 console.log("Myriadcoin address is incorrect");
926 console.log("Expected: " + expected);
927 console.log("Actual: " + actual);
928 fail();
929 }
930 next();
931 });
932});
933},
934
905// BIP39 seed is set from phrase 935// BIP39 seed is set from phrase
906function() { 936function() {
907page.open(url, function(status) { 937page.open(url, function(status) {