aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/index.html2
-rw-r--r--tests.js5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/index.html b/src/index.html
index 8a8bd75..529bccc 100644
--- a/src/index.html
+++ b/src/index.html
@@ -157,7 +157,7 @@
157 <select class="mnemonic-length form-control"> 157 <select class="mnemonic-length form-control">
158 <option value="raw">From entropy length (3 words per 32 bits)</option> 158 <option value="raw">From entropy length (3 words per 32 bits)</option>
159 <option value="12">12 Words</option> 159 <option value="12">12 Words</option>
160 <option value="15">15 Words</option> 160 <option value="15" selected>15 Words</option>
161 <option value="18">18 Words</option> 161 <option value="18">18 Words</option>
162 <option value="21">21 Words</option> 162 <option value="21">21 Words</option>
163 <option value="24">24 Words</option> 163 <option value="24">24 Words</option>
diff --git a/tests.js b/tests.js
index 0ce34bd..b0e7ef8 100644
--- a/tests.js
+++ b/tests.js
@@ -2237,6 +2237,7 @@ page.open(url, function(status) {
2237 // use entropy 2237 // use entropy
2238 page.evaluate(function() { 2238 page.evaluate(function() {
2239 $(".use-entropy").prop("checked", true).trigger("change"); 2239 $(".use-entropy").prop("checked", true).trigger("change");
2240 $(".mnemonic-length").val("raw");
2240 $(".entropy").val("00000000 00000000 00000000 00000000").trigger("input"); 2241 $(".entropy").val("00000000 00000000 00000000 00000000").trigger("input");
2241 }); 2242 });
2242 // check the mnemonic is set and address is correct 2243 // check the mnemonic is set and address is correct
@@ -2858,6 +2859,7 @@ page.open(url, function(status) {
2858 // use entropy 2859 // use entropy
2859 page.evaluate(function() { 2860 page.evaluate(function() {
2860 $(".use-entropy").prop("checked", true).trigger("change"); 2861 $(".use-entropy").prop("checked", true).trigger("change");
2862 $(".mnemonic-length").val("raw");
2861 }); 2863 });
2862 var nextTest = function runNextTest(i) { 2864 var nextTest = function runNextTest(i) {
2863 function getFeedbackError(expected, actual) { 2865 function getFeedbackError(expected, actual) {
@@ -2934,6 +2936,7 @@ page.open(url, function(status) {
2934 // use entropy 2936 // use entropy
2935 page.evaluate(function() { 2937 page.evaluate(function() {
2936 $(".use-entropy").prop("checked", true).trigger("change"); 2938 $(".use-entropy").prop("checked", true).trigger("change");
2939 $(".mnemonic-length").val("raw");
2937 var entropy = "00000000 00000000 00000000 00000000"; 2940 var entropy = "00000000 00000000 00000000 00000000";
2938 entropy += "11111111 11111111 11111111 1111"; // Missing last byte 2941 entropy += "11111111 11111111 11111111 1111"; // Missing last byte
2939 $(".entropy").val(entropy).trigger("input"); 2942 $(".entropy").val(entropy).trigger("input");
@@ -2960,6 +2963,7 @@ page.open(url, function(status) {
2960 // use entropy 2963 // use entropy
2961 page.evaluate(function() { 2964 page.evaluate(function() {
2962 $(".use-entropy").prop("checked", true).trigger("change"); 2965 $(".use-entropy").prop("checked", true).trigger("change");
2966 $(".mnemonic-length").val("raw");
2963 var entropy = ""; 2967 var entropy = "";
2964 // Generate a very long entropy string 2968 // Generate a very long entropy string
2965 for (var i=0; i<33; i++) { 2969 for (var i=0; i<33; i++) {
@@ -2993,6 +2997,7 @@ page.open(url, function(status) {
2993 // use entropy 2997 // use entropy
2994 page.evaluate(function() { 2998 page.evaluate(function() {
2995 $(".use-entropy").prop("checked", true).trigger("change"); 2999 $(".use-entropy").prop("checked", true).trigger("change");
3000 $(".mnemonic-length").val("raw");
2996 var entropy = "543210543210543210543210543210543210543210543210543210543210543210543210543210543210543210543210543"; 3001 var entropy = "543210543210543210543210543210543210543210543210543210543210543210543210543210543210543210543210543";
2997 $(".entropy").val(entropy).trigger("input"); 3002 $(".entropy").val(entropy).trigger("input");
2998 }); 3003 });