diff options
-rw-r--r-- | tests.js | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -1702,6 +1702,34 @@ page.open(url, function(status) { | |||
1702 | 1702 | ||
1703 | // Github Issue 23 Part 2: Coin selection in derivation path | 1703 | // Github Issue 23 Part 2: Coin selection in derivation path |
1704 | // https://github.com/dcpos/bip39/issues/23#issuecomment-238011920 | 1704 | // https://github.com/dcpos/bip39/issues/23#issuecomment-238011920 |
1705 | function() { | ||
1706 | page.open(url, function(status) { | ||
1707 | // set the phrase | ||
1708 | page.evaluate(function() { | ||
1709 | $(".phrase").val("abandon abandon ability").trigger("input"); | ||
1710 | }); | ||
1711 | waitForGenerate(function() { | ||
1712 | // switch from bitcoin to clam | ||
1713 | page.evaluate(function() { | ||
1714 | $(".network").val("9").trigger("change"); | ||
1715 | }); | ||
1716 | waitForGenerate(function() { | ||
1717 | // check derivation path is displayed correctly | ||
1718 | var expected = "m/44'/23'/0'/0/0"; | ||
1719 | var actual = page.evaluate(function() { | ||
1720 | return $(".index:first").text(); | ||
1721 | }); | ||
1722 | if (actual != expected) { | ||
1723 | console.log("Github Issue 23 Part 2: Coin in BIP44 derivation path is incorrect"); | ||
1724 | console.log("Expected: " + expected); | ||
1725 | console.log("Actual: " + actual); | ||
1726 | fail(); | ||
1727 | } | ||
1728 | next(); | ||
1729 | }); | ||
1730 | }); | ||
1731 | }); | ||
1732 | }, | ||
1705 | 1733 | ||
1706 | // Github Issue 26: When using a Root key derrived altcoins are incorrect | 1734 | // Github Issue 26: When using a Root key derrived altcoins are incorrect |
1707 | // https://github.com/dcpos/bip39/issues/26 | 1735 | // https://github.com/dcpos/bip39/issues/26 |