aboutsummaryrefslogtreecommitdiff
path: root/tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests.js')
-rw-r--r--tests.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests.js b/tests.js
index 7f133cd..a04137f 100644
--- a/tests.js
+++ b/tests.js
@@ -525,6 +525,30 @@ page.open(url, function(status) {
525}, 525},
526 526
527// BIP44 derivation path is shown 527// BIP44 derivation path is shown
528function() {
529page.open(url, function(status) {
530 // set the phrase
531 var expected = "m/44'/0'/0'/0";
532 page.evaluate(function() {
533 $(".phrase").val("abandon abandon ability");
534 $(".phrase").trigger("input");
535 });
536 // check the derivation path of the first address
537 waitForGenerate(function() {
538 var actual = page.evaluate(function() {
539 return $("#bip44 .path").val();
540 });
541 if (actual != expected) {
542 console.log("BIP44 derivation path is incorrect");
543 console.log("Expected: " + expected);
544 console.log("Actual: " + actual);
545 fail();
546 }
547 next();
548 });
549});
550},
551
528// TODO finish these tests 552// TODO finish these tests
529 553
530// BIP44 extended private key is shown 554// BIP44 extended private key is shown