diff options
author | Ian Coleman <coleman.ian@gmail.com> | 2016-08-31 13:46:07 +1000 |
---|---|---|
committer | Ian Coleman <coleman.ian@gmail.com> | 2016-08-31 13:46:07 +1000 |
commit | 3563165943956529b9f35caa005db9f91a3d6c59 (patch) | |
tree | 30fcd2c590e3e453d6c51b2f3a730824a7483bd2 | |
parent | bfb3dab65c0770f024942f85974ef325beb371ce (diff) | |
download | BIP39-3563165943956529b9f35caa005db9f91a3d6c59.tar.gz BIP39-3563165943956529b9f35caa005db9f91a3d6c59.tar.zst BIP39-3563165943956529b9f35caa005db9f91a3d6c59.zip |
Test more addresses can be generated
-rw-r--r-- | tests.js | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -1186,6 +1186,33 @@ page.open(url, function(status) { | |||
1186 | }, | 1186 | }, |
1187 | 1187 | ||
1188 | // More addresses can be generated | 1188 | // More addresses can be generated |
1189 | function() { | ||
1190 | page.open(url, function(status) { | ||
1191 | // set the phrase | ||
1192 | page.evaluate(function() { | ||
1193 | $(".phrase").val("abandon abandon ability"); | ||
1194 | $(".phrase").trigger("input"); | ||
1195 | }); | ||
1196 | waitForGenerate(function() { | ||
1197 | // generate more addresses | ||
1198 | page.evaluate(function() { | ||
1199 | $(".more").click(); | ||
1200 | }); | ||
1201 | waitForGenerate(function() { | ||
1202 | // check there are more addresses | ||
1203 | var addressCount = page.evaluate(function() { | ||
1204 | return $(".address").length; | ||
1205 | }); | ||
1206 | if (addressCount != 40) { | ||
1207 | console.log("More addresses cannot be generated"); | ||
1208 | fail(); | ||
1209 | } | ||
1210 | next(); | ||
1211 | }); | ||
1212 | }); | ||
1213 | }); | ||
1214 | }, | ||
1215 | |||
1189 | // A custom number of additional addresses can be generated | 1216 | // A custom number of additional addresses can be generated |
1190 | // Additional addresses are shown in order of derivation path | 1217 | // Additional addresses are shown in order of derivation path |
1191 | 1218 | ||