aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Coleman <coleman.ian@gmail.com>2016-10-05 12:35:40 +1100
committerIan Coleman <coleman.ian@gmail.com>2016-10-05 12:35:40 +1100
commitaf4fd3a203b4148a13b8e3601036dc6105e7e7b8 (patch)
tree7a49e59476d79dec532188b10437689e5bc31cd3
parente3001539194016bb90790491a480e892152ac0e8 (diff)
downloadBIP39-af4fd3a203b4148a13b8e3601036dc6105e7e7b8.tar.gz
BIP39-af4fd3a203b4148a13b8e3601036dc6105e7e7b8.tar.zst
BIP39-af4fd3a203b4148a13b8e3601036dc6105e7e7b8.zip
Test coin selection is used in derivation path
-rw-r--r--tests.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests.js b/tests.js
index 557eaa7..1db6820 100644
--- a/tests.js
+++ b/tests.js
@@ -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
1705function() {
1706page.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