From c9716df7ed80ab2ecac6144b90fb33a682c66f07 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Thu, 13 Mar 2014 12:25:35 -0400 Subject: [PATCH] s/isnot/is_not/ in harness.js For sake of harness.js interface harmony. --- src/test/content/harness.js | 2 +- src/test/content/test_collections.html | 2 +- src/test/content/test_document_body.html | 12 ++++++------ .../test_document_createProcessingInstruction.html | 2 +- src/test/content/test_document_doctype.html | 4 ++-- src/test/content/test_document_getElementById.html | 6 +++--- src/test/content/test_document_head.html | 4 ++-- src/test/content/test_document_implementation.html | 4 ++-- src/test/content/test_document_url.html | 4 ++-- src/test/content/test_node_replaceChild.html | 4 ++-- 10 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/test/content/harness.js b/src/test/content/harness.js index 72aa2712469..76540b2a1a5 100644 --- a/src/test/content/harness.js +++ b/src/test/content/harness.js @@ -21,12 +21,12 @@ function _printer(opstr, op) { } var is = _printer("==", function (a,b) { return a == b; }); +var is_not = _printer("!=", function (a,b) { return a != b; }); var is_a = _printer("is a", function (a,b) { return a instanceof b; }); var is_not_a = _printer("is not a", function (a,b) { return !(a instanceof b); }); var is_in = _printer("is in", function (a,b) { return a in b; }); var is_not_in = _printer("is not in", function (a,b) { return !(a in b); }); var as_str_is = _printer("as string is", function (a,b) { return String(a) == b; }); -var isnot = _printer("!=", function (a,b) { return a != b; }); var lt = _printer("<", function (a,b) { return a < b; }); var gt = _printer(">", function (a,b) { return a > b; }); var leq = _printer("<=", function (a,b) { return a <= b; }); diff --git a/src/test/content/test_collections.html b/src/test/content/test_collections.html index 323ee450938..6878f6b6c73 100644 --- a/src/test/content/test_collections.html +++ b/src/test/content/test_collections.html @@ -16,7 +16,7 @@ function check_collection(obj, num, classes, name) { classes = [Element, HTMLElement].concat(classes); for (var i=0; i // test1: existing document's body { - isnot(document.body, null, "test1-0, existing document's body"); + is_not(document.body, null, "test1-0, existing document's body"); is_a(document.body, HTMLBodyElement, "test1-1, exising document's body"); is(document.body && document.body.tagName, "BODY", "test1-2, existing document's body"); } @@ -14,7 +14,7 @@ // test2: replace document's body with new body { let new_body = document.createElement("body"); - isnot(new_body, null, "test2-0, replace document's body with new body"); + is_not(new_body, null, "test2-0, replace document's body with new body"); document.body = new_body; is(new_body, document.body, "test2-1, replace document's body with new body"); } @@ -22,7 +22,7 @@ // test3: replace document's body with new frameset { let new_frameset = document.createElement("frameset"); - isnot(new_frameset, null, "test2-0, replace document's body with new frameset"); + is_not(new_frameset, null, "test2-0, replace document's body with new frameset"); document.body = new_frameset; is(new_frameset, document.body, "test2-1, replace document's body with new frameset"); } @@ -33,7 +33,7 @@ new_document.appendChild(new_document.createElement("html")); let new_div = new_document.createElement("div"); - isnot(new_div, null, "test4-0, append an invalid element to a new document"); + is_not(new_div, null, "test4-0, append an invalid element to a new document"); new_document.body = new_div; is(new_document.body, null, "test4-1, append an invalid element to a new document"); @@ -45,7 +45,7 @@ new_document.appendChild(new_document.createElement("html")); let new_body = new_document.createElement("body"); - isnot(new_body, null, "test5-0, append body to a new document"); + is_not(new_body, null, "test5-0, append body to a new document"); is_a(new_body, HTMLBodyElement, "test5-1, append body to a new document"); is(new_body && new_body.tagName, "BODY", "test5-2, append body to a new document"); @@ -59,7 +59,7 @@ new_document.appendChild(new_document.createElement("html")); let new_frameset = new_document.createElement("frameset"); - isnot(new_frameset, null, "test6-0, append frameset to a new document"); + is_not(new_frameset, null, "test6-0, append frameset to a new document"); is_a(new_frameset, HTMLFrameSetElement, "test6-1, append frameset to a new document"); is(new_frameset && new_frameset.tagName, "FRAMESET", "test6-2, append frameset to a new document"); diff --git a/src/test/content/test_document_createProcessingInstruction.html b/src/test/content/test_document_createProcessingInstruction.html index c313f34a4de..e6d8384e144 100644 --- a/src/test/content/test_document_createProcessingInstruction.html +++ b/src/test/content/test_document_createProcessingInstruction.html @@ -6,7 +6,7 @@ // test1: createProcessingInstruction { var pi = document.createProcessingInstruction("xml-stylesheet", "href=\"mycss.css\" type=\"text/css\""); - isnot(pi, null, "test1-0: createProcessingInstruction"); + is_not(pi, null, "test1-0: createProcessingInstruction"); is_a(pi, ProcessingInstruction, "test1-1: createProcessingInstruction"); is(pi.target, "xml-stylesheet", "test1-2: createProcessingInstruction"); is(pi.data, "href=\"mycss.css\" type=\"text/css\"", "test1-3: createProcessingInstruction"); diff --git a/src/test/content/test_document_doctype.html b/src/test/content/test_document_doctype.html index 0f16cccbff7..bf9f1999243 100644 --- a/src/test/content/test_document_doctype.html +++ b/src/test/content/test_document_doctype.html @@ -6,8 +6,8 @@