aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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