[HtmlUnit] SVN: [13845] trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/ javascript/PostponedActionTest.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[HtmlUnit] SVN: [13845] trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/ javascript/PostponedActionTest.java

asashour-2
Revision: 13845
          http://sourceforge.net/p/htmlunit/code/13845
Author:   asashour
Date:     2017-03-20 16:06:22 +0000 (Mon, 20 Mar 2017)
Log Message:
-----------
trivial

Modified Paths:
--------------
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/PostponedActionTest.java

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/PostponedActionTest.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/PostponedActionTest.java 2017-03-20 13:32:02 UTC (rev 13844)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/PostponedActionTest.java 2017-03-20 16:06:22 UTC (rev 13845)
@@ -44,15 +44,15 @@
         final String html = "<html>\n"
             + "<head><title>First Page</title>\n"
             + "<script>\n"
-            + "  function test() {\n"
-            + "    alert('before');\n"
-            + "    var iframe2 = document.createElement('iframe');\n"
-            + "    iframe2.src = 'frame2.html';\n"
-            + "    document.body.appendChild(iframe2);\n"
-            + "    var iframe3 = document.createElement('iframe');\n"
-            + "    document.body.appendChild(iframe3);\n"
-            + "    iframe3.src = 'frame3.html';\n"
-            + "    alert('after');\n"
+            + "function test() {\n"
+            + "  alert('before');\n"
+            + "  var iframe2 = document.createElement('iframe');\n"
+            + "  iframe2.src = 'frame2.html';\n"
+            + "  document.body.appendChild(iframe2);\n"
+            + "  var iframe3 = document.createElement('iframe');\n"
+            + "  document.body.appendChild(iframe3);\n"
+            + "  iframe3.src = 'frame3.html';\n"
+            + "  alert('after');\n"
             + "}\n"
             + "</script>\n"
             + "</head>\n"
@@ -80,12 +80,12 @@
         final String firstContent = "<html>\n"
             + "<head><title>First Page</title>\n"
             + "<script>\n"
-            + "  function test() {\n"
-            + "    alert('before');\n"
-            + "    var iframe = document.createElement('iframe');\n"
-            + "    document.body.appendChild(iframe);\n"
-            + "    iframe.contentWindow.location.replace('" + URL_SECOND + "');\n"
-            + "    alert('after');\n"
+            + "function test() {\n"
+            + "  alert('before');\n"
+            + "  var iframe = document.createElement('iframe');\n"
+            + "  document.body.appendChild(iframe);\n"
+            + "  iframe.contentWindow.location.replace('" + URL_SECOND + "');\n"
+            + "  alert('after');\n"
             + "}\n"
             + "</script>\n"
             + "</head>\n"
@@ -113,17 +113,17 @@
         final String html = "<html>\n"
                 + "<head><title>First Page</title>\n"
                 + "<script>\n"
-                + "  function test() {\n"
-                + "    alert('before');\n"
-                + "    var iframe = document.createElement('iframe');\n"
-                + "    iframe.src = 'iframe.html';\n"
-                + "    document.body.appendChild(iframe);\n"
-                + "    alert('after');\n"
+                + "function test() {\n"
+                + "  alert('before');\n"
+                + "  var iframe = document.createElement('iframe');\n"
+                + "  iframe.src = 'iframe.html';\n"
+                + "  document.body.appendChild(iframe);\n"
+                + "  alert('after');\n"
                 + "}\n"
-                + "  function timeout() {\n"
-                + "    alert('setting timeout');\n"
-                + "    window.setTimeout(function() {test()}, 400);\n"
-                + "    window.setTimeout(function() {alert('simpleAlert')}, 500);\n"
+                + "function timeout() {\n"
+                + "  alert('setting timeout');\n"
+                + "  window.setTimeout(function() {test()}, 400);\n"
+                + "  window.setTimeout(function() {alert('simpleAlert')}, 500);\n"
                 + "}\n"
                 + "</script>\n"
                 + "</head>\n"


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Loading...