From af4fd3a203b4148a13b8e3601036dc6105e7e7b8 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Wed, 5 Oct 2016 12:35:40 +1100 Subject: Test coin selection is used in derivation path --- tests.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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) { // Github Issue 23 Part 2: Coin selection in derivation path // https://github.com/dcpos/bip39/issues/23#issuecomment-238011920 +function() { +page.open(url, function(status) { + // set the phrase + page.evaluate(function() { + $(".phrase").val("abandon abandon ability").trigger("input"); + }); + waitForGenerate(function() { + // switch from bitcoin to clam + page.evaluate(function() { + $(".network").val("9").trigger("change"); + }); + waitForGenerate(function() { + // check derivation path is displayed correctly + var expected = "m/44'/23'/0'/0/0"; + var actual = page.evaluate(function() { + return $(".index:first").text(); + }); + if (actual != expected) { + console.log("Github Issue 23 Part 2: Coin in BIP44 derivation path is incorrect"); + console.log("Expected: " + expected); + console.log("Actual: " + actual); + fail(); + } + next(); + }); + }); +}); +}, // Github Issue 26: When using a Root key derrived altcoins are incorrect // https://github.com/dcpos/bip39/issues/26 -- cgit v1.2.3