myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject [myfaces-tobago] 01/02: replace == with === in JS Tests
Date Thu, 21 Jun 2018 13:44:25 GMT
This is an automated email from the ASF dual-hosted git repository.

lofwyr pushed a commit to branch tobago-3.0.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git

commit eb70ae631cf602597d965d43e934a1a01a340cf2
Author: Udo Schnurpfeil <lofwyr@apache.org>
AuthorDate: Thu Jun 21 14:49:47 2018 +0200

    replace == with === in JS Tests
---
 .../20-component/010-input/10-in/in.test.js        |  2 +-
 .../20-selectOneChoice/selectOneChoice.test.js     | 12 +--
 .../30-selectOneRadio/selectOneRadio.test.js       | 12 +--
 .../40-selectOneListbox/selectOneListbox.test.js   |  4 +-
 .../selectManyCheckbox.test.js                     |  6 +-
 .../content/20-component/060-popup/popup.test.js   | 30 +++----
 .../080-sheet/10-sort/sheet-sorting.test.js        | 96 +++++++++++-----------
 .../30-concept/08-form/20-ajax/form-ajax.test.js   |  2 +-
 .../00-collapsible-box/collapsible-box.test.js     |  4 +-
 .../10-collapsible-popup/collapsible-popup.test.js | 26 +++---
 .../20-collapsible-panel/collapsible-panel.test.js |  4 +-
 .../collapsible-section.test.js                    | 44 +++++-----
 .../15-suggest-method/suggest-method.test.js       |  4 +-
 .../40-test/4000-button+link/button+link.test.js   |  4 +-
 .../content/40-test/6000-event/event.test.js       | 28 +++----
 15 files changed, 139 insertions(+), 139 deletions(-)

diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/10-in/in.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/10-in/in.test.js
index a15a21a..5ac1cf8 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/10-in/in.test.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/10-in/in.test.js
@@ -41,7 +41,7 @@ QUnit.test("ajax change event", function (assert) {
 
   waitForAjax(function () {
     $outputField = jQueryFrame("#page\\:mainForm\\:outputAjax span:first");
-    return $outputField.text() == "qwe";
+    return $outputField.text() === "qwe";
   }, function () {
     $outputField = jQueryFrame("#page\\:mainForm\\:outputAjax span:first");
     assert.equal($outputField.text(), "qwe");
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/20-selectOneChoice/selectOneChoice.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/20-selectOneChoice/selectOneChoice.test.js
index 1613ed6..1f4964a 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/20-selectOneChoice/selectOneChoice.test.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/20-selectOneChoice/selectOneChoice.test.js
@@ -63,8 +63,8 @@ QUnit.test("ajax: select Mars", function (assert) {
 
   waitForAjax(function () {
     $moons = jQueryFrame("#page\\:mainForm\\:moonbox\\:\\:field option");
-    return $moons.eq(0).text() == "Phobos"
-        && $moons.eq(1).text() == "Deimos";
+    return $moons.eq(0).text() === "Phobos"
+        && $moons.eq(1).text() === "Deimos";
   }, function () {
     $moons = jQueryFrame("#page\\:mainForm\\:moonbox\\:\\:field option");
     assert.equal($moons.eq(0).text(), "Phobos");
@@ -85,10 +85,10 @@ QUnit.test("ajax: select Jupiter", function (assert) {
 
   waitForAjax(function () {
     $moons = jQueryFrame("#page\\:mainForm\\:moonbox\\:\\:field option");
-    return $moons.eq(0).text() == "Europa"
-        && $moons.eq(1).text() == "Ganymed"
-        && $moons.eq(2).text() == "Io"
-        && $moons.eq(3).text() == "Kallisto";
+    return $moons.eq(0).text() === "Europa"
+        && $moons.eq(1).text() === "Ganymed"
+        && $moons.eq(2).text() === "Io"
+        && $moons.eq(3).text() === "Kallisto";
   }, function () {
     $moons = jQueryFrame("#page\\:mainForm\\:moonbox\\:\\:field option");
     assert.equal($moons.eq(0).text(), "Europa");
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/30-selectOneRadio/selectOneRadio.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/30-selectOneRadio/selectOneRadio.test.js
index 13b7d2d..5baf8a6 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/30-selectOneRadio/selectOneRadio.test.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/30-selectOneRadio/selectOneRadio.test.js
@@ -71,8 +71,8 @@ QUnit.test("ajax: select Mars", function (assert) {
 
   waitForAjax(function () {
     $moons = jQueryFrame("#page\\:mainForm\\:moonradio li label");
-    return $moons.eq(0).text() == "Phobos"
-        && $moons.eq(1).text() == "Deimos";
+    return $moons.eq(0).text() === "Phobos"
+        && $moons.eq(1).text() === "Deimos";
   }, function () {
     $moons = jQueryFrame("#page\\:mainForm\\:moonradio li label");
     assert.equal($moons.eq(0).text(), "Phobos");
@@ -93,10 +93,10 @@ QUnit.test("ajax: select Jupiter", function (assert) {
 
   waitForAjax(function () {
     $moons = jQueryFrame("#page\\:mainForm\\:moonradio li label");
-    return $moons.eq(0).text() == "Europa"
-        && $moons.eq(1).text() == "Ganymed"
-        && $moons.eq(2).text() == "Io"
-        && $moons.eq(3).text() == "Kallisto";
+    return $moons.eq(0).text() === "Europa"
+        && $moons.eq(1).text() === "Ganymed"
+        && $moons.eq(2).text() === "Io"
+        && $moons.eq(3).text() === "Kallisto";
   }, function () {
     $moons = jQueryFrame("#page\\:mainForm\\:moonradio li label");
     assert.equal($moons.eq(0).text(), "Europa");
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/40-selectOneListbox/selectOneListbox.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/40-selectOneListbox/selectOneListbox.test.js
index c52faf4..acbd409 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/40-selectOneListbox/selectOneListbox.test.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/40-selectOneListbox/selectOneListbox.test.js
@@ -69,7 +69,7 @@ QUnit.test("ajax: select Everest", function (assert) {
 
   waitForAjax(function () {
     $output = jQueryFrame("#page\\:mainForm\\:selectedMountain span");
-    return $output.text() == "8848 m";
+    return $output.text() === "8848 m";
   }, function () {
     $output = jQueryFrame("#page\\:mainForm\\:selectedMountain span");
     assert.equal($output.text(), "8848 m");
@@ -91,7 +91,7 @@ QUnit.test("ajax: select Makalu", function (assert) {
 
   waitForAjax(function () {
     $output = jQueryFrame("#page\\:mainForm\\:selectedMountain span");
-    return $output.text() == "8481 m";
+    return $output.text() === "8481 m";
   }, function () {
     $output = jQueryFrame("#page\\:mainForm\\:selectedMountain span");
     assert.equal($output.text(), "8481 m");
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/50-selectManyCheckbox/selectManyCheckbox.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/50-selectManyCheckbox/selectManyCheckbox.test.js
index f521f1c..5ad9248 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/50-selectManyCheckbox/selectManyCheckbox.test.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/50-selectManyCheckbox/selectManyCheckbox.test.js
@@ -71,7 +71,7 @@ QUnit.test("ajax: click 'Two'", function (assert) {
 
   waitForAjax(function () {
     $output = jQueryFrame("#page\\:mainForm\\:resultOutput span");
-    return $output.text() == newOutputValue;
+    return $output.text() === newOutputValue;
   }, function () {
     $output = jQueryFrame("#page\\:mainForm\\:resultOutput span");
     assert.equal($output.text(), newOutputValue);
@@ -97,7 +97,7 @@ QUnit.test("ajax: click 'Three'", function (assert) {
 
   waitForAjax(function () {
     $output = jQueryFrame("#page\\:mainForm\\:resultOutput span");
-    return $output.text() == newOutputValue;
+    return $output.text() === newOutputValue;
   }, function () {
     $output = jQueryFrame("#page\\:mainForm\\:resultOutput span");
     assert.equal($output.text(), newOutputValue);
@@ -123,7 +123,7 @@ QUnit.test("ajax: click 'Two'", function (assert) {
 
   waitForAjax(function () {
     $output = jQueryFrame("#page\\:mainForm\\:resultOutput span");
-    return $output.text() == newOutputValue;
+    return $output.text() === newOutputValue;
   }, function () {
     $output = jQueryFrame("#page\\:mainForm\\:resultOutput span");
     assert.equal($output.text(), newOutputValue);
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/060-popup/popup.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/060-popup/popup.test.js
index d9edf07..d4f9db0 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/060-popup/popup.test.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/060-popup/popup.test.js
@@ -28,7 +28,7 @@ QUnit.test("Open 'Simple Popup' and press 'Cancel'.", function(assert) {
   $openButton.click();
 
   jQuery("#page\\:testframe").on("load", function() {
-    if (step == 1) {
+    if (step === 1) {
       $popup = jQueryFrame("#page\\:mainForm\\:form1\\:popup input");
       assert.equal($popup.attr("value"), "false");
 
@@ -37,7 +37,7 @@ QUnit.test("Open 'Simple Popup' and press 'Cancel'.", function(assert) {
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $popup = jQueryFrame("#page\\:mainForm\\:form1\\:popup input");
       assert.equal($popup.attr("value"), "true");
 
@@ -63,7 +63,7 @@ QUnit.test("Open 'Simple Popup', press 'Submit' while field is empty. Press 'Can
   $openButton.click();
 
   jQuery("#page\\:testframe").on("load", function() {
-    if (step == 1) {
+    if (step === 1) {
       $popup = jQueryFrame("#page\\:mainForm\\:form1\\:popup input");
       $inputField = jQueryFrame("#page\\:mainForm\\:form1\\:popup\\:in1\\:\\:field");
       $submitButton = jQueryFrame("#page\\:mainForm\\:form1\\:popup\\:submit1");
@@ -74,7 +74,7 @@ QUnit.test("Open 'Simple Popup', press 'Submit' while field is empty. Press 'Can
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $popup = jQueryFrame("#page\\:mainForm\\:form1\\:popup input");
       $cancelButton = jQueryFrame("#page\\:mainForm\\:form1\\:popup\\:cancel1");
 
@@ -83,7 +83,7 @@ QUnit.test("Open 'Simple Popup', press 'Submit' while field is empty. Press 'Can
 
       step++;
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $popup = jQueryFrame("#page\\:mainForm\\:form1\\:popup input");
       $output = jQueryFrame("#page\\:mainForm\\:form1\\:output span");
 
@@ -111,7 +111,7 @@ QUnit.test("Open 'Simple Popup', press 'Submit' while field has content. Press '
   $openButton.click();
 
   jQuery("#page\\:testframe").on("load", function() {
-    if (step == 1) {
+    if (step === 1) {
       $popup = jQueryFrame("#page\\:mainForm\\:form1\\:popup input");
       $inputField = jQueryFrame("#page\\:mainForm\\:form1\\:popup\\:in1\\:\\:field");
       $submitButton = jQueryFrame("#page\\:mainForm\\:form1\\:popup\\:submit1");
@@ -122,7 +122,7 @@ QUnit.test("Open 'Simple Popup', press 'Submit' while field has content. Press '
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $popup = jQueryFrame("#page\\:mainForm\\:form1\\:popup input");
       $cancelButton = jQueryFrame("#page\\:mainForm\\:form1\\:popup\\:cancel1");
 
@@ -131,7 +131,7 @@ QUnit.test("Open 'Simple Popup', press 'Submit' while field has content. Press '
 
       step++;
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $popup = jQueryFrame("#page\\:mainForm\\:form1\\:popup input");
       $output = jQueryFrame("#page\\:mainForm\\:form1\\:output span");
 
@@ -160,7 +160,7 @@ QUnit.test("Open 'Simple Popup', press 'Submit & Close' while field is empty. Pr
   $openButton.click();
 
   jQuery("#page\\:testframe").on("load", function() {
-    if (step == 1) {
+    if (step === 1) {
       $popup = jQueryFrame("#page\\:mainForm\\:form1\\:popup input");
       $inputField = jQueryFrame("#page\\:mainForm\\:form1\\:popup\\:in1\\:\\:field");
       $submitCloseButton = jQueryFrame("#page\\:mainForm\\:form1\\:popup\\:submitClose1");
@@ -171,7 +171,7 @@ QUnit.test("Open 'Simple Popup', press 'Submit & Close' while field is empty. Pr
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $popup = jQueryFrame("#page\\:mainForm\\:form1\\:popup input");
       $cancelButton = jQueryFrame("#page\\:mainForm\\:form1\\:popup\\:cancel1");
 
@@ -180,7 +180,7 @@ QUnit.test("Open 'Simple Popup', press 'Submit & Close' while field is empty. Pr
 
       step++;
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $popup = jQueryFrame("#page\\:mainForm\\:form1\\:popup input");
       $output = jQueryFrame("#page\\:mainForm\\:form1\\:output span");
 
@@ -208,7 +208,7 @@ QUnit.test("Open 'Simple Popup', press 'Submit & Close' while field has content.
   $openButton.click();
 
   jQuery("#page\\:testframe").on("load", function() {
-    if (step == 1) {
+    if (step === 1) {
       $popup = jQueryFrame("#page\\:mainForm\\:form1\\:popup input");
       $inputField = jQueryFrame("#page\\:mainForm\\:form1\\:popup\\:in1\\:\\:field");
       $submitCloseButton = jQueryFrame("#page\\:mainForm\\:form1\\:popup\\:submitClose1");
@@ -219,7 +219,7 @@ QUnit.test("Open 'Simple Popup', press 'Submit & Close' while field has content.
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $popup = jQueryFrame("#page\\:mainForm\\:form1\\:popup input");
       $output = jQueryFrame("#page\\:mainForm\\:form1\\:output span");
 
@@ -267,7 +267,7 @@ QUnit.test("Open 'Client Popup', press 'Submit' while field is empty. Press 'Can
 
   waitForAjax(function() {
     $messages = jQueryFrame("#page\\:mainForm\\:form2\\:clientPopup\\:messages");
-    return $messages.length == 1;
+    return $messages.length === 1;
   }, function() {
     $output = jQueryFrame("#page\\:mainForm\\:form2\\:output span");
     $messages = jQueryFrame("#page\\:mainForm\\:form2\\:clientPopup\\:messages");
@@ -302,7 +302,7 @@ QUnit.test("Open 'Client Popup', press 'Submit' while field has content. Press '
 
   waitForAjax(function() {
     $messages = jQueryFrame("#page\\:mainForm\\:form2\\:clientPopup\\:messages");
-    return $messages.length == 0;
+    return $messages.length === 0;
   }, function() {
     $output = jQueryFrame("#page\\:mainForm\\:form2\\:out span");
     $messages = jQueryFrame("#page\\:mainForm\\:form2\\:clientPopup\\:messages");
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/10-sort/sheet-sorting.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/10-sort/sheet-sorting.test.js
index 9348a35..20ce23d 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/10-sort/sheet-sorting.test.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/10-sort/sheet-sorting.test.js
@@ -41,13 +41,13 @@ QUnit.test("Basics: Name", function(assert) {
   var $rows = jQueryFrame(Selectors.s1rows);
   var $leftPaging = jQueryFrame(Selectors.s1leftPaging);
 
-  if ($colName.find(".fa-angle-up").length != 1) {
+  if ($colName.find(".fa-angle-up").length !== 1) {
     $colName.click();
   }
 
   waitForAjax(function() {
     $colName = jQueryFrame(Selectors.s1colName);
-    return $colName.find(".fa-angle-up").length == 1;
+    return $colName.find(".fa-angle-up").length === 1;
   }, function() {
     $colName = jQueryFrame(Selectors.s1colName);
     assert.equal($colName.find(".fa-angle-up").length, 1);
@@ -121,13 +121,13 @@ QUnit.test("Basics: Period", function(assert) {
   var $rows = jQueryFrame(Selectors.s1rows);
   var $leftPaging = jQueryFrame(Selectors.s1leftPaging);
 
-  if ($colPeriod.find(".fa-angle-up").length != 1) {
+  if ($colPeriod.find(".fa-angle-up").length !== 1) {
     $colPeriod.click();
   }
 
   waitForAjax(function() {
     $colPeriod = jQueryFrame(Selectors.s1colPeriod);
-    return $colPeriod.find(".fa-angle-up").length == 1;
+    return $colPeriod.find(".fa-angle-up").length === 1;
   }, function() {
     $colPeriod = jQueryFrame(Selectors.s1colPeriod);
     assert.equal($colPeriod.find(".fa-angle-up").length, 1);
@@ -201,13 +201,13 @@ QUnit.test("Basics: Year", function(assert) {
   var $rows = jQueryFrame(Selectors.s1rows);
   var $leftPaging = jQueryFrame(Selectors.s1leftPaging);
 
-  if ($colYear.find(".fa-angle-up").length != 1) {
+  if ($colYear.find(".fa-angle-up").length !== 1) {
     $colYear.click();
   }
 
   waitForAjax(function() {
     $colYear = jQueryFrame(Selectors.s1colYear);
-    return $colYear.find(".fa-angle-up").length == 1;
+    return $colYear.find(".fa-angle-up").length === 1;
   }, function() {
     $colYear = jQueryFrame(Selectors.s1colYear);
     assert.equal($colYear.find(".fa-angle-up").length, 1);
@@ -218,10 +218,10 @@ QUnit.test("Basics: Year", function(assert) {
 
     waitForAjax(function() {
       $rows = jQueryFrame(Selectors.s1rows);
-      return $rows.eq(0).find(".tobago-sheet-cell span").eq(2).text() == "1789"
-          && $rows.eq(1).find(".tobago-sheet-cell span").eq(2).text() == "1846"
-          && $rows.eq(2).find(".tobago-sheet-cell span").eq(2).text() == "1846"
-          && $rows.eq(3).find(".tobago-sheet-cell span").eq(2).text() == "1848";
+      return $rows.eq(0).find(".tobago-sheet-cell span").eq(2).text() === "1789"
+          && $rows.eq(1).find(".tobago-sheet-cell span").eq(2).text() === "1846"
+          && $rows.eq(2).find(".tobago-sheet-cell span").eq(2).text() === "1846"
+          && $rows.eq(3).find(".tobago-sheet-cell span").eq(2).text() === "1848";
     }, function() {
       $rows = jQueryFrame(Selectors.s1rows);
       assert.equal($rows.eq(0).find(".tobago-sheet-cell span").eq(2).text(), "1789", "row0col2");
@@ -234,10 +234,10 @@ QUnit.test("Basics: Year", function(assert) {
 
       waitForAjax(function() {
         $rows = jQueryFrame(Selectors.s1rows);
-        return $rows.eq(0).find(".tobago-sheet-cell span").eq(2).text() == "1989"
-            && $rows.eq(1).find(".tobago-sheet-cell span").eq(2).text() == "1989"
-            && $rows.eq(2).find(".tobago-sheet-cell span").eq(2).text() == "1989"
-            && $rows.eq(3).find(".tobago-sheet-cell span").eq(2).text() == "1986";
+        return $rows.eq(0).find(".tobago-sheet-cell span").eq(2).text() === "1989"
+            && $rows.eq(1).find(".tobago-sheet-cell span").eq(2).text() === "1989"
+            && $rows.eq(2).find(".tobago-sheet-cell span").eq(2).text() === "1989"
+            && $rows.eq(3).find(".tobago-sheet-cell span").eq(2).text() === "1986";
       }, function() {
         $rows = jQueryFrame(Selectors.s1rows);
         assert.equal($rows.eq(0).find(".tobago-sheet-cell span").eq(2).text(), "1989", "row0col2");
@@ -250,10 +250,10 @@ QUnit.test("Basics: Year", function(assert) {
 
         waitForAjax(function() {
           $rows = jQueryFrame(Selectors.s1rows);
-          return $rows.eq(0).find(".tobago-sheet-cell span").eq(2).text() == "1789"
-              && $rows.eq(1).find(".tobago-sheet-cell span").eq(2).text() == "1846"
-              && $rows.eq(2).find(".tobago-sheet-cell span").eq(2).text() == "1846"
-              && $rows.eq(3).find(".tobago-sheet-cell span").eq(2).text() == "1848";
+          return $rows.eq(0).find(".tobago-sheet-cell span").eq(2).text() === "1789"
+              && $rows.eq(1).find(".tobago-sheet-cell span").eq(2).text() === "1846"
+              && $rows.eq(2).find(".tobago-sheet-cell span").eq(2).text() === "1846"
+              && $rows.eq(3).find(".tobago-sheet-cell span").eq(2).text() === "1848";
         }, function() {
           $rows = jQueryFrame(Selectors.s1rows);
           assert.equal($rows.eq(0).find(".tobago-sheet-cell span").eq(2).text(), "1789", "row0col2");
@@ -279,13 +279,13 @@ QUnit.test("Basics: left paging", function(assert) {
   var $rows = jQueryFrame(Selectors.s1rows);
   var $leftPaging = jQueryFrame(Selectors.s1leftPaging);
 
-  if ($colName.find(".fa-angle-up").length != 1) {
+  if ($colName.find(".fa-angle-up").length !== 1) {
     $colName.click();
   }
 
   waitForAjax(function() {
     $colName = jQueryFrame(Selectors.s1colName);
-    return $colName.find(".fa-angle-up").length == 1;
+    return $colName.find(".fa-angle-up").length === 1;
   }, function() {
     $colName = jQueryFrame(Selectors.s1colName);
     assert.equal($colName.find(".fa-angle-up").length, 1);
@@ -347,13 +347,13 @@ QUnit.test("Basics: center paging", function(assert) {
   var $leftPaging = jQueryFrame(Selectors.s1leftPaging);
   var $centerPaging = jQueryFrame(Selectors.s1centerPaging);
 
-  if ($colName.find(".fa-angle-up").length != 1) {
+  if ($colName.find(".fa-angle-up").length !== 1) {
     $colName.click();
   }
 
   waitForAjax(function() {
     $colName = jQueryFrame(Selectors.s1colName);
-    return $colName.find(".fa-angle-up").length == 1;
+    return $colName.find(".fa-angle-up").length === 1;
   }, function() {
     $colName = jQueryFrame(Selectors.s1colName);
     assert.equal($colName.find(".fa-angle-up").length, 1);
@@ -457,13 +457,13 @@ QUnit.test("Basics: right paging", function(assert) {
   var $leftPaging = jQueryFrame(Selectors.s1leftPaging);
   var $rightPaging = jQueryFrame(Selectors.s1rightPaging);
 
-  if ($colName.find(".fa-angle-up").length != 1) {
+  if ($colName.find(".fa-angle-up").length !== 1) {
     $colName.click();
   }
 
   waitForAjax(function() {
     $colName = jQueryFrame(Selectors.s1colName);
-    return $colName.find(".fa-angle-up").length == 1;
+    return $colName.find(".fa-angle-up").length === 1;
   }, function() {
     $colName = jQueryFrame(Selectors.s1colName);
     assert.equal($colName.find(".fa-angle-up").length, 1);
@@ -679,13 +679,13 @@ QUnit.test("Custom Sorting: Period", function(assert) {
   var $rows = jQueryFrame(Selectors.s2rows);
   var $leftPaging = jQueryFrame(Selectors.s2leftPaging);
 
-  if ($colPeriod.find(".fa-angle-up").length != 1) {
+  if ($colPeriod.find(".fa-angle-up").length !== 1) {
     $colPeriod.click();
   }
 
   waitForAjax(function() {
     $colPeriod = jQueryFrame(Selectors.s2colPeriod);
-    return $colPeriod.find(".fa-angle-up").length == 1;
+    return $colPeriod.find(".fa-angle-up").length === 1;
   }, function() {
     $colPeriod = jQueryFrame(Selectors.s2colPeriod);
     assert.equal($colPeriod.find(".fa-angle-up").length, 1);
@@ -759,13 +759,13 @@ QUnit.test("Custom Sorting: Year", function(assert) {
   var $rows = jQueryFrame(Selectors.s2rows);
   var $leftPaging = jQueryFrame(Selectors.s2leftPaging);
 
-  if ($colYear.find(".fa-angle-up").length != 1) {
+  if ($colYear.find(".fa-angle-up").length !== 1) {
     $colYear.click();
   }
 
   waitForAjax(function() {
     $colYear = jQueryFrame(Selectors.s2colYear);
-    return $colYear.find(".fa-angle-up").length == 1;
+    return $colYear.find(".fa-angle-up").length === 1;
   }, function() {
     $colYear = jQueryFrame(Selectors.s2colYear);
     assert.equal($colYear.find(".fa-angle-up").length, 1);
@@ -776,10 +776,10 @@ QUnit.test("Custom Sorting: Year", function(assert) {
 
     waitForAjax(function() {
       $rows = jQueryFrame(Selectors.s2rows);
-      return $rows.eq(0).find(".tobago-sheet-cell span").eq(2).text() == "1789"
-          && $rows.eq(1).find(".tobago-sheet-cell span").eq(2).text() == "1846"
-          && $rows.eq(2).find(".tobago-sheet-cell span").eq(2).text() == "1846"
-          && $rows.eq(3).find(".tobago-sheet-cell span").eq(2).text() == "1848";
+      return $rows.eq(0).find(".tobago-sheet-cell span").eq(2).text() === "1789"
+          && $rows.eq(1).find(".tobago-sheet-cell span").eq(2).text() === "1846"
+          && $rows.eq(2).find(".tobago-sheet-cell span").eq(2).text() === "1846"
+          && $rows.eq(3).find(".tobago-sheet-cell span").eq(2).text() === "1848";
     }, function() {
       $rows = jQueryFrame(Selectors.s2rows);
       assert.equal($rows.eq(0).find(".tobago-sheet-cell span").eq(2).text(), "1789", "row0col2");
@@ -792,10 +792,10 @@ QUnit.test("Custom Sorting: Year", function(assert) {
 
       waitForAjax(function() {
         $rows = jQueryFrame(Selectors.s2rows);
-        return $rows.eq(0).find(".tobago-sheet-cell span").eq(2).text() == "1989"
-            && $rows.eq(1).find(".tobago-sheet-cell span").eq(2).text() == "1989"
-            && $rows.eq(2).find(".tobago-sheet-cell span").eq(2).text() == "1989"
-            && $rows.eq(3).find(".tobago-sheet-cell span").eq(2).text() == "1986";
+        return $rows.eq(0).find(".tobago-sheet-cell span").eq(2).text() === "1989"
+            && $rows.eq(1).find(".tobago-sheet-cell span").eq(2).text() === "1989"
+            && $rows.eq(2).find(".tobago-sheet-cell span").eq(2).text() === "1989"
+            && $rows.eq(3).find(".tobago-sheet-cell span").eq(2).text() === "1986";
       }, function() {
         $rows = jQueryFrame(Selectors.s2rows);
         assert.equal($rows.eq(0).find(".tobago-sheet-cell span").eq(2).text(), "1989", "row0col2");
@@ -808,10 +808,10 @@ QUnit.test("Custom Sorting: Year", function(assert) {
 
         waitForAjax(function() {
           $rows = jQueryFrame(Selectors.s2rows);
-          return $rows.eq(0).find(".tobago-sheet-cell span").eq(2).text() == "1789"
-              && $rows.eq(1).find(".tobago-sheet-cell span").eq(2).text() == "1846"
-              && $rows.eq(2).find(".tobago-sheet-cell span").eq(2).text() == "1846"
-              && $rows.eq(3).find(".tobago-sheet-cell span").eq(2).text() == "1848";
+          return $rows.eq(0).find(".tobago-sheet-cell span").eq(2).text() === "1789"
+              && $rows.eq(1).find(".tobago-sheet-cell span").eq(2).text() === "1846"
+              && $rows.eq(2).find(".tobago-sheet-cell span").eq(2).text() === "1846"
+              && $rows.eq(3).find(".tobago-sheet-cell span").eq(2).text() === "1848";
         }, function() {
           $rows = jQueryFrame(Selectors.s2rows);
           assert.equal($rows.eq(0).find(".tobago-sheet-cell span").eq(2).text(), "1789", "row0col2");
@@ -837,13 +837,13 @@ QUnit.test("Custom Sorting: left paging", function(assert) {
   var $rows = jQueryFrame(Selectors.s2rows);
   var $leftPaging = jQueryFrame(Selectors.s2leftPaging);
 
-  if ($colName.find(".fa-angle-up").length != 1) {
+  if ($colName.find(".fa-angle-up").length !== 1) {
     $colName.click();
   }
 
   waitForAjax(function() {
     $colName = jQueryFrame(Selectors.s2colName);
-    return $colName.find(".fa-angle-up").length == 1;
+    return $colName.find(".fa-angle-up").length === 1;
   }, function() {
     $colName = jQueryFrame(Selectors.s2colName);
     assert.equal($colName.find(".fa-angle-up").length, 1);
@@ -905,13 +905,13 @@ QUnit.test("Custom Sorting: center paging", function(assert) {
   var $leftPaging = jQueryFrame(Selectors.s2leftPaging);
   var $centerPaging = jQueryFrame(Selectors.s2centerPaging);
 
-  if ($colName.find(".fa-angle-up").length != 1) {
+  if ($colName.find(".fa-angle-up").length !== 1) {
     $colName.click();
   }
 
   waitForAjax(function() {
     $colName = jQueryFrame(Selectors.s2colName);
-    return $colName.find(".fa-angle-up").length == 1;
+    return $colName.find(".fa-angle-up").length === 1;
   }, function() {
     $colName = jQueryFrame(Selectors.s2colName);
     assert.equal($colName.find(".fa-angle-up").length, 1);
@@ -1164,10 +1164,10 @@ function ajaxWaitingBodyTableCheck($rows, row0col0, row0col1, row0col2, row1col0
   var $row3Col1 = $rows.eq(3).find(".tobago-sheet-cell span").eq(1).text();
   var $row3Col2 = $rows.eq(3).find(".tobago-sheet-cell span").eq(2).text();
 
-  return $row0Col0 == row0col0 && $row0Col1 == row0col1 && $row0Col2 == row0col2
-      && $row1Col0 == row1col0 && $row1Col1 == row1col1 && $row1Col2 == row1col2
-      && $row2Col0 == row2col0 && $row2Col1 == row2col1 && $row2Col2 == row2col2
-      && $row3Col0 == row3col0 && $row3Col1 == row3col1 && $row3Col2 == row3col2;
+  return $row0Col0 === row0col0 && $row0Col1 === row0col1 && $row0Col2 === row0col2
+      && $row1Col0 === row1col0 && $row1Col1 === row1col1 && $row1Col2 === row1col2
+      && $row2Col0 === row2col0 && $row2Col1 === row2col1 && $row2Col2 === row2col2
+      && $row3Col0 === row3col0 && $row3Col1 === row3col1 && $row3Col2 === row3col2;
 }
 
 function ajaxExecuteBodyTableCheck(assert, $rows, row0col0, row0col1, row0col2, row1col0, row1col1, row1col2,
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/08-form/20-ajax/form-ajax.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/08-form/20-ajax/form-ajax.test.js
index 5d2de1e..411df9d 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/08-form/20-ajax/form-ajax.test.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/08-form/20-ajax/form-ajax.test.js
@@ -43,7 +43,7 @@ QUnit.test("submit inner form 1 without violations", function (assert) {
   waitForAjax(function () {
     $form1InputField = jQueryFrame(Selectors.form1InputField);
     $form1OutputField = jQueryFrame(Selectors.form1OutputField);
-    return $form1InputField.val() == "Alice" && $form1OutputField.text() == "Alice";
+    return $form1InputField.val() === "Alice" && $form1OutputField.text() === "Alice";
   }, function () {
     $form1InputField = jQueryFrame(Selectors.form1InputField);
     $form1OutputField = jQueryFrame(Selectors.form1OutputField);
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/00-collapsible-box/collapsible-box.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/00-collapsible-box/collapsible-box.test.js
index a4c9c6a..25a6d00 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/00-collapsible-box/collapsible-box.test.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/00-collapsible-box/collapsible-box.test.js
@@ -404,7 +404,7 @@ QUnit.test("Ajax: hide content and submit empty string", function (assert) {
 
   waitForAjax(function () {
     $in = jQueryFrame(i);
-    return step == 1 && $in.length == 1;
+    return step === 1 && $in.length === 1;
   }, function () {
     $hide = jQueryFrame(h);
     $in = jQueryFrame(i);
@@ -419,7 +419,7 @@ QUnit.test("Ajax: hide content and submit empty string", function (assert) {
 
   waitForAjax(function () {
     $in = jQueryFrame(i);
-    return step == 2 && $in.length == 0;
+    return step === 2 && $in.length === 0;
   }, function () {
     $in = jQueryFrame(i);
     $submit = jQueryFrame(s);
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/10-collapsible-popup/collapsible-popup.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/10-collapsible-popup/collapsible-popup.test.js
index 3231474..1df9d4c 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/10-collapsible-popup/collapsible-popup.test.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/10-collapsible-popup/collapsible-popup.test.js
@@ -35,7 +35,7 @@ QUnit.test("Simple Popup", function (assert) {
   $open.click();
 
   jQuery("#page\\:testframe").on("load", function () {
-    if (step == 1) {
+    if (step === 1) {
       $in = jQueryFrame(inSelector);
       $submitOnPopup = jQueryFrame(submitOnPopupSelector);
 
@@ -44,7 +44,7 @@ QUnit.test("Simple Popup", function (assert) {
       $submitOnPopup.click();
 
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $messages = jQueryFrame(messagesSelector);
       $in = jQueryFrame(inSelector);
       $submitOnPopup = jQueryFrame(submitOnPopupSelector);
@@ -56,7 +56,7 @@ QUnit.test("Simple Popup", function (assert) {
       $submitOnPopup.click();
 
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $messages = jQueryFrame(messagesSelector);
       $in = jQueryFrame(inSelector);
       $close = jQueryFrame(closeSelector);
@@ -67,7 +67,7 @@ QUnit.test("Simple Popup", function (assert) {
       $close.click();
 
       done();
-    } else if (step == 4) {
+    } else if (step === 4) {
       $submitOnPage = jQueryFrame(submitOnPageSelector);
       $in = jQueryFrame(inSelector);
 
@@ -75,7 +75,7 @@ QUnit.test("Simple Popup", function (assert) {
       $submitOnPage.click();
 
       done();
-    } else if (step == 5) {
+    } else if (step === 5) {
       $messages = jQueryFrame(messagesSelector);
 
       assert.equal($messages.length, 0);
@@ -106,7 +106,7 @@ QUnit.test("Full Server Request", function (assert) {
   $open.click();
 
   jQuery("#page\\:testframe").on("load", function () {
-    if (step == 1) {
+    if (step === 1) {
       $in = jQueryFrame(inSelector);
       $submitOnPopup = jQueryFrame(submitOnPopupSelector);
 
@@ -115,7 +115,7 @@ QUnit.test("Full Server Request", function (assert) {
       $submitOnPopup.click();
 
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $messages = jQueryFrame(messagesSelector);
       $in = jQueryFrame(inSelector);
       $submitOnPopup = jQueryFrame(submitOnPopupSelector);
@@ -127,7 +127,7 @@ QUnit.test("Full Server Request", function (assert) {
       $submitOnPopup.click();
 
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $messages = jQueryFrame(messagesSelector);
       $in = jQueryFrame(inSelector);
       $close = jQueryFrame(closeSelector);
@@ -138,7 +138,7 @@ QUnit.test("Full Server Request", function (assert) {
       $close.click();
 
       done();
-    } else if (step == 4) {
+    } else if (step === 4) {
       $submitOnPage = jQueryFrame(submitOnPageSelector);
       $in = jQueryFrame(inSelector);
 
@@ -146,7 +146,7 @@ QUnit.test("Full Server Request", function (assert) {
       $submitOnPage.click();
 
       done();
-    } else if (step == 5) {
+    } else if (step === 5) {
       $messages = jQueryFrame(messagesSelector);
 
       assert.equal($messages.length, 0);
@@ -186,7 +186,7 @@ QUnit.test("Client Sided", function (assert) {
   $submitOnPopup.click();
 
   jQuery("#page\\:testframe").on("load", function () {
-    if (step == 1) {
+    if (step === 1) {
       $messages = jQueryFrame(messagesSelector);
       $open = jQueryFrame(openSelector);
       $popupCollapsed = jQueryFrame(popupCollapsedSelector);
@@ -201,7 +201,7 @@ QUnit.test("Client Sided", function (assert) {
       $submitOnPopup.click();
 
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $messages = jQueryFrame(messagesSelector);
       $submitOnPage = jQueryFrame(submitOnPageSelector);
       $popupCollapsed = jQueryFrame(popupCollapsedSelector);
@@ -211,7 +211,7 @@ QUnit.test("Client Sided", function (assert) {
       $submitOnPage.click();
 
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $messages = jQueryFrame(messagesSelector);
 
       assert.equal($messages.length, 1);
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/20-collapsible-panel/collapsible-panel.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/20-collapsible-panel/collapsible-panel.test.js
index 41b0f07..bcea232 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/20-collapsible-panel/collapsible-panel.test.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/20-collapsible-panel/collapsible-panel.test.js
@@ -281,7 +281,7 @@ QUnit.test("Ajax", function (assert) {
     $panelCollapsed = jQueryFrame(pc);
     $in = jQueryFrame(i);
     return step === 1
-        && $panelCollapsed.val() == "false"
+        && $panelCollapsed.val() === "false"
         && $in.length === 1;
   }, function () {
     $panelCollapsed = jQueryFrame(pc);
@@ -330,7 +330,7 @@ QUnit.test("Ajax", function (assert) {
         $panelCollapsed = jQueryFrame(pc);
         $in = jQueryFrame(i);
         return step === 4
-            && $panelCollapsed.val() == "true"
+            && $panelCollapsed.val() === "true"
             && $in.length === 0;
       }, function () {
         $panelCollapsed = jQueryFrame(pc);
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/30-collapsible-section/collapsible-section.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/30-collapsible-section/collapsible-section.test.js
index 99779ac..68bce1f 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/30-collapsible-section/collapsible-section.test.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/30-collapsible-section/collapsible-section.test.js
@@ -35,7 +35,7 @@ QUnit.test("Simple Panel", function (assert) {
   $show.click();
 
   jQuery("#page\\:testframe").on("load", function () {
-    if (step == 1) {
+    if (step === 1) {
       $sectionCollapsed = jQueryFrame(sc);
       $in = jQueryFrame(i);
       $submit = jQueryFrame(s);
@@ -47,7 +47,7 @@ QUnit.test("Simple Panel", function (assert) {
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $messages = jQueryFrame(m);
       $sectionCollapsed = jQueryFrame(sc);
       $in = jQueryFrame(i);
@@ -61,7 +61,7 @@ QUnit.test("Simple Panel", function (assert) {
 
       step++;
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $messages = jQueryFrame(m);
       $sectionCollapsed = jQueryFrame(sc);
       $in = jQueryFrame(i);
@@ -74,7 +74,7 @@ QUnit.test("Simple Panel", function (assert) {
 
       step++;
       done();
-    } else if (step == 4) {
+    } else if (step === 4) {
       $messages = jQueryFrame(m);
       $sectionCollapsed = jQueryFrame(sc);
       $in = jQueryFrame(i);
@@ -87,7 +87,7 @@ QUnit.test("Simple Panel", function (assert) {
 
       step++;
       done();
-    } else if (step == 5) {
+    } else if (step === 5) {
       $messages = jQueryFrame(m);
       $sectionCollapsed = jQueryFrame(sc);
       $in = jQueryFrame(i);
@@ -122,7 +122,7 @@ QUnit.test("Full Server Request", function (assert) {
   $show.click();
 
   jQuery("#page\\:testframe").on("load", function () {
-    if (step == 1) {
+    if (step === 1) {
       $sectionCollapsed = jQueryFrame(sc);
       $in = jQueryFrame(i);
       $submit = jQueryFrame(s);
@@ -134,7 +134,7 @@ QUnit.test("Full Server Request", function (assert) {
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $messages = jQueryFrame(m);
       $sectionCollapsed = jQueryFrame(sc);
       $in = jQueryFrame(i);
@@ -148,7 +148,7 @@ QUnit.test("Full Server Request", function (assert) {
 
       step++;
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $messages = jQueryFrame(m);
       $sectionCollapsed = jQueryFrame(sc);
       $in = jQueryFrame(i);
@@ -161,7 +161,7 @@ QUnit.test("Full Server Request", function (assert) {
 
       step++;
       done();
-    } else if (step == 4) {
+    } else if (step === 4) {
       $messages = jQueryFrame(m);
       $sectionCollapsed = jQueryFrame(sc);
       $in = jQueryFrame(i);
@@ -174,7 +174,7 @@ QUnit.test("Full Server Request", function (assert) {
 
       step++;
       done();
-    } else if (step == 5) {
+    } else if (step === 5) {
       $messages = jQueryFrame(m);
       $sectionCollapsed = jQueryFrame(sc);
       $in = jQueryFrame(i);
@@ -213,7 +213,7 @@ QUnit.test("Client Sided", function (assert) {
   $submit.click();
 
   jQuery("#page\\:testframe").on("load", function () {
-    if (step == 1) {
+    if (step === 1) {
       $messages = jQueryFrame(m);
       $sectionCollapsed = jQueryFrame(sc);
       $in = jQueryFrame(i);
@@ -227,7 +227,7 @@ QUnit.test("Client Sided", function (assert) {
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $messages = jQueryFrame(m);
       $sectionCollapsed = jQueryFrame(sc);
       $in = jQueryFrame(i);
@@ -246,7 +246,7 @@ QUnit.test("Client Sided", function (assert) {
 
       step++;
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $messages = jQueryFrame(m);
       $sectionCollapsed = jQueryFrame(sc);
       $in = jQueryFrame(i);
@@ -282,9 +282,9 @@ QUnit.test("Ajax", function (assert) {
   waitForAjax(function () {
     $sectionCollapsed = jQueryFrame(sc);
     $in = jQueryFrame(i);
-    return step == 1
-        && $sectionCollapsed.val() == "false"
-        && $in.length == 1;
+    return step === 1
+        && $sectionCollapsed.val() === "false"
+        && $in.length === 1;
   }, function () {
     $sectionCollapsed = jQueryFrame(sc);
     $in = jQueryFrame(i);
@@ -300,7 +300,7 @@ QUnit.test("Ajax", function (assert) {
   });
 
   jQuery("#page\\:testframe").on("load", function () {
-    if (step == 2) {
+    if (step === 2) {
       $messages = jQueryFrame(m);
       $sectionCollapsed = jQueryFrame(sc);
       $in = jQueryFrame(i);
@@ -314,7 +314,7 @@ QUnit.test("Ajax", function (assert) {
 
       step++;
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $messages = jQueryFrame(m);
       $sectionCollapsed = jQueryFrame(sc);
       $in = jQueryFrame(i);
@@ -331,9 +331,9 @@ QUnit.test("Ajax", function (assert) {
       waitForAjax(function () {
         $sectionCollapsed = jQueryFrame(sc);
         $in = jQueryFrame(i);
-        return step == 4
-            && $sectionCollapsed.val() == "true"
-            && $in.length == 0;
+        return step === 4
+            && $sectionCollapsed.val() === "true"
+            && $in.length === 0;
       }, function () {
         $sectionCollapsed = jQueryFrame(sc);
         $in = jQueryFrame(i);
@@ -346,7 +346,7 @@ QUnit.test("Ajax", function (assert) {
         step++;
         done();
       });
-    } else if (step == 5) {
+    } else if (step === 5) {
       $messages = jQueryFrame(m);
       $sectionCollapsed = jQueryFrame(sc);
       $in = jQueryFrame(i);
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/35-deprecated/15-suggest-method/suggest-method.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/35-deprecated/15-suggest-method/suggest-method.test.js
index 9d4b327..8b9e756 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/35-deprecated/15-suggest-method/suggest-method.test.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/35-deprecated/15-suggest-method/suggest-method.test.js
@@ -30,7 +30,7 @@ QUnit.test("Deprecated: 'Chile'", function (assert) {
 
   waitForAjax(function () {
     $suggestions = getSuggestions(s);
-    return $suggestions.length == expectedLength;
+    return $suggestions.length === expectedLength;
   }, function () {
     $suggestions = getSuggestions(s);
 
@@ -58,7 +58,7 @@ QUnit.test("Replacement: 'Chile'", function (assert) {
 
   waitForAjax(function () {
     $suggestions = getSuggestions(s);
-    return $suggestions.length == expectedLength;
+    return $suggestions.length === expectedLength;
   }, function () {
     $suggestions = getSuggestions(s);
 
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/4000-button+link/button+link.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/4000-button+link/button+link.test.js
index 2b04b1e..b467fe0 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/4000-button+link/button+link.test.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/4000-button+link/button+link.test.js
@@ -50,13 +50,13 @@ function testStandardCommands(commandSelector, destinationSectionSelector, asser
   $command[0].click();
 
   jQuery("#page\\:testframe").on("load", function() {
-    if (step == 1) {
+    if (step === 1) {
       $destinationSection = jQueryFrame(destinationSectionSelector);
       assert.equal($destinationSection.length, 1);
 
       var $back = jQueryFrame("#page\\:back");
       $back[0].click();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $command = jQueryFrame(commandSelector);
       assert.equal($command.length, 1);
     }
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/6000-event/event.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/6000-event/event.test.js
index 6915389..48bf0b5 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/6000-event/event.test.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/6000-event/event.test.js
@@ -116,7 +116,7 @@ function testInEvent(assert, eventName) {
   testEvent(assert, "in", function() {
     var $inputField = jQueryFrame("#page\\:mainForm\\:inevent" + eventName + "\\:\\:field");
     var newValue = "hello";
-    if (newValue == $inputField.val()) {
+    if (newValue === $inputField.val()) {
       newValue = "hi there";
     }
     $inputField.val(newValue);
@@ -128,7 +128,7 @@ function testInAjax(assert, eventName) {
   testAjax(assert, "in", function() {
     var $inputField = jQueryFrame("#page\\:mainForm\\:inajax" + eventName + "\\:\\:field");
     var newValue = "hello";
-    if (newValue == $inputField.val()) {
+    if (newValue === $inputField.val()) {
       newValue = "hi there";
     }
     $inputField.val(newValue);
@@ -140,7 +140,7 @@ function testRowEvent(assert, eventName) {
   var newSelectedPlanet = "Venus";
   testEvent(assert, "row", function() {
     var $row = jQueryFrame("#page\\:mainForm\\:sheetevent" + eventName + "\\:1\\:selectPlanet");
-    if (getSelectedPlanet() == newSelectedPlanet) {
+    if (getSelectedPlanet() === newSelectedPlanet) {
       $row = jQueryFrame("#page\\:mainForm\\:sheetevent" + eventName + "\\:4\\:selectPlanet");
       newSelectedPlanet = "Jupiter";
     }
@@ -152,7 +152,7 @@ function testRowAjax(assert, eventName) {
   var newSelectedPlanet = "Venus";
   testAjax(assert, "row", function() {
     var $row = jQueryFrame("#page\\:mainForm\\:sheetajax" + eventName + "\\:1\\:selectPlanet");
-    if (getSelectedPlanet() == newSelectedPlanet) {
+    if (getSelectedPlanet() === newSelectedPlanet) {
       $row = jQueryFrame("#page\\:mainForm\\:sheetajax" + eventName + "\\:4\\:selectPlanet");
       newSelectedPlanet = "Jupiter";
     }
@@ -164,7 +164,7 @@ function testEvent(assert, componentName, componentFunc, event,
                    incAction, incActionListener, incAjaxListener, incValueChangeListener, changePlanet) {
   assert.expect(6);
   var changeActiveComponent = jQueryFrame("#page\\:mainForm\\:compTestSection > div > h1 > span").text()
-      != "<tc:" + componentName + ">";
+      !== "<tc:" + componentName + ">";
   var done = assert.async(1 + changeActiveComponent);
 
   var oldActionCount;
@@ -179,7 +179,7 @@ function testEvent(assert, componentName, componentFunc, event,
     var step = 1;
 
     jQuery("#page\\:testframe").on("load", function() {
-      if (step == 1) {
+      if (step === 1) {
         oldActionCount = getActionCount();
         oldActionListenerCount = getActionListenerCount();
         oldAjaxListenerCount = getAjaxListenerCount();
@@ -188,7 +188,7 @@ function testEvent(assert, componentName, componentFunc, event,
         oldPlanet = getSelectedPlanet();
 
         componentFunc().trigger(event);
-      } else if (step == 2) {
+      } else if (step === 2) {
         validateEvent(assert, oldActionCount, oldActionListenerCount, oldAjaxListenerCount,
             oldValueChangeListenerCount, oldTimestamp, oldPlanet, incAction, incActionListener, incAjaxListener,
             incValueChangeListener, changePlanet);
@@ -257,7 +257,7 @@ function testAjax(assert, componentName, componentFunc, event,
     var step = 1;
 
     jQuery("#page\\:testframe").on("load", function() {
-      if (step == 1) {
+      if (step === 1) {
         oldActionCount = getActionCount();
         oldActionListenerCount = getActionListenerCount();
         oldAjaxListenerCount = getAjaxListenerCount();
@@ -301,12 +301,12 @@ function validateAjax(assert, done, oldActionCount, oldActionListenerCount, oldA
     var newTimestamp = getTimestamp();
     var newPlanet = getSelectedPlanet();
 
-    return newActionCount == (oldActionCount + incAction)
-    && newActionListenerCount == (oldActionListenerCount + incActionListener)
-    && newAjaxListenerCount == (oldAjaxListenerCount + incAjaxListener)
-    && newValueChangeListenerCount == (oldValueChangeListenerCount + incValueChangeListener)
+    return newActionCount === (oldActionCount + incAction)
+    && newActionListenerCount === (oldActionListenerCount + incActionListener)
+    && newAjaxListenerCount === (oldAjaxListenerCount + incAjaxListener)
+    && newValueChangeListenerCount === (oldValueChangeListenerCount + incValueChangeListener)
     && newTimestamp > oldTimestamp
-    && changePlanet ? newPlanet != oldPlanet : newPlanet == oldPlanet;
+    && changePlanet ? newPlanet !== oldPlanet : newPlanet === oldPlanet;
   }, function() {
     var newActionCount = getActionCount();
     var newActionListenerCount = getActionListenerCount();
@@ -357,7 +357,7 @@ function getSelectedPlanet() {
 
 function activateComponent(componentName) {
   jQueryFrame("#page\\:mainForm\\:componentTable .tobago-sheet-row").each(function() {
-    if (jQuery(this).find("td").eq(0).find("span").text() == componentName) {
+    if (jQuery(this).find("td").eq(0).find("span").text() === componentName) {
       this.click();
     }
   });


Mime
View raw message