diff options
author | Ian Coleman <coleman.ian@gmail.com> | 2016-08-26 12:29:31 +1000 |
---|---|---|
committer | Ian Coleman <coleman.ian@gmail.com> | 2016-08-26 12:29:31 +1000 |
commit | 8cd5e23162bd8b339954f9cd57fcb533e619a158 (patch) | |
tree | 820a06e994735493b5c74bb2f0e4027cd2f3f7cf | |
parent | 21372fab36d3a500feda29b52ae8d8a007c11f8f (diff) | |
download | BIP39-8cd5e23162bd8b339954f9cd57fcb533e619a158.tar.gz BIP39-8cd5e23162bd8b339954f9cd57fcb533e619a158.tar.zst BIP39-8cd5e23162bd8b339954f9cd57fcb533e619a158.zip |
Test private keys are shown in address table
-rw-r--r-- | tests.js | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -1080,6 +1080,29 @@ page.open(url, function(status) { | |||
1080 | }, | 1080 | }, |
1081 | 1081 | ||
1082 | // Private key is shown | 1082 | // Private key is shown |
1083 | function() { | ||
1084 | page.open(url, function(status) { | ||
1085 | var expected = "L26cVSpWFkJ6aQkPkKmTzLqTdLJ923e6CzrVh9cmx21QHsoUmrEE"; | ||
1086 | // set the phrase | ||
1087 | page.evaluate(function() { | ||
1088 | $(".phrase").val("abandon abandon ability").trigger("input"); | ||
1089 | }); | ||
1090 | // get the address | ||
1091 | waitForGenerate(function() { | ||
1092 | var actual = page.evaluate(function() { | ||
1093 | return $(".privkey:first").text(); | ||
1094 | }); | ||
1095 | if (actual != expected) { | ||
1096 | console.log("Private key is not shown"); | ||
1097 | console.log("Expected: " + expected); | ||
1098 | console.log("Got: " + actual); | ||
1099 | fail(); | ||
1100 | } | ||
1101 | next(); | ||
1102 | }); | ||
1103 | }); | ||
1104 | }, | ||
1105 | |||
1083 | // Private key visibility can be toggled | 1106 | // Private key visibility can be toggled |
1084 | 1107 | ||
1085 | // More addresses can be generated | 1108 | // More addresses can be generated |