diff options
author | Ian Coleman <coleman.ian@gmail.com> | 2016-08-23 18:22:12 +1000 |
---|---|---|
committer | Ian Coleman <coleman.ian@gmail.com> | 2016-08-23 18:22:28 +1000 |
commit | d077e1e71643798614f66652509ca3a409e530a8 (patch) | |
tree | 07a4e6d8c6092bc16fc7b25883de3398e071c490 | |
parent | cf7258fd4f822891f8906844177d2839f63e861b (diff) | |
download | BIP39-d077e1e71643798614f66652509ca3a409e530a8.tar.gz BIP39-d077e1e71643798614f66652509ca3a409e530a8.tar.zst BIP39-d077e1e71643798614f66652509ca3a409e530a8.zip |
Test BIP44 derivation path is shown
-rw-r--r-- | tests.js | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -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 |
528 | function() { | ||
529 | page.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 |