diff options
author | Ian Coleman <coleman.ian@gmail.com> | 2016-08-24 19:26:41 +1000 |
---|---|---|
committer | Ian Coleman <coleman.ian@gmail.com> | 2016-08-24 19:49:18 +1000 |
commit | 5f844c622fb0c133feb3472769c6ee5bd547c67b (patch) | |
tree | f7ca384377185c01d9a76782a95523e6c62bae59 | |
parent | 9e9dcfdaa38eeb1e7d19d6eedb8bfe1b18880f56 (diff) | |
download | BIP39-5f844c622fb0c133feb3472769c6ee5bd547c67b.tar.gz BIP39-5f844c622fb0c133feb3472769c6ee5bd547c67b.tar.zst BIP39-5f844c622fb0c133feb3472769c6ee5bd547c67b.zip |
Test address table shows derivation path
-rw-r--r-- | tests.js | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -881,6 +881,30 @@ page.open(url, function(status) { | |||
881 | }, | 881 | }, |
882 | 882 | ||
883 | // Derivation path is shown in table | 883 | // Derivation path is shown in table |
884 | function() { | ||
885 | page.open(url, function(status) { | ||
886 | // set the phrase | ||
887 | var expected = "m/44'/0'/0'/0/0"; | ||
888 | page.evaluate(function() { | ||
889 | $(".phrase").val("abandon abandon ability"); | ||
890 | $(".phrase").trigger("input"); | ||
891 | }); | ||
892 | // check for derivation path in table | ||
893 | waitForGenerate(function() { | ||
894 | var actual = page.evaluate(function() { | ||
895 | return $(".index:first").text(); | ||
896 | }); | ||
897 | if (actual != expected) { | ||
898 | console.log("Derivation path shown incorrectly in table"); | ||
899 | console.log("Expected: " + expected); | ||
900 | console.log("Actual: " + actual); | ||
901 | fail(); | ||
902 | } | ||
903 | next(); | ||
904 | }); | ||
905 | }); | ||
906 | }, | ||
907 | |||
884 | // Derivation path for address can be hardened | 908 | // Derivation path for address can be hardened |
885 | // Derivation path visibility can be toggled | 909 | // Derivation path visibility can be toggled |
886 | // Address is shown | 910 | // Address is shown |