]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blobdiff - tests.js
Test placeholder for github issue 26
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / tests.js
index 9889e0b5887219487bf6c8774eaba4e2f6719e0a..47938a4b54a0905e3db20eae0124ad0a8daab2ee 100644 (file)
--- a/tests.js
+++ b/tests.js
@@ -457,6 +457,34 @@ page.open(url, function(status) {
 });
 },
 
+// Network can be set to dash
+function() {
+page.open(url, function(status) {
+    // set the phrase and coin
+    var expected = "XdbhtMuGsPSkE6bPdNTHoFSszQKmK4S5LT";
+    page.evaluate(function() {
+        $(".phrase").val("abandon abandon ability");
+        $(".phrase").trigger("input");
+        $(".network option[selected]").removeAttr("selected");
+        $(".network option[value=10]").prop("selected", true);
+        $(".network").trigger("change");
+    });
+    // check the address is generated correctly
+    waitForGenerate(function() {
+        var actual = page.evaluate(function() {
+            return $(".address:first").text();
+        });
+        if (actual != expected) {
+            console.log("DASH address is incorrect");
+            console.log("Expected: " + expected);
+            console.log("Actual: " + actual);
+            fail();
+        }
+        next();
+    });
+});
+},
+
 // BIP39 seed is set from phrase
 function() {
 page.open(url, function(status) {
@@ -1025,6 +1053,9 @@ page.open(url, function(status) {
 // Github Issue 23: Use correct derivation path when changing tabs
 // https://github.com/dcpos/bip39/issues/23
 
+// Github Issue 26: When using a Root key derrived altcoins are incorrect
+// https://github.com/dcpos/bip39/issues/26
+
 ];
 
 console.log("Running tests...");