$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
- return $(this).html() == "Bitcoin Testnet";
+ return $(this).html() == "BTC - Bitcoin Testnet";
}).prop("selected", true);
$(".network").trigger("change");
});
$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
- return $(this).html() == "Litecoin";
+ return $(this).html() == "LTC - Litecoin";
}).prop("selected", true);
$(".network").trigger("change");
});
$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
- return $(this).html() == "Ripple";
+ return $(this).html() == "XRP - Ripple";
}).prop("selected", true);
$(".network").trigger("change");
});
$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
- return $(this).html() == "Dogecoin";
+ return $(this).html() == "DOGE - Dogecoin";
}).prop("selected", true);
$(".network").trigger("change");
});
$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
- return $(this).html() == "ShadowCash";
+ return $(this).html() == "SDC - ShadowCash";
}).prop("selected", true);
$(".network").trigger("change");
});
$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
- return $(this).html() == "ShadowCash Testnet";
+ return $(this).html() == "SDC - ShadowCash Testnet";
}).prop("selected", true);
$(".network").trigger("change");
});
$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
- return $(this).html() == "Viacoin";
+ return $(this).html() == "VIA - Viacoin";
}).prop("selected", true);
$(".network").trigger("change");
});
$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
- return $(this).html() == "Viacoin Testnet";
+ return $(this).html() == "VIA - Viacoin Testnet";
}).prop("selected", true);
$(".network").trigger("change");
});
$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
- return $(this).html() == "Jumbucks";
+ return $(this).html() == "JBS - Jumbucks";
}).prop("selected", true);
$(".network").trigger("change");
});
$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
- return $(this).html() == "CLAM";
+ return $(this).html() == "CLAM - Clams";
}).prop("selected", true);
$(".network").trigger("change");
});
});
},
+// Network can be set to crown
+function() {
+page.open(url, function(status) {
+ // set the phrase and coin
+ var expected = "18pWSwSUAQdiwMHUfFZB1fM2xue9X1FqE5";
+ page.evaluate(function() {
+ $(".phrase").val("abandon abandon ability");
+ $(".phrase").trigger("input");
+ $(".network option[selected]").removeAttr("selected");
+ $(".network option").filter(function() {
+ return $(this).html() == "CRW - Crown";
+ }).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("CRW address is incorrect");
+ console.log("Expected: " + expected);
+ console.log("Actual: " + actual);
+ fail();
+ }
+ next();
+ });
+});
+},
+
// Network can be set to dash
function() {
page.open(url, function(status) {
$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
- return $(this).html() == "DASH";
+ return $(this).html() == "DASH - Dash";
}).prop("selected", true);
$(".network").trigger("change");
});
$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
- return $(this).html() == "DASH Testnet";
+ return $(this).html() == "DASH - Dash Testnet";
}).prop("selected", true);
$(".network").trigger("change");
});
$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
- return $(this).html() == "GAME";
+ return $(this).html() == "GAME - GameCredits";
}).prop("selected", true);
$(".network").trigger("change");
});
$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
- return $(this).html() == "Namecoin";
+ return $(this).html() == "NMC - Namecoin";
}).prop("selected", true);
$(".network").trigger("change");
});
$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
- return $(this).html() == "Peercoin";
+ return $(this).html() == "PPC - Peercoin";
}).prop("selected", true);
$(".network").trigger("change");
});
$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
- return $(this).html() == "Ethereum";
+ return $(this).html() == "ETH - Ethereum";
}).prop("selected", true);
$(".network").trigger("change");
});
$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
- return $(this).html() == "Slimcoin";
+ return $(this).html() == "SLM - Slimcoin";
}).prop("selected", true);
$(".network").trigger("change");
});
$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
- return $(this).html() == "Slimcoin Testnet";
+ return $(this).html() == "SLM - Slimcoin Testnet";
}).prop("selected", true);
$(".network").trigger("change");
});
// 4) switch from bitcoin to litecoin
page.evaluate(function() {
$(".network option").filter(function() {
- return $(this).html() == "Litecoin";
+ return $(this).html() == "LTC - Litecoin";
}).prop("selected", true);
$(".network").trigger("change");
});
// switch from bitcoin to clam
page.evaluate(function() {
$(".network option").filter(function() {
- return $(this).html() == "CLAM";
+ return $(this).html() == "CLAM - Clams";
}).prop("selected", true);
$(".network").trigger("change");
});
// 4) switch from bitcoin to viacoin
page.evaluate(function() {
$(".network option").filter(function() {
- return $(this).html() == "Viacoin";
+ return $(this).html() == "VIA - Viacoin";
}).prop("selected", true);
$(".network").trigger("change");
});