aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Coleman <coleman.ian@gmail.com>2016-08-24 19:26:41 +1000
committerIan Coleman <coleman.ian@gmail.com>2016-08-24 19:49:18 +1000
commit5f844c622fb0c133feb3472769c6ee5bd547c67b (patch)
treef7ca384377185c01d9a76782a95523e6c62bae59
parent9e9dcfdaa38eeb1e7d19d6eedb8bfe1b18880f56 (diff)
downloadBIP39-5f844c622fb0c133feb3472769c6ee5bd547c67b.tar.gz
BIP39-5f844c622fb0c133feb3472769c6ee5bd547c67b.tar.zst
BIP39-5f844c622fb0c133feb3472769c6ee5bd547c67b.zip
Test address table shows derivation path
-rw-r--r--tests.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests.js b/tests.js
index 2c304f3..83c99d9 100644
--- a/tests.js
+++ b/tests.js
@@ -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
884function() {
885page.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