myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1750609 - in /myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp: WEB-INF/tobago-config.xml content/40-test/50000-java/20-ajax-execute/ajax-execute.test.js
Date Wed, 29 Jun 2016 08:34:16 GMT
Author: lofwyr
Date: Wed Jun 29 08:34:16 2016
New Revision: 1750609

URL: http://svn.apache.org/viewvc?rev=1750609&view=rev
Log:
TOBAGO-1569: AJAX should be independent from Multi-Form concept

Modified:
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/tobago-config.xml
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/50000-java/20-ajax-execute/ajax-execute.test.js

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/tobago-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/tobago-config.xml?rev=1750609&r1=1750608&r2=1750609&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/tobago-config.xml
(original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/tobago-config.xml
Wed Jun 29 08:34:16 2016
@@ -41,6 +41,9 @@
 
   <resource-dir>tobago-resource</resource-dir>
 
+  <!-- This is needed for the testing functionality of the demo, it works with iframes
-->
+  <prevent-frame-attacks>false</prevent-frame-attacks>
+
   <!-- XXX With CSP Tobago 3.0.x is currently not working 100% see TOBAGO-1534 -->
   <content-security-policy mode="report-only">
     <directive>frame-src https://maps.google.com</directive>

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=1750609&r1=1750608&r2=1750609&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 Jun 29 08:34:16 2016
@@ -33,12 +33,10 @@ QUnit.test("ajax excecute", function (as
   $in2 = jQueryFrame("#page\\:in2\\:\\:field");
   $in3 = jQueryFrame("#page\\:in3\\:\\:field");
   $in4 = jQueryFrame("#page\\:in4\\:\\:field");
-
   assert.equal($in1.val(), "");
   assert.equal($in2.val(), "");
   assert.equal($in3.val(), "");
   assert.equal($in4.val(), "");
-
   $in1.val("a");
   $in2.val("b");
   $in3.val("c");
@@ -47,6 +45,16 @@ QUnit.test("ajax excecute", function (as
   var $submitButton = jQueryFrame("#page\\:clear");
   $submitButton.click();
 
+  $in1 = jQueryFrame("#page\\:in1\\:\\:field");
+  $in2 = jQueryFrame("#page\\:in2\\:\\:field");
+  $in3 = jQueryFrame("#page\\:in3\\:\\:field");
+  $in4 = jQueryFrame("#page\\:in4\\:\\:field");
+  assert.equal($in1.val(), "a");
+  assert.equal($in2.val(), "b");
+  assert.equal($in3.val(), "c");
+  assert.equal($in4.val(), "");
+
+
   // todo: to be continued...
 
 });



Mime
View raw message