]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Template code in comment for future tests.
authorIan Coleman <coleman.ian@gmail.com>
Wed, 5 Oct 2016 01:37:01 +0000 (12:37 +1100)
committerIan Coleman <coleman.ian@gmail.com>
Wed, 5 Oct 2016 01:37:01 +0000 (12:37 +1100)
tests.js

index 3518aa04f601a6be921e1fee11cc06f167733586..1b2ae4c2f0c6dd01f6f9ac7f69bf7d946205f584 100644 (file)
--- a/tests.js
+++ b/tests.js
@@ -1762,6 +1762,37 @@ page.open(url, function(status) {
 });
 },
 
+// If you wish to add more tests, do so here...
+
+// Here is a blank test template
+/*
+
+function() {
+page.open(url, function(status) {
+    // Do something on the page
+    page.evaluate(function() {
+        $(".phrase").val("abandon abandon ability").trigger("input");
+    });
+    waitForGenerate(function() {
+        // Check the result of doing the thing
+        var expected = "1Di3Vp7tBWtyQaDABLAjfWtF6V7hYKJtug";
+        var actual = page.evaluate(function() {
+            return $(".address:first").text();
+        });
+        if (actual != expected) {
+            console.log("A specific message about what failed");
+            console.log("Expected: " + expected);
+            console.log("Actual: " + actual);
+            fail();
+        }
+        // Run the next test
+        next();
+    });
+});
+},
+
+*/
+
 ];
 
 console.log("Running tests...");