aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Coleman <coleman.ian@gmail.com>2016-08-26 12:29:31 +1000
committerIan Coleman <coleman.ian@gmail.com>2016-08-26 12:29:31 +1000
commit8cd5e23162bd8b339954f9cd57fcb533e619a158 (patch)
tree820a06e994735493b5c74bb2f0e4027cd2f3f7cf
parent21372fab36d3a500feda29b52ae8d8a007c11f8f (diff)
downloadBIP39-8cd5e23162bd8b339954f9cd57fcb533e619a158.tar.gz
BIP39-8cd5e23162bd8b339954f9cd57fcb533e619a158.tar.zst
BIP39-8cd5e23162bd8b339954f9cd57fcb533e619a158.zip
Test private keys are shown in address table
-rw-r--r--tests.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests.js b/tests.js
index 6d24ecc..683af9b 100644
--- a/tests.js
+++ b/tests.js
@@ -1080,6 +1080,29 @@ page.open(url, function(status) {
1080}, 1080},
1081 1081
1082// Private key is shown 1082// Private key is shown
1083function() {
1084page.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