You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2019/09/11 12:57:33 UTC

[myfaces-tobago] branch master updated: fix integration tests; deactivate prisim inspection

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 aca9bd2  fix integration tests; deactivate prisim inspection
aca9bd2 is described below

commit aca9bd2123b39ca079c9bfe4129da855ade5c224
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Wed Sep 11 14:57:19 2019 +0200

    fix integration tests; deactivate prisim inspection
---
 tobago-example/tobago-example-demo/src/main/webapp/script/demo.js  | 2 +-
 .../tobago-example-demo/src/main/webapp/script/tobago-testAll.js   | 4 +++-
 tobago-example/tobago-example-demo/src/main/webapp/test.xhtml      | 7 ++++---
 3 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/tobago-example/tobago-example-demo/src/main/webapp/script/demo.js b/tobago-example/tobago-example-demo/src/main/webapp/script/demo.js
index 020f8b7..6698afa 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/script/demo.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/script/demo.js
@@ -21,7 +21,7 @@ class Demo {
 
   static init(element) {
     Demo.initAlert(element);
-    Demo.initInspect(element);
+    // Demo.initInspect(element); //TODO fix inspection
     Demo.initTestLinks(element);
     Demo.initTestFrame(element);
     Demo.initGoogleSearch(element);
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-testAll.js b/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-testAll.js
index c7b4d7d..638a088 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-testAll.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-testAll.js
@@ -55,4 +55,6 @@ function testAll() {
   cycle();
 }
 
-testAll();
+document.addEventListener("DOMContentLoaded", function (event) {
+  testAll();
+});
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/test.xhtml b/tobago-example/tobago-example-demo/src/main/webapp/test.xhtml
index f2cd500..eb70ce6 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/test.xhtml
+++ b/tobago-example/tobago-example-demo/src/main/webapp/test.xhtml
@@ -23,10 +23,11 @@
                 xmlns="http://www.w3.org/1999/xhtml">
   <tc:script file="#{request.contextPath}/script/demo.js"/>
   <tc:script file="#{request.contextPath}/script/qunit-2.9.2.js"/>
-  <tc:script file="#{request.contextPath}/tobago/test/tobago-test-tool.js"/>
-  <tc:script file="#{request.contextPath}/script/tobago-test.js"/>
+  <tc:script file="#{request.contextPath}/tobago/test/tobago-test-tool.js" type="module"/>
+  <tc:script file="#{request.contextPath}/script/tobago-test.js" type="module"/>
   <tc:style file="#{request.contextPath}/style/qunit-2.9.2.css"/>
-  <tc:script file="#{request.contextPath}/#{param['accessTest'] ? 'error/error' : param['base']}.test.js"/>
+  <tc:script file="#{request.contextPath}/#{param['accessTest'] ? 'error/error' : param['base']}.test.js"
+             type="module"/>
 
   <div id="qunit"></div>
   <div id="qunit-fixture"></div>