myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hno...@apache.org
Subject [myfaces-tobago] branch master updated: fix QUnit test: event.xhtml
Date Fri, 06 Jul 2018 09:04:58 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new a83e63b  fix QUnit test: event.xhtml
a83e63b is described below

commit a83e63be5c62483fa55219482ecc263d367016dd
Author: Henning Noeth <hnoeth@apache.org>
AuthorDate: Fri Jul 6 11:04:47 2018 +0200

    fix QUnit test: event.xhtml
---
 .../src/main/webapp/content/40-test/6000-event/event.test.js        | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

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 d0f806e..bf72d3b 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
@@ -80,8 +80,10 @@ function testEvent(assert, componentName, eventNames, eventComponentFn,
ajaxComp
   var oldTimestamp;
 
   var TTT = new TobagoTestTool(assert);
-  for (i = 0; i < eventNames.length; i++) {
-    var eventName = eventNames[i];
+  for (var i = 0; i < eventNames.length; i++) {
+    // need 'let' here, otherwise all tests are executed with last eventName in array
+    // also work in IE11
+    let eventName = eventNames[i];
 
     TTT.action(function () {
       activateComponent(componentName, eventName);


Mime
View raw message