From: Ian Coleman Date: Tue, 23 Aug 2016 08:22:12 +0000 (+1000) Subject: Test BIP44 derivation path is shown X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=d077e1e71643798614f66652509ca3a409e530a8;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git Test BIP44 derivation path is shown --- 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) { }, // BIP44 derivation path is shown +function() { +page.open(url, function(status) { + // set the phrase + var expected = "m/44'/0'/0'/0"; + page.evaluate(function() { + $(".phrase").val("abandon abandon ability"); + $(".phrase").trigger("input"); + }); + // check the derivation path of the first address + waitForGenerate(function() { + var actual = page.evaluate(function() { + return $("#bip44 .path").val(); + }); + if (actual != expected) { + console.log("BIP44 derivation path is incorrect"); + console.log("Expected: " + expected); + console.log("Actual: " + actual); + fail(); + } + next(); + }); +}); +}, + // TODO finish these tests // BIP44 extended private key is shown