myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1797071 [2/2] - in /myfaces/tobago/trunk/tobago-example: tobago-example-demo/src/main/webapp/content/20-component/010-input/10-in/ tobago-example-demo/src/main/webapp/content/20-component/010-input/20-suggest/ tobago-example-demo/src/main/...
Date Wed, 31 May 2017 16:30:12 GMT
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/08-form/20-ajax/form-ajax.test.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/08-form/20-ajax/form-ajax.test.js?rev=1797071&r1=1797070&r2=1797071&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/08-form/20-ajax/form-ajax.test.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/08-form/20-ajax/form-ajax.test.js Wed May 31 16:30:11 2017
@@ -29,7 +29,7 @@ QUnit.test("submit inner form 1 without
   waitForAjax(function () {
     $form1InputField = jQueryFrame($form1InputField.selector);
     $form1OutputField = jQueryFrame($form1OutputField.selector);
-    return $form1InputField.val() == "Alice" && $form1OutputField.text() == "Alice";
+    return $form1InputField.val() === "Alice" && $form1OutputField.text() === "Alice";
   }, function () {
     $form1InputField = jQueryFrame($form1InputField.selector);
     $form1OutputField = jQueryFrame($form1OutputField.selector);
@@ -60,7 +60,7 @@ QUnit.test("submit inner form 2, violate
   waitForAjax(function () {
     $form2InputField = jQueryFrame($form2InputField.selector);
     $form2OutputField = jQueryFrame($form2OutputField.selector);
-    return $form2InputField.val() == "" && $form2OutputField.text() == form2OutputFieldValue;
+    return $form2InputField.val() === "" && $form2OutputField.text() === form2OutputFieldValue;
   }, function () {
     $form2InputField = jQueryFrame($form2InputField.selector);
     $form2OutputField = jQueryFrame($form2OutputField.selector);
@@ -89,7 +89,7 @@ QUnit.test("submit inner form 2 without
   waitForAjax(function () {
     $form2InputField = jQueryFrame($form2InputField.selector);
     $form2OutputField = jQueryFrame($form2OutputField.selector);
-    return $form2InputField.val() == "Bob" && $form2OutputField.text() == "Bob";
+    return $form2InputField.val() === "Bob" && $form2OutputField.text() === "Bob";
   }, function () {
     $form2InputField = jQueryFrame($form2InputField.selector);
     $form2OutputField = jQueryFrame($form2OutputField.selector);
@@ -132,12 +132,12 @@ QUnit.test("submit outer form, violate b
     $form2OutputField = jQueryFrame($form2OutputField.selector);
     $outerFormInputField = jQueryFrame($outerFormInputField.selector);
     $outerFormOutputField = jQueryFrame($outerFormOutputField.selector);
-    return $form1InputField.val() == "Charlie"
-        && $form1OutputField.text() == form1OutputFieldValue
-        && $form2InputField.val() == ""
-        && $form2OutputField.text() == form2OutputFieldValue
-        && $outerFormInputField.val() == ""
-        && $outerFormOutputField.text() == outerFormOutputFieldValue;
+    return $form1InputField.val() === "Charlie"
+        && $form1OutputField.text() === form1OutputFieldValue
+        && $form2InputField.val() === ""
+        && $form2OutputField.text() === form2OutputFieldValue
+        && $outerFormInputField.val() === ""
+        && $outerFormOutputField.text() === outerFormOutputFieldValue;
   }, function () {
     $form1InputField = jQueryFrame($form1InputField.selector);
     $form1OutputField = jQueryFrame($form1OutputField.selector);
@@ -188,12 +188,12 @@ QUnit.test("submit outer form, violate r
     $form2OutputField = jQueryFrame($form2OutputField.selector);
     $outerFormInputField = jQueryFrame($outerFormInputField.selector);
     $outerFormOutputField = jQueryFrame($outerFormOutputField.selector);
-    return $form1InputField.val() == "Dave"
-        && $form1OutputField.text() == form1OutputFieldValue
-        && $form2InputField.val() == ""
-        && $form2OutputField.text() == form2OutputFieldValue
-        && $outerFormInputField.val() == "Eve"
-        && $outerFormOutputField.text() == outerFormOutputFieldValue;
+    return $form1InputField.val() === "Dave"
+        && $form1OutputField.text() === form1OutputFieldValue
+        && $form2InputField.val() === ""
+        && $form2OutputField.text() === form2OutputFieldValue
+        && $outerFormInputField.val() === "Eve"
+        && $outerFormOutputField.text() === outerFormOutputFieldValue;
   }, function () {
     $form1InputField = jQueryFrame($form1InputField.selector);
     $form1OutputField = jQueryFrame($form1OutputField.selector);
@@ -244,12 +244,12 @@ QUnit.test("submit outer form, violate r
     $form2OutputField = jQueryFrame($form2OutputField.selector);
     $outerFormInputField = jQueryFrame($outerFormInputField.selector);
     $outerFormOutputField = jQueryFrame($outerFormOutputField.selector);
-    return $form1InputField.val() == "Frank"
-        && $form1OutputField.text() == form1OutputFieldValue
-        && $form2InputField.val() == "Grace"
-        && $form2OutputField.text() == form2OutputFieldValue
-        && $outerFormInputField.val() == ""
-        && $outerFormOutputField.text() == outerFormOutputFieldValue;
+    return $form1InputField.val() === "Frank"
+        && $form1OutputField.text() === form1OutputFieldValue
+        && $form2InputField.val() === "Grace"
+        && $form2OutputField.text() === form2OutputFieldValue
+        && $outerFormInputField.val() === ""
+        && $outerFormOutputField.text() === outerFormOutputFieldValue;
   }, function () {
     $form1InputField = jQueryFrame($form1InputField.selector);
     $form1OutputField = jQueryFrame($form1OutputField.selector);
@@ -296,12 +296,12 @@ QUnit.test("submit outer form without vi
     $form2OutputField = jQueryFrame($form2OutputField.selector);
     $outerFormInputField = jQueryFrame($outerFormInputField.selector);
     $outerFormOutputField = jQueryFrame($outerFormOutputField.selector);
-    return $form1InputField.val() == "Hank"
-        && $form1OutputField.text() == "Hank"
-        && $form2InputField.val() == "Irene"
-        && $form2OutputField.text() == "Irene"
-        && $outerFormInputField.val() == "John"
-        && $outerFormOutputField.text() == "John";
+    return $form1InputField.val() === "Hank"
+        && $form1OutputField.text() === "Hank"
+        && $form2InputField.val() === "Irene"
+        && $form2OutputField.text() === "Irene"
+        && $outerFormInputField.val() === "John"
+        && $outerFormOutputField.text() === "John";
   }, function () {
     $form1InputField = jQueryFrame($form1InputField.selector);
     $form1OutputField = jQueryFrame($form1OutputField.selector);
@@ -352,11 +352,11 @@ QUnit.test("submit inner forms, violate
     $form2OutputField = jQueryFrame($form2OutputField.selector);
     $outerFormInputField = jQueryFrame($outerFormInputField.selector);
     $outerFormOutputField = jQueryFrame($outerFormOutputField.selector);
-    return $form1InputField.val() == "Kate"
-    && $form1OutputField.text() == form1OutputFieldValue
-    && $form2InputField.val() == ""
-    && $form2OutputField.text() == form2OutputFieldValue
-    && $outerFormInputField.val() == "Leonard"
+    return $form1InputField.val() === "Kate"
+    && $form1OutputField.text() === form1OutputFieldValue
+    && $form2InputField.val() === ""
+    && $form2OutputField.text() === form2OutputFieldValue
+    && $outerFormInputField.val() === "Leonard"
     && $outerFormOutputField.text(), outerFormOutputFieldValue;
   }, function () {
     $form1InputField = jQueryFrame($form1InputField.selector);
@@ -406,12 +406,12 @@ QUnit.test("submit inner forms without v
     $form2OutputField = jQueryFrame($form2OutputField.selector);
     $outerFormInputField = jQueryFrame($outerFormInputField.selector);
     $outerFormOutputField = jQueryFrame($outerFormOutputField.selector);
-    return $form1InputField.val() == "Mike"
-        && $form1OutputField.text() == "Mike"
-        && $form2InputField.val() == "Neil"
-        && $form2OutputField.text() == "Neil"
-        && $outerFormInputField.val() == ""
-        && $outerFormOutputField.text() == outerFormOutputFieldValue;
+    return $form1InputField.val() === "Mike"
+        && $form1OutputField.text() === "Mike"
+        && $form2InputField.val() === "Neil"
+        && $form2OutputField.text() === "Neil"
+        && $outerFormInputField.val() === ""
+        && $outerFormOutputField.text() === outerFormOutputFieldValue;
   }, function () {
     $form1InputField = jQueryFrame($form1InputField.selector);
     $form1OutputField = jQueryFrame($form1OutputField.selector);
@@ -462,12 +462,12 @@ QUnit.test("submit outer value, violate
     $form2OutputField = jQueryFrame($form2OutputField.selector);
     $outerFormInputField = jQueryFrame($outerFormInputField.selector);
     $outerFormOutputField = jQueryFrame($outerFormOutputField.selector);
-    return $form1InputField.val() == "Oscar"
-        && $form1OutputField.text() == form1OutputFieldValue
-        && $form2InputField.val() == "Penny"
-        && $form2OutputField.text() == form2OutputFieldValue
-        && $outerFormInputField.val() == ""
-        && $outerFormOutputField.text() == outerFormOutputFieldValue;
+    return $form1InputField.val() === "Oscar"
+        && $form1OutputField.text() === form1OutputFieldValue
+        && $form2InputField.val() === "Penny"
+        && $form2OutputField.text() === form2OutputFieldValue
+        && $outerFormInputField.val() === ""
+        && $outerFormOutputField.text() === outerFormOutputFieldValue;
   }, function () {
     $form1InputField = jQueryFrame($form1InputField.selector);
     $form1OutputField = jQueryFrame($form1OutputField.selector);
@@ -517,12 +517,12 @@ QUnit.test("submit outer value without v
     $form2OutputField = jQueryFrame($form2OutputField.selector);
     $outerFormInputField = jQueryFrame($outerFormInputField.selector);
     $outerFormOutputField = jQueryFrame($outerFormOutputField.selector);
-    return $form1InputField.val() == "Quin"
-        && $form1OutputField.text() == form1OutputFieldValue
-        && $form2InputField.val() == "Sue"
-        && $form2OutputField.text() == form2OutputFieldValue
-        && $outerFormInputField.val() == "Ted"
-        && $outerFormOutputField.text() == "Ted";
+    return $form1InputField.val() === "Quin"
+        && $form1OutputField.text() === form1OutputFieldValue
+        && $form2InputField.val() === "Sue"
+        && $form2OutputField.text() === form2OutputFieldValue
+        && $outerFormInputField.val() === "Ted"
+        && $outerFormOutputField.text() === "Ted";
   }, function () {
     $form1InputField = jQueryFrame($form1InputField.selector);
     $form1OutputField = jQueryFrame($form1OutputField.selector);

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/51-for-each/for-each.test.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/51-for-each/for-each.test.js?rev=1797071&r1=1797070&r2=1797071&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/51-for-each/for-each.test.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/51-for-each/for-each.test.js Wed May 31 16:30:11 2017
@@ -31,7 +31,7 @@ QUnit.test("Add a river and reset.", fun
   $reset.click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $name = jQueryFrame($name.selector);
       $length = jQueryFrame($length.selector);
       $discharge = jQueryFrame($discharge.selector);
@@ -48,7 +48,7 @@ QUnit.test("Add a river and reset.", fun
       $add.click();
 
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $reset = jQueryFrame($reset.selector);
       $forEachBoxes = jQueryFrame($forEachBoxes.selector);
       $uiRepeatSections = jQueryFrame($uiRepeatSections.selector);
@@ -59,7 +59,7 @@ QUnit.test("Add a river and reset.", fun
       $reset.click();
 
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $forEachBoxes = jQueryFrame($forEachBoxes.selector);
       $uiRepeatSections = jQueryFrame($uiRepeatSections.selector);
 

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/00-collapsible-box/collapsible-box.test.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/00-collapsible-box/collapsible-box.test.js?rev=1797071&r1=1797070&r2=1797071&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/00-collapsible-box/collapsible-box.test.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/00-collapsible-box/collapsible-box.test.js Wed May 31 16:30:11 2017
@@ -27,7 +27,7 @@ QUnit.test("Simple Collapsible Box: show
   $show.click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $hide = jQueryFrame($hide.selector);
       $content = jQueryFrame($content.selector);
 
@@ -36,7 +36,7 @@ QUnit.test("Simple Collapsible Box: show
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $content = jQueryFrame($content.selector);
 
       assert.equal($content.length, 0);
@@ -59,7 +59,7 @@ QUnit.test("Simple Collapsible Box: hide
   $hide.click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $show = jQueryFrame($show.selector);
       $content = jQueryFrame($content.selector);
 
@@ -68,7 +68,7 @@ QUnit.test("Simple Collapsible Box: hide
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $content = jQueryFrame($content.selector);
 
       assert.equal($content.length, 1);
@@ -93,7 +93,7 @@ QUnit.test("Full Server Request: open bo
   $show1.click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $show2 = jQueryFrame($show2.selector);
       $content1 = jQueryFrame($content1.selector);
       $content2 = jQueryFrame($content2.selector);
@@ -104,7 +104,7 @@ QUnit.test("Full Server Request: open bo
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $content1 = jQueryFrame($content1.selector);
       $content2 = jQueryFrame($content2.selector);
 
@@ -131,7 +131,7 @@ QUnit.test("Full Server Request: open bo
   $show1.click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $hide2 = jQueryFrame($hide2.selector);
       $content1 = jQueryFrame($content1.selector);
       $content2 = jQueryFrame($content2.selector);
@@ -142,7 +142,7 @@ QUnit.test("Full Server Request: open bo
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $content1 = jQueryFrame($content1.selector);
       $content2 = jQueryFrame($content2.selector);
 
@@ -169,7 +169,7 @@ QUnit.test("Full Server Request: close b
   $hide1.click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $show2 = jQueryFrame($show2.selector);
       $content1 = jQueryFrame($content1.selector);
       $content2 = jQueryFrame($content2.selector);
@@ -180,7 +180,7 @@ QUnit.test("Full Server Request: close b
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $content1 = jQueryFrame($content1.selector);
       $content2 = jQueryFrame($content2.selector);
 
@@ -207,7 +207,7 @@ QUnit.test("Full Server Request: close b
   $hide1.click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $hide2 = jQueryFrame($hide2.selector);
       $content1 = jQueryFrame($content1.selector);
       $content2 = jQueryFrame($content2.selector);
@@ -218,7 +218,7 @@ QUnit.test("Full Server Request: close b
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $content1 = jQueryFrame($content1.selector);
       $content2 = jQueryFrame($content2.selector);
 
@@ -278,7 +278,7 @@ QUnit.test("Client Sided: hide content a
   $submit.click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $messages = jQueryFrame($messages.selector);
       assert.equal($messages.length, 1);
 
@@ -302,7 +302,7 @@ QUnit.test("Ajax: show -> hide transitio
   waitForAjax(function () {
     $in = jQueryFrame($in.selector);
     console.log("step: " + step + " active: " + jQuery.active);
-    return step == 1 && jQuery.active == 0;
+    return step === 1 && jQuery.active === 0;
   }, function () {
     $hide = jQueryFrame($hide.selector);
     $in = jQueryFrame($in.selector);
@@ -313,7 +313,7 @@ QUnit.test("Ajax: show -> hide transitio
 
     waitForAjax(function () {
       $in = jQueryFrame($in.selector);
-      return step == 2 && $in.length == 0;
+      return step === 2 && $in.length === 0;
     }, function () {
       $in = jQueryFrame($in.selector);
       assert.equal($in.length, 0);
@@ -340,7 +340,7 @@ QUnit.test("Ajax: hide -> show transitio
 
   waitForAjax(function () {
     $in = jQueryFrame($in.selector);
-    return step == 1 && $in.length == 0;
+    return step === 1 && $in.length === 0;
   }, function () {
     $show = jQueryFrame($show.selector);
     $in = jQueryFrame($in.selector);
@@ -350,7 +350,7 @@ QUnit.test("Ajax: hide -> show transitio
 
     waitForAjax(function () {
       $in = jQueryFrame($in.selector);
-      return step == 2 && $in.length == 1;
+      return step === 2 && $in.length === 1;
     }, function () {
       $in = jQueryFrame($in.selector);
       assert.equal($in.length, 1);
@@ -378,7 +378,7 @@ QUnit.test("Ajax: hide content and submi
 
   waitForAjax(function () {
     $in = jQueryFrame($in.selector);
-    return step == 1 && $in.length == 1;
+    return step === 1 && $in.length === 1;
   }, function () {
     $hide = jQueryFrame($hide.selector);
     $in = jQueryFrame($in.selector);
@@ -389,7 +389,7 @@ QUnit.test("Ajax: hide content and submi
 
     waitForAjax(function () {
       $in = jQueryFrame($in.selector);
-      return step == 2 && $in.length == 0;
+      return step === 2 && $in.length === 0;
     }, function () {
       $in = jQueryFrame($in.selector);
       $submit = jQueryFrame($submit.selector);
@@ -405,7 +405,7 @@ QUnit.test("Ajax: hide content and submi
   });
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 3) {
+    if (step === 3) {
       $messages = jQueryFrame($messages.selector);
       assert.equal($messages.length, 0);
 

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/10-collapsible-popup/collapsible-popup.test.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/10-collapsible-popup/collapsible-popup.test.js?rev=1797071&r1=1797070&r2=1797071&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/10-collapsible-popup/collapsible-popup.test.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/10-collapsible-popup/collapsible-popup.test.js Wed May 31 16:30:11 2017
@@ -30,7 +30,7 @@ QUnit.test("Simple Popup", function (ass
   $open.click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $in = jQueryFrame($in.selector);
       $submitOnPopup = jQueryFrame($submitOnPopup.selector);
 
@@ -39,7 +39,7 @@ QUnit.test("Simple Popup", function (ass
       $submitOnPopup.click();
 
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $messages = jQueryFrame($messages.selector);
       $in = jQueryFrame($in.selector);
       $submitOnPopup = jQueryFrame($submitOnPopup.selector);
@@ -51,7 +51,7 @@ QUnit.test("Simple Popup", function (ass
       $submitOnPopup.click();
 
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $messages = jQueryFrame($messages.selector);
       $in = jQueryFrame($in.selector);
       $close = jQueryFrame($close.selector);
@@ -62,7 +62,7 @@ QUnit.test("Simple Popup", function (ass
       $close.click();
 
       done();
-    } else if (step == 4) {
+    } else if (step === 4) {
       $submitOnPage = jQueryFrame($submitOnPage.selector);
       $in = jQueryFrame($in.selector);
 
@@ -70,7 +70,7 @@ QUnit.test("Simple Popup", function (ass
       $submitOnPage.click();
 
       done();
-    } else if (step == 5) {
+    } else if (step === 5) {
       $messages = jQueryFrame($messages.selector);
 
       assert.equal($messages.length, 0);
@@ -96,7 +96,7 @@ QUnit.test("Full Server Request", functi
   $open.click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $in = jQueryFrame($in.selector);
       $submitOnPopup = jQueryFrame($submitOnPopup.selector);
 
@@ -105,7 +105,7 @@ QUnit.test("Full Server Request", functi
       $submitOnPopup.click();
 
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $messages = jQueryFrame($messages.selector);
       $in = jQueryFrame($in.selector);
       $submitOnPopup = jQueryFrame($submitOnPopup.selector);
@@ -117,7 +117,7 @@ QUnit.test("Full Server Request", functi
       $submitOnPopup.click();
 
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $messages = jQueryFrame($messages.selector);
       $in = jQueryFrame($in.selector);
       $close = jQueryFrame($close.selector);
@@ -128,7 +128,7 @@ QUnit.test("Full Server Request", functi
       $close.click();
 
       done();
-    } else if (step == 4) {
+    } else if (step === 4) {
       $submitOnPage = jQueryFrame($submitOnPage.selector);
       $in = jQueryFrame($in.selector);
 
@@ -136,7 +136,7 @@ QUnit.test("Full Server Request", functi
       $submitOnPage.click();
 
       done();
-    } else if (step == 5) {
+    } else if (step === 5) {
       $messages = jQueryFrame($messages.selector);
 
       assert.equal($messages.length, 0);
@@ -170,7 +170,7 @@ QUnit.test("Client Sided", function (ass
   $submitOnPopup.click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $messages = jQueryFrame($messages.selector);
       $open = jQueryFrame($open.selector);
       $popupCollapsed = jQueryFrame($popupCollapsed.selector);
@@ -185,7 +185,7 @@ QUnit.test("Client Sided", function (ass
       $submitOnPopup.click();
 
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $messages = jQueryFrame($messages.selector);
       $submitOnPage = jQueryFrame($submitOnPage.selector);
       $popupCollapsed = jQueryFrame($popupCollapsed.selector);
@@ -195,7 +195,7 @@ QUnit.test("Client Sided", function (ass
       $submitOnPage.click();
 
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $messages = jQueryFrame($messages.selector);
 
       assert.equal($messages.length, 1);

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/20-collapsible-panel/collapsible-panel.test.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/20-collapsible-panel/collapsible-panel.test.js?rev=1797071&r1=1797070&r2=1797071&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/20-collapsible-panel/collapsible-panel.test.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/20-collapsible-panel/collapsible-panel.test.js Wed May 31 16:30:11 2017
@@ -30,7 +30,7 @@ QUnit.test("Simple Panel", function (ass
   $show.click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $panelCollapsed = jQueryFrame($panelCollapsed.selector);
       $in = jQueryFrame($in.selector);
       $submit = jQueryFrame($submit.selector);
@@ -42,7 +42,7 @@ QUnit.test("Simple Panel", function (ass
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $messages = jQueryFrame($messages.selector);
       $panelCollapsed = jQueryFrame($panelCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -56,7 +56,7 @@ QUnit.test("Simple Panel", function (ass
 
       step++;
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $messages = jQueryFrame($messages.selector);
       $panelCollapsed = jQueryFrame($panelCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -69,7 +69,7 @@ QUnit.test("Simple Panel", function (ass
 
       step++;
       done();
-    } else if (step == 4) {
+    } else if (step === 4) {
       $messages = jQueryFrame($messages.selector);
       $panelCollapsed = jQueryFrame($panelCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -82,7 +82,7 @@ QUnit.test("Simple Panel", function (ass
 
       step++;
       done();
-    } else if (step == 5) {
+    } else if (step === 5) {
       $messages = jQueryFrame($messages.selector);
       $panelCollapsed = jQueryFrame($panelCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -112,7 +112,7 @@ QUnit.test("Full Server Request", functi
   $show.click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $panelCollapsed = jQueryFrame($panelCollapsed.selector);
       $in = jQueryFrame($in.selector);
       $submit = jQueryFrame($submit.selector);
@@ -124,7 +124,7 @@ QUnit.test("Full Server Request", functi
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $messages = jQueryFrame($messages.selector);
       $panelCollapsed = jQueryFrame($panelCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -138,7 +138,7 @@ QUnit.test("Full Server Request", functi
 
       step++;
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $messages = jQueryFrame($messages.selector);
       $panelCollapsed = jQueryFrame($panelCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -151,7 +151,7 @@ QUnit.test("Full Server Request", functi
 
       step++;
       done();
-    } else if (step == 4) {
+    } else if (step === 4) {
       $messages = jQueryFrame($messages.selector);
       $panelCollapsed = jQueryFrame($panelCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -164,7 +164,7 @@ QUnit.test("Full Server Request", functi
 
       step++;
       done();
-    } else if (step == 5) {
+    } else if (step === 5) {
       $messages = jQueryFrame($messages.selector);
       $panelCollapsed = jQueryFrame($panelCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -198,7 +198,7 @@ QUnit.test("Client Sided", function (ass
   $submit.click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $messages = jQueryFrame($messages.selector);
       $panelCollapsed = jQueryFrame($panelCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -212,7 +212,7 @@ QUnit.test("Client Sided", function (ass
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $messages = jQueryFrame($messages.selector);
       $panelCollapsed = jQueryFrame($panelCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -231,7 +231,7 @@ QUnit.test("Client Sided", function (ass
 
       step++;
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $messages = jQueryFrame($messages.selector);
       $panelCollapsed = jQueryFrame($panelCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -263,9 +263,9 @@ QUnit.test("Ajax", function (assert) {
   waitForAjax(function () {
     $panelCollapsed = jQueryFrame($panelCollapsed.selector);
     $in = jQueryFrame($in.selector);
-    return step == 1
-        && $panelCollapsed.val() == "false"
-        && $in.length == 1;
+    return step === 1
+        && $panelCollapsed.val() === "false"
+        && $in.length === 1;
   }, function () {
     $panelCollapsed = jQueryFrame($panelCollapsed.selector);
     $in = jQueryFrame($in.selector);
@@ -281,7 +281,7 @@ QUnit.test("Ajax", function (assert) {
   });
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 2) {
+    if (step === 2) {
       $messages = jQueryFrame($messages.selector);
       $panelCollapsed = jQueryFrame($panelCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -295,7 +295,7 @@ QUnit.test("Ajax", function (assert) {
 
       step++;
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $messages = jQueryFrame($messages.selector);
       $panelCollapsed = jQueryFrame($panelCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -312,9 +312,9 @@ QUnit.test("Ajax", function (assert) {
       waitForAjax(function () {
         $panelCollapsed = jQueryFrame($panelCollapsed.selector);
         $in = jQueryFrame($in.selector);
-        return step == 4
-            && $panelCollapsed.val() == "true"
-            && $in.length == 0;
+        return step === 4
+            && $panelCollapsed.val() === "true"
+            && $in.length === 0;
       }, function () {
         $panelCollapsed = jQueryFrame($panelCollapsed.selector);
         $in = jQueryFrame($in.selector);
@@ -327,7 +327,7 @@ QUnit.test("Ajax", function (assert) {
         step++;
         done();
       });
-    } else if (step == 5) {
+    } else if (step === 5) {
       $messages = jQueryFrame($messages.selector);
       $panelCollapsed = jQueryFrame($panelCollapsed.selector);
       $in = jQueryFrame($in.selector);

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/30-collapsible-section/collapsible-section.test.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/30-collapsible-section/collapsible-section.test.js?rev=1797071&r1=1797070&r2=1797071&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/30-collapsible-section/collapsible-section.test.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/53-collapsible/30-collapsible-section/collapsible-section.test.js Wed May 31 16:30:11 2017
@@ -30,7 +30,7 @@ QUnit.test("Simple Panel", function (ass
   $show.click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
       $in = jQueryFrame($in.selector);
       $submit = jQueryFrame($submit.selector);
@@ -42,7 +42,7 @@ QUnit.test("Simple Panel", function (ass
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $messages = jQueryFrame($messages.selector);
       $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -56,7 +56,7 @@ QUnit.test("Simple Panel", function (ass
 
       step++;
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $messages = jQueryFrame($messages.selector);
       $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -69,7 +69,7 @@ QUnit.test("Simple Panel", function (ass
 
       step++;
       done();
-    } else if (step == 4) {
+    } else if (step === 4) {
       $messages = jQueryFrame($messages.selector);
       $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -82,7 +82,7 @@ QUnit.test("Simple Panel", function (ass
 
       step++;
       done();
-    } else if (step == 5) {
+    } else if (step === 5) {
       $messages = jQueryFrame($messages.selector);
       $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -112,7 +112,7 @@ QUnit.test("Full Server Request", functi
   $show.click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
       $in = jQueryFrame($in.selector);
       $submit = jQueryFrame($submit.selector);
@@ -124,7 +124,7 @@ QUnit.test("Full Server Request", functi
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $messages = jQueryFrame($messages.selector);
       $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -138,7 +138,7 @@ QUnit.test("Full Server Request", functi
 
       step++;
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $messages = jQueryFrame($messages.selector);
       $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -151,7 +151,7 @@ QUnit.test("Full Server Request", functi
 
       step++;
       done();
-    } else if (step == 4) {
+    } else if (step === 4) {
       $messages = jQueryFrame($messages.selector);
       $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -164,7 +164,7 @@ QUnit.test("Full Server Request", functi
 
       step++;
       done();
-    } else if (step == 5) {
+    } else if (step === 5) {
       $messages = jQueryFrame($messages.selector);
       $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -198,7 +198,7 @@ QUnit.test("Client Sided", function (ass
   $submit.click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $messages = jQueryFrame($messages.selector);
       $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -212,7 +212,7 @@ QUnit.test("Client Sided", function (ass
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $messages = jQueryFrame($messages.selector);
       $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -231,7 +231,7 @@ QUnit.test("Client Sided", function (ass
 
       step++;
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $messages = jQueryFrame($messages.selector);
       $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -263,9 +263,9 @@ QUnit.test("Ajax", function (assert) {
   waitForAjax(function () {
     $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
     $in = jQueryFrame($in.selector);
-    return step == 1
-        && $sectionCollapsed.val() == "false"
-        && $in.length == 1;
+    return step === 1
+        && $sectionCollapsed.val() === "false"
+        && $in.length === 1;
   }, function () {
     $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
     $in = jQueryFrame($in.selector);
@@ -281,7 +281,7 @@ QUnit.test("Ajax", function (assert) {
   });
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 2) {
+    if (step === 2) {
       $messages = jQueryFrame($messages.selector);
       $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -295,7 +295,7 @@ QUnit.test("Ajax", function (assert) {
 
       step++;
       done();
-    } else if (step == 3) {
+    } else if (step === 3) {
       $messages = jQueryFrame($messages.selector);
       $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
       $in = jQueryFrame($in.selector);
@@ -312,9 +312,9 @@ QUnit.test("Ajax", function (assert) {
       waitForAjax(function () {
         $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
         $in = jQueryFrame($in.selector);
-        return step == 4
-            && $sectionCollapsed.val() == "true"
-            && $in.length == 0;
+        return step === 4
+            && $sectionCollapsed.val() === "true"
+            && $in.length === 0;
       }, function () {
         $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
         $in = jQueryFrame($in.selector);
@@ -327,7 +327,7 @@ QUnit.test("Ajax", function (assert) {
         step++;
         done();
       });
-    } else if (step == 5) {
+    } else if (step === 5) {
       $messages = jQueryFrame($messages.selector);
       $sectionCollapsed = jQueryFrame($sectionCollapsed.selector);
       $in = jQueryFrame($in.selector);

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/35-deprecated/15-suggest-method/suggest-method.test.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/35-deprecated/15-suggest-method/suggest-method.test.js?rev=1797071&r1=1797070&r2=1797071&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/35-deprecated/15-suggest-method/suggest-method.test.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/35-deprecated/15-suggest-method/suggest-method.test.js Wed May 31 16:30:11 2017
@@ -29,7 +29,7 @@ QUnit.test("Deprecated: 'Chile'", functi
 
   waitForAjax(function () {
     $suggestions = jQueryFrame($suggestions.selector);
-    return $suggestions.length == expectedLength;
+    return $suggestions.length === expectedLength;
   }, function () {
     $suggestions = jQueryFrame($suggestions.selector);
 
@@ -56,7 +56,7 @@ QUnit.test("Replacement: 'Chile'", funct
 
   waitForAjax(function () {
     $suggestions = jQueryFrame($suggestions.selector);
-    return $suggestions.length == expectedLength;
+    return $suggestions.length === expectedLength;
   }, function () {
     $suggestions = jQueryFrame($suggestions.selector);
 

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/4000-button+link/button+link.test.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/4000-button%2Blink/button%2Blink.test.js?rev=1797071&r1=1797070&r2=1797071&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/4000-button+link/button+link.test.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/4000-button+link/button+link.test.js Wed May 31 16:30:11 2017
@@ -56,7 +56,7 @@ function testStandardCommands($command,
   $command[0].click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $destinationSection = jQueryFrame($destinationSection.selector);
       assert.equal($destinationSection.length, 1);
 
@@ -65,7 +65,7 @@ function testStandardCommands($command,
 
       step++;
       done();
-    } else if (step == 2) {
+    } else if (step === 2) {
       $command = jQueryFrame($command.selector);
       assert.equal($command.length, 1);
 
@@ -120,7 +120,7 @@ function testTargetCommands($command, $d
    */
   waitForAjax(function () {
     $destinationSection = jQueryTargetFrame($destinationSection.selector);
-    return $destinationSection.length == 1;
+    return $destinationSection.length === 1;
   }, function () {
     $destinationSection = jQueryTargetFrame($destinationSection.selector);
     assert.equal($destinationSection.length, 1);

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/50000-java/20-ajax-execute/ajax-execute.test.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/50000-java/20-ajax-execute/ajax-execute.test.js?rev=1797071&r1=1797070&r2=1797071&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/50000-java/20-ajax-execute/ajax-execute.test.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/50000-java/20-ajax-execute/ajax-execute.test.js Wed May 31 16:30:11 2017
@@ -35,7 +35,7 @@ QUnit.test("ajax excecute", function (as
   $clearButton.click();
 
   jQuery("#page\\:testframe").load(function () {
-    if (step == 1) {
+    if (step === 1) {
       $in1 = jQueryFrame($in1.selector);
       $in2 = jQueryFrame($in2.selector);
       $in3 = jQueryFrame($in3.selector);
@@ -62,11 +62,11 @@ QUnit.test("ajax excecute", function (as
         $in2 = jQueryFrame($in2.selector);
         $in3 = jQueryFrame($in3.selector);
         $in4 = jQueryFrame($in4.selector);
-        return step == 2
-            && $in1.val() == "a"
-            && $in2.val() == "b"
-            && $in3.val() == "c"
-            && $in4.val() == "";
+        return step === 2
+            && $in1.val() === "a"
+            && $in2.val() === "b"
+            && $in3.val() === "c"
+            && $in4.val() === "";
       }, function () {
         $in1 = jQueryFrame($in1.selector);
         $in2 = jQueryFrame($in2.selector);
@@ -84,7 +84,7 @@ QUnit.test("ajax excecute", function (as
         step++;
         done();
       });
-    } else if (step == 3) {
+    } else if (step === 3) {
       $in1 = jQueryFrame($in1.selector);
       $in2 = jQueryFrame($in2.selector);
       $in3 = jQueryFrame($in3.selector);

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/demo.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/demo.js?rev=1797071&r1=1797070&r2=1797071&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/demo.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/demo.js Wed May 31 16:30:11 2017
@@ -43,7 +43,7 @@ var initInspect = function (elements) {
   var tobagoElements = Tobago.Utils.selectWithJQuery(elements, ".tobago-flexLayout");
 
   tobagoElements = tobagoElements.filter(function () {
-    return jQuery(this).parents("#page\\:content").length == 1;
+    return jQuery(this).parents("#page\\:content").length === 1;
   });
 
   tobagoElements.hover(function () {
@@ -60,7 +60,7 @@ var initInspect = function (elements) {
     var source = jQuery("#demo-view-source");
 
     var span = source.find("span.token.attr-value").filter(function () {
-      return jQuery(this).prev().text() + jQuery(this).text() == 'id=' + '"' + id + '"';
+      return jQuery(this).prev().text() + jQuery(this).text() === 'id=' + '"' + id + '"';
     });
     var tag = span.parent();
     tag.addClass("demo-selected");

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-test.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-test.js?rev=1797071&r1=1797070&r2=1797071&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-test.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-test.js Wed May 31 16:30:11 2017
@@ -27,7 +27,7 @@ function jQueryFrame(expression) {
  */
 function waitForAjax(waitingDone, executeWhenDone, maxWait) {
   var startTime = new Date().getTime();
-  maxWait = maxWait != null ? maxWait : 20000;
+  maxWait = maxWait !== null ? maxWait : 20000;
   var stillWaiting = true;
   var interval = setInterval(function() {
     if (new Date().getTime() - startTime < maxWait && stillWaiting) {
@@ -43,7 +43,7 @@ function getDuplicatedIDs() {
   var duplicatedIDs = [];
   jQueryFrame('[id]').each(function () {
     var ids = jQueryFrame('[id="' + this.id + '"]');
-    if (ids.length > 1 && ids[0] == this)
+    if (ids.length > 1 && ids[0] === this)
       duplicatedIDs.push(this.id);
   });
   return duplicatedIDs;

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-testAll.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-testAll.js?rev=1797071&r1=1797070&r2=1797071&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-testAll.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-testAll.js Wed May 31 16:30:11 2017
@@ -26,7 +26,7 @@ Tobago.registerListener(function() {
       waitForTest(function() {
         $thisFrame = jQuery($thisFrame.selector);
         return $thisFrame.contents().find("#qunit-banner").length > 0
-            && $thisFrame.contents().find("#qunit-banner").attr("class") != "";
+            && $thisFrame.contents().find("#qunit-banner").attr("class") !== "";
       }, function() {
         $nextFrame = jQuery($nextFrame.selector);
         runNextFrame($nextFrame);
@@ -53,7 +53,7 @@ function waitForTest(waitingDone, execut
 function runNextFrame($nextFrame) {
   if ($nextFrame.length > 0) {
     var url = $nextFrame.attr("name");
-    if (url != undefined) {
+    if (url !== undefined) {
       $nextFrame.removeAttr("name");
       $nextFrame.attr("src", url);
     }

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/script/tobago-assert.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/script/tobago-assert.js?rev=1797071&r1=1797070&r2=1797071&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/script/tobago-assert.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/script/tobago-assert.js Wed May 31 16:30:11 2017
@@ -25,7 +25,7 @@ var TobagoAssert = {
 
   assertLeft:function (elementOrId, left, epsilon) {
     var element = TobagoAssert.jQueryElement(elementOrId);
-    epsilon = epsilon != null ? epsilon : 0;
+    epsilon = epsilon !== null ? epsilon : 0;
     var offsetLeft = element.offset().left;
     if (Math.abs(offsetLeft - left) > epsilon) {
       TobagoAssert.fail("left", element, left, offsetLeft);
@@ -34,7 +34,7 @@ var TobagoAssert = {
 
   assertTop:function (elementOrId, top, epsilon) {
     var element = TobagoAssert.jQueryElement(elementOrId);
-    epsilon = epsilon != null ? epsilon : 0;
+    epsilon = epsilon !== null ? epsilon : 0;
     var offsetTop = element.offset().top;
     if (Math.abs(offsetTop - top) > epsilon) {
       TobagoAssert.fail("top", element, top, offsetTop);
@@ -43,7 +43,7 @@ var TobagoAssert = {
 
   assertWidth:function (elementOrId, width, epsilon) {
     var element = TobagoAssert.jQueryElement(elementOrId);
-    epsilon = epsilon != null ? epsilon : 0;
+    epsilon = epsilon !== null ? epsilon : 0;
     var offsetWidth = element.get(0).offsetWidth;
     if (Math.abs(offsetWidth - width) > epsilon) {
       TobagoAssert.fail("width", element, width, offsetWidth);
@@ -52,7 +52,7 @@ var TobagoAssert = {
 
   assertHeight:function (elementOrId, height, epsilon) {
     var element = TobagoAssert.jQueryElement(elementOrId);
-    epsilon = epsilon != null ? epsilon : 0;
+    epsilon = epsilon !== null ? epsilon : 0;
     var offsetHeight = element.get(0).offsetHeight;
     if (Math.abs(offsetHeight - height) > epsilon) {
       TobagoAssert.fail("height", element, height, offsetHeight);
@@ -90,29 +90,29 @@ var TobagoAssert = {
 
   assertAbsence:function (id) {
     var element = document.getElementById(id);
-    var result = element == null;
+    var result = element === null;
     TobagoAssert.assert(result, "The element with id=" + id + " was found, but should not!");
   },
 
   assertAttribute:function (elementOrId, attribute, expected) {
-    TobagoAssert.assert("value" != attribute,
+    TobagoAssert.assert("value" !== attribute,
       "The assertAttribute() is not allowed for the value attribute, please use assertValue() instead.");
     var element = TobagoAssert.jQueryElement(elementOrId);
-    TobagoAssert.assert(element.attr(attribute) == expected,
+    TobagoAssert.assert(element.attr(attribute) === expected,
       "The attribute '" + attribute + "' of element with id=" + element.attr('id')
           + " is '" + element.attr(attribute) + "', but expected was '" + expected + "'.");
   },
 
   assertValue:function (elementOrId, expected) {
     var element = TobagoAssert.jQueryElement(elementOrId);
-    TobagoAssert.assert(element.val() == expected,
+    TobagoAssert.assert(element.val() === expected,
         "The value of element with id=" + element.attr('id')
         + " is '" + element.val() + "', but expected was '" + expected + "'.");
   },
 
   assertContent:function (elementOrId, expected) {
     var element = TobagoAssert.jQueryElement(elementOrId);
-    TobagoAssert.assert(element.html() == expected,
+    TobagoAssert.assert(element.html() === expected,
         "The content of element with id=" + element.attr('id')
           + " is '" + element.html() + "', but expected was '" + expected + "'.");
   },
@@ -122,7 +122,7 @@ var TobagoAssert = {
    */
   jQueryElement:function (elementOrId) {
     var element;
-    if (typeof elementOrId == "string") {
+    if (typeof elementOrId === "string") {
       element = jQuery(Tobago.Utils.escapeClientId(elementOrId));
     } else { // JQuery Object Array
       element = elementOrId;
@@ -140,19 +140,19 @@ var TobagoAssert = {
       var epsilon = this.element.data("assert-epsilon");
 
       var left = this.element.data("assert-left");
-      if (left != null) {
+      if (left !== null) {
         TobagoAssert.assertLeft(this.element, left, epsilon);
       }
       var top = this.element.data("assert-top");
-      if (top != null) {
+      if (top !== null) {
         TobagoAssert.assertTop(this.element, top, epsilon);
       }
       var width = this.element.data("assert-width");
-      if (width != null) {
+      if (width !== null) {
         TobagoAssert.assertWidth(this.element, width, epsilon);
       }
       var height = this.element.data("assert-height");
-      if (height != null) {
+      if (height !== null) {
         TobagoAssert.assertHeight(this.element, height, epsilon);
       }
     },

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/date/datetime.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/date/datetime.js?rev=1797071&r1=1797070&r2=1797071&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/date/datetime.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/date/datetime.js Wed May 31 16:30:11 2017
@@ -83,7 +83,7 @@ TestDateTime.init = function () {
       console.error(e);
     }
 
-    if (javaFormatted.val() != jQueryUIFormatted.val()) {
+    if (javaFormatted.val() !== jQueryUIFormatted.val()) {
       jQueryUIFormatted.addClass("tobago-in-markup-error");
 
       if (javaPattern.hasClass("tobago-in-markup-error")) {
@@ -120,7 +120,7 @@ TestDateTime.testDate = function () {
   date = jQuery.datepicker.parseDate(format, initial);
   result = jQuery.datepicker.formatDate(format, date);
 
-  if (result != initial) {
+  if (result !== initial) {
     console.error("Error!");
   } else {
     console.info("Okay!");
@@ -138,7 +138,7 @@ TestDateTime.testTime = function () {
   date = jQuery.datepicker.parseTime(format, initial);
   result = jQuery.datepicker.formatTime(format, date);
 
-  if (result != initial) {
+  if (result !== initial) {
     console.error("Error!");
   } else {
     console.info("Okay!");
@@ -165,7 +165,7 @@ TestDateTime.testBoth = function () {
   };
   result = jQuery.datepicker.formatDate(formatD, date) + separator + jQuery.datepicker.formatTime(formatT, dateT);
 
-  if (result != initial) {
+  if (result !== initial) {
     console.error("Error!");
   } else {
     console.info("Okay!");

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/in/id-and-fieldId.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/in/id-and-fieldId.js?rev=1797071&r1=1797070&r2=1797071&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/in/id-and-fieldId.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/in/id-and-fieldId.js Wed May 31 16:30:11 2017
@@ -69,7 +69,7 @@ function fillIdDisplay(i, fieldClass) {
   var label = panel.children(".tobago-label");
   var field = panel.children(fieldClass);
 
-  if (fieldClass == ".tobago-selectBooleanCheckbox") { // special
+  if (fieldClass === ".tobago-selectBooleanCheckbox") { // special
     field = field.find("input:first");
   }
 
@@ -80,7 +80,7 @@ function fillIdDisplay(i, fieldClass) {
 
 function test(testId, expected) {
   var element = jQuery(Tobago.Utils.escapeClientId(testId));
-  if (element.val() != expected) {
+  if (element.val() !== expected) {
     element.addClass("tobago-in-markup-error");
     element.attr("title", "expected: '" + expected + "'");
   }

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/sheet/sheet-reload.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/sheet/sheet-reload.js?rev=1797071&r1=1797070&r2=1797071&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/sheet/sheet-reload.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/sheet/sheet-reload.js Wed May 31 16:30:11 2017
@@ -21,14 +21,14 @@ TestSheetReload.init = function() {
 
   setTimeout(function() {
     var value = jQuery(".tobago-sheet-body td").eq(1).find("span").html();
-    if (value != "0") {
+    if (value !== "0") {
       console.error("expect '0' not '" + value + "'");
     }
   }, 3000);
 
   setTimeout(function() {
     var value = jQuery(".tobago-sheet-body td").eq(1).find("span").html();
-    if (value != "2") {
+    if (value !== "2") {
       console.error("expect '2' not '" + value + "'");
     }
   }, 5000);

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/version/version.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/version/version.js?rev=1797071&r1=1797070&r2=1797071&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/version/version.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/version/version.js Wed May 31 16:30:11 2017
@@ -20,7 +20,7 @@ TestVersion = {};
 TestVersion.init = function () {
 
   var checked = jQuery("input[checked]");
-  if (checked.size() != 2) {
+  if (checked.size() !== 2) {
     TobagoAssert.fail("2 field must be checked", null, 2, checked);
   }
 
@@ -29,14 +29,14 @@ TestVersion.init = function () {
   var version = checked.eq(0).next().html().toLowerCase();
   var packageVersion = "version " + textList.eq(0).val().toLowerCase();
 
-  if (packageVersion.indexOf(version) == -1) {
+  if (packageVersion.indexOf(version) === -1) {
     TobagoAssert.fail("Version number", null, version, packageVersion);
   }
 
   var impl = checked.eq(1).next().html().toLowerCase();
   var packageImpl = textList.eq(1).val().toLowerCase();
 
-  if (packageImpl.indexOf(impl) == -1) {
+  if (packageImpl.indexOf(impl) === -1) {
     TobagoAssert.fail("Implementation", null, impl, packageImpl);
   }
 };



Mime
View raw message