Use testRunner instead of layoutTestController in the remaining layout tests
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 4 Aug 2012 02:40:10 +0000 (02:40 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 4 Aug 2012 02:40:10 +0000 (02:40 +0000)
https://bugs.webkit.org/show_bug.cgi?id=93172

Reviewed by Adam Barth.

One last sweeping patch.

* accessibility/canvas-accessibilitynodeobject.html:
* compositing/backface-visibility/backface-visibility-webgl.html:
* compositing/fixed-position-scroll-offset-history-restore.html:
* compositing/overflow/image-load-overflow-scrollbars.html:
* css3/flexbox/flexitem.html:
* dom/html/level1/core/selfhtml.js:
(startTest):
* dom/html/level2/core/selfhtml.js:
(startTest):
* dom/html/level2/events/selfhtml.js:
(startTest):
* dom/html/level2/html/AppletsCollection.html:
* dom/html/level2/html/HTMLBaseElement01.html:
* dom/html/level2/html/HTMLBaseElement02.html:
* dom/html/level2/html/selfhtml.js:
(startTest):
* dom/svg/level3/xpath/svgunit.js:
* dom/xhtml/level1/core/selfxhtml.js:
(startTest):
* dom/xhtml/level2/core/selfxhtml.js:
(startTest):
* dom/xhtml/level2/events/selfxhtml.js:
(startTest):
* dom/xhtml/level2/html/HTMLBaseElement01.xhtml:
* dom/xhtml/level2/html/HTMLBaseElement02.xhtml:
* dom/xhtml/level2/html/selfxhtml.js:
(startTest):
* dom/xhtml/level3/core/selfxhtml.js:
(startTest):
* editing/shadow/adjusting-editing-boundary-with-table-in-shadow.html:
* editing/shadow/bold-twice-in-shadow.html:
* editing/shadow/breaking-editing-boundaries-2.html:
* editing/shadow/contenteditable-propagation-at-shadow-boundary.html:
* editing/shadow/delete-characters-in-distributed-node-crash.html:
* editing/shadow/delete-list-in-shadow.html:
* editing/shadow/insertorderedlist-crash.html:
* editing/shadow/pressing-enter-on-list.html:
* editing/spelling/grammar-edit-word-expected.txt:
* editing/spelling/grammar-edit-word.html:
* fast/block/percent-height-descendant-not-removed-crash2.html:
* fast/block/positioning/abspositioned-object-under-split-relpositioned-inline-crash.html:
* fast/block/positioning/insert-positioned-in-anonymous-crash.html:
* fast/canvas/fallback-content.html:
* fast/css/counters/counter-reset-subtree-insert-crash.html:
* fast/css/crash-on-gradient-with-derived-color.html:
* fast/dom/NodeList/childNodes-reverse-iteration.html:
* fast/dom/Window/window-property-shadowing-onclick.html:
* fast/dom/XMLSerializer-xml-namespace.html:
* fast/dom/shadow/content-after-style.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@124685 268f45cc-cd09-0410-ab3c-d52691b4dbfc

41 files changed:
LayoutTests/ChangeLog
LayoutTests/accessibility/canvas-accessibilitynodeobject.html
LayoutTests/compositing/backface-visibility/backface-visibility-webgl.html
LayoutTests/compositing/fixed-position-scroll-offset-history-restore.html
LayoutTests/compositing/overflow/image-load-overflow-scrollbars.html
LayoutTests/css3/flexbox/flexitem.html
LayoutTests/dom/html/level1/core/selfhtml.js
LayoutTests/dom/html/level2/core/selfhtml.js
LayoutTests/dom/html/level2/events/selfhtml.js
LayoutTests/dom/html/level2/html/AppletsCollection.html
LayoutTests/dom/html/level2/html/HTMLBaseElement01.html
LayoutTests/dom/html/level2/html/HTMLBaseElement02.html
LayoutTests/dom/html/level2/html/selfhtml.js
LayoutTests/dom/svg/level3/xpath/svgunit.js
LayoutTests/dom/xhtml/level1/core/selfxhtml.js
LayoutTests/dom/xhtml/level2/core/selfxhtml.js
LayoutTests/dom/xhtml/level2/events/selfxhtml.js
LayoutTests/dom/xhtml/level2/html/HTMLBaseElement01.xhtml
LayoutTests/dom/xhtml/level2/html/HTMLBaseElement02.xhtml
LayoutTests/dom/xhtml/level2/html/selfxhtml.js
LayoutTests/dom/xhtml/level3/core/selfxhtml.js
LayoutTests/editing/shadow/adjusting-editing-boundary-with-table-in-shadow.html
LayoutTests/editing/shadow/bold-twice-in-shadow.html
LayoutTests/editing/shadow/breaking-editing-boundaries-2.html
LayoutTests/editing/shadow/contenteditable-propagation-at-shadow-boundary.html
LayoutTests/editing/shadow/delete-characters-in-distributed-node-crash.html
LayoutTests/editing/shadow/delete-list-in-shadow.html
LayoutTests/editing/shadow/insertorderedlist-crash.html
LayoutTests/editing/shadow/pressing-enter-on-list.html
LayoutTests/editing/spelling/grammar-edit-word-expected.txt
LayoutTests/editing/spelling/grammar-edit-word.html
LayoutTests/fast/block/percent-height-descendant-not-removed-crash2.html
LayoutTests/fast/block/positioning/abspositioned-object-under-split-relpositioned-inline-crash.html
LayoutTests/fast/block/positioning/insert-positioned-in-anonymous-crash.html
LayoutTests/fast/canvas/fallback-content.html
LayoutTests/fast/css/counters/counter-reset-subtree-insert-crash.html
LayoutTests/fast/css/crash-on-gradient-with-derived-color.html
LayoutTests/fast/dom/NodeList/childNodes-reverse-iteration.html
LayoutTests/fast/dom/Window/window-property-shadowing-onclick.html
LayoutTests/fast/dom/XMLSerializer-xml-namespace.html
LayoutTests/fast/dom/shadow/content-after-style.html

index 4fdbdf4..741bdba 100644 (file)
@@ -1,3 +1,62 @@
+2012-08-03  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Use testRunner instead of layoutTestController in the remaining layout tests
+        https://bugs.webkit.org/show_bug.cgi?id=93172
+
+        Reviewed by Adam Barth.
+
+        One last sweeping patch.
+
+        * accessibility/canvas-accessibilitynodeobject.html:
+        * compositing/backface-visibility/backface-visibility-webgl.html:
+        * compositing/fixed-position-scroll-offset-history-restore.html:
+        * compositing/overflow/image-load-overflow-scrollbars.html:
+        * css3/flexbox/flexitem.html:
+        * dom/html/level1/core/selfhtml.js:
+        (startTest):
+        * dom/html/level2/core/selfhtml.js:
+        (startTest):
+        * dom/html/level2/events/selfhtml.js:
+        (startTest):
+        * dom/html/level2/html/AppletsCollection.html:
+        * dom/html/level2/html/HTMLBaseElement01.html:
+        * dom/html/level2/html/HTMLBaseElement02.html:
+        * dom/html/level2/html/selfhtml.js:
+        (startTest):
+        * dom/svg/level3/xpath/svgunit.js:
+        * dom/xhtml/level1/core/selfxhtml.js:
+        (startTest):
+        * dom/xhtml/level2/core/selfxhtml.js:
+        (startTest):
+        * dom/xhtml/level2/events/selfxhtml.js:
+        (startTest):
+        * dom/xhtml/level2/html/HTMLBaseElement01.xhtml:
+        * dom/xhtml/level2/html/HTMLBaseElement02.xhtml:
+        * dom/xhtml/level2/html/selfxhtml.js:
+        (startTest):
+        * dom/xhtml/level3/core/selfxhtml.js:
+        (startTest):
+        * editing/shadow/adjusting-editing-boundary-with-table-in-shadow.html:
+        * editing/shadow/bold-twice-in-shadow.html:
+        * editing/shadow/breaking-editing-boundaries-2.html:
+        * editing/shadow/contenteditable-propagation-at-shadow-boundary.html:
+        * editing/shadow/delete-characters-in-distributed-node-crash.html:
+        * editing/shadow/delete-list-in-shadow.html:
+        * editing/shadow/insertorderedlist-crash.html:
+        * editing/shadow/pressing-enter-on-list.html:
+        * editing/spelling/grammar-edit-word-expected.txt:
+        * editing/spelling/grammar-edit-word.html:
+        * fast/block/percent-height-descendant-not-removed-crash2.html:
+        * fast/block/positioning/abspositioned-object-under-split-relpositioned-inline-crash.html:
+        * fast/block/positioning/insert-positioned-in-anonymous-crash.html:
+        * fast/canvas/fallback-content.html:
+        * fast/css/counters/counter-reset-subtree-insert-crash.html:
+        * fast/css/crash-on-gradient-with-derived-color.html:
+        * fast/dom/NodeList/childNodes-reverse-iteration.html:
+        * fast/dom/Window/window-property-shadowing-onclick.html:
+        * fast/dom/XMLSerializer-xml-namespace.html:
+        * fast/dom/shadow/content-after-style.html:
+
 2012-08-03  David Barton  <dbarton@mathscribe.com>
 
         Rebaseline MathML pixel tests with STIX fonts for Lion
index 86bbbb6..94cab26 100644 (file)
@@ -31,8 +31,8 @@
 <script>
 description("This test makes sure that AccessibilityNodeObjects are created for elements in a canvas subtree.");
 
-if (window.layoutTestController && window.accessibilityController) {
-    window.layoutTestController.dumpAsText();
+if (window.testRunner && window.accessibilityController) {
+    window.testRunner.dumpAsText();
 
     function appendFocusableDescendants(axObject, axFocusableList) {
         for (var i = 0; i < axObject.childrenCount; i++) {
index e28a27b..6b90de3 100644 (file)
@@ -47,8 +47,8 @@
      create a GL context) -->
 
 <script>
-  if (window.layoutTestController) {
-    layoutTestController.overridePreference("WebKitWebGLEnabled", "1");
+  if (window.testRunner) {
+    testRunner.overridePreference("WebKitWebGLEnabled", "1");
   }
 </script>
 
index 47e9d20..b1ecd13 100644 (file)
@@ -10,8 +10,8 @@
   <div style="position: fixed; -webkit-transform: translateZ(0); top: 50px; width: 200px; height: 100px; background-color: green;"></div>
 
 <script>
-if (window.layoutTestController) {
-    layoutTestController.waitUntilDone();
+if (window.testRunner) {
+    testRunner.waitUntilDone();
 }
 
 onload = function() {
@@ -19,9 +19,9 @@ onload = function() {
         // We went foward and back again.
         // If the scroll position is restored correctly the red div won't be visible.
         delete window.localStorage.stage;
-        if (window.layoutTestController) {
-            layoutTestController.dumpAsText(true);
-            layoutTestController.notifyDone();
+        if (window.testRunner) {
+            testRunner.dumpAsText(true);
+            testRunner.notifyDone();
         }
     } else {
         window.localStorage.stage = 'two';
index 270b913..c90e68f 100644 (file)
     content.onload = function() {
       var overflow = document.getElementById("overflow");
         overflow.scrollTop = 50;
-        if (window.layoutTestController)
-          layoutTestController.notifyDone();
+        if (window.testRunner)
+          testRunner.notifyDone();
     }
     content.src = canvas.toDataURL();
   }
   window.addEventListener('load', doTest, false);
 
-  if (window.layoutTestController) {
-    layoutTestController.waitUntilDone();
-    layoutTestController.dumpAsText(true);
+  if (window.testRunner) {
+    testRunner.waitUntilDone();
+    testRunner.dumpAsText(true);
   }
 </script>
 </head>
index 5a5db98..83c6662 100644 (file)
@@ -18,8 +18,8 @@
 }
 </style>
 <script>
-if (window.layoutTestController)
-    layoutTestController.dumpAsText();
+if (window.testRunner)
+    testRunner.dumpAsText();
 </script>
 <script src="../../resources/check-layout.js"></script>
 <body onload="checkLayout('.flexbox')">
index 06b0cc1..a57b6b1 100644 (file)
@@ -678,9 +678,9 @@ function startTest() {
 //  Inform the test controller that this test has a text-format result and so should
 //  be dumped as text, and also that the dump should not occur automatically.
 //
-if (window.layoutTestController) {
-    layoutTestController.dumpAsText();
-    layoutTestController.waitUntilDone();
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
 }
 //
 //  End WebKit modification
@@ -711,8 +711,8 @@ if (window.layoutTestController) {
 //
 //  Inform the test controller that this test is complete, so it's time to dump.
 //
-    if (window.layoutTestController) {
-        layoutTestController.notifyDone();
+    if (window.testRunner) {
+        testRunner.notifyDone();
     }
 //
 //  End WebKit modification
index 06b0cc1..a57b6b1 100644 (file)
@@ -678,9 +678,9 @@ function startTest() {
 //  Inform the test controller that this test has a text-format result and so should
 //  be dumped as text, and also that the dump should not occur automatically.
 //
-if (window.layoutTestController) {
-    layoutTestController.dumpAsText();
-    layoutTestController.waitUntilDone();
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
 }
 //
 //  End WebKit modification
@@ -711,8 +711,8 @@ if (window.layoutTestController) {
 //
 //  Inform the test controller that this test is complete, so it's time to dump.
 //
-    if (window.layoutTestController) {
-        layoutTestController.notifyDone();
+    if (window.testRunner) {
+        testRunner.notifyDone();
     }
 //
 //  End WebKit modification
index 06b0cc1..a57b6b1 100644 (file)
@@ -678,9 +678,9 @@ function startTest() {
 //  Inform the test controller that this test has a text-format result and so should
 //  be dumped as text, and also that the dump should not occur automatically.
 //
-if (window.layoutTestController) {
-    layoutTestController.dumpAsText();
-    layoutTestController.waitUntilDone();
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
 }
 //
 //  End WebKit modification
@@ -711,8 +711,8 @@ if (window.layoutTestController) {
 //
 //  Inform the test controller that this test is complete, so it's time to dump.
 //
-    if (window.layoutTestController) {
-        layoutTestController.notifyDone();
+    if (window.testRunner) {
+        testRunner.notifyDone();
     }
 //
 //  End WebKit modification
index ef6fbfa..7440413 100644 (file)
@@ -2,8 +2,8 @@
 <head>
 <title>Fix for 13636</title>
 <script>
-    if (window.layoutTestController) {
-        layoutTestController.dumpAsText();
+    if (window.testRunner) {
+        testRunner.dumpAsText();
     }
     
     function outputAppletsLength() {
index 0a72a8f..fb26eb5 100644 (file)
@@ -18,8 +18,8 @@ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 //
 //   Webkit modification:  11-August-2005
 //
-if (window.layoutTestController)
-    layoutTestController.dumpAsText();
+if (window.testRunner)
+    testRunner.dumpAsText();
 //
 //   End modification
 //
index e674f37..1a14db0 100644 (file)
@@ -19,8 +19,8 @@ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 //
 //   Webkit modification:  11-August-2005
 //
-if (window.layoutTestController)
-    layoutTestController.dumpAsText();
+if (window.testRunner)
+    testRunner.dumpAsText();
 //
 //   End modification
 //
index 06b0cc1..a57b6b1 100644 (file)
@@ -678,9 +678,9 @@ function startTest() {
 //  Inform the test controller that this test has a text-format result and so should
 //  be dumped as text, and also that the dump should not occur automatically.
 //
-if (window.layoutTestController) {
-    layoutTestController.dumpAsText();
-    layoutTestController.waitUntilDone();
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
 }
 //
 //  End WebKit modification
@@ -711,8 +711,8 @@ if (window.layoutTestController) {
 //
 //  Inform the test controller that this test is complete, so it's time to dump.
 //
-    if (window.layoutTestController) {
-        layoutTestController.notifyDone();
+    if (window.testRunner) {
+        testRunner.notifyDone();
     }
 //
 //  End WebKit modification
index b4e5847..72c0aa1 100644 (file)
@@ -10,8 +10,8 @@ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 */
 
 /* Begin additions for WebKit layout test framework. */
-if (window.layoutTestController)
-    layoutTestController.dumpAsText();
+if (window.testRunner)
+    testRunner.dumpAsText();
 /* End additions for WebKit layout test framework. */
 
 
index 98a710a..e1f2205 100644 (file)
@@ -701,9 +701,9 @@ function startTest() {
 //  Inform the test controller that this test has a text-format result and so should
 //  be dumped as text, and also that the dump should not occur automatically.
 //
-if (window.layoutTestController) {
-    layoutTestController.dumpAsText();
-    layoutTestController.waitUntilDone();
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
 }
 //
 //  End WebKit modification
@@ -733,8 +733,8 @@ if (window.layoutTestController) {
 //
 //  Inform the test controller that this test is complete, so it's time to dump.
 //
-    if (window.layoutTestController) {
-        layoutTestController.notifyDone();
+    if (window.testRunner) {
+        testRunner.notifyDone();
     }
 //
 //  End WebKit modification
index 98a710a..e1f2205 100644 (file)
@@ -701,9 +701,9 @@ function startTest() {
 //  Inform the test controller that this test has a text-format result and so should
 //  be dumped as text, and also that the dump should not occur automatically.
 //
-if (window.layoutTestController) {
-    layoutTestController.dumpAsText();
-    layoutTestController.waitUntilDone();
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
 }
 //
 //  End WebKit modification
@@ -733,8 +733,8 @@ if (window.layoutTestController) {
 //
 //  Inform the test controller that this test is complete, so it's time to dump.
 //
-    if (window.layoutTestController) {
-        layoutTestController.notifyDone();
+    if (window.testRunner) {
+        testRunner.notifyDone();
     }
 //
 //  End WebKit modification
index 98a710a..e1f2205 100644 (file)
@@ -701,9 +701,9 @@ function startTest() {
 //  Inform the test controller that this test has a text-format result and so should
 //  be dumped as text, and also that the dump should not occur automatically.
 //
-if (window.layoutTestController) {
-    layoutTestController.dumpAsText();
-    layoutTestController.waitUntilDone();
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
 }
 //
 //  End WebKit modification
@@ -733,8 +733,8 @@ if (window.layoutTestController) {
 //
 //  Inform the test controller that this test is complete, so it's time to dump.
 //
-    if (window.layoutTestController) {
-        layoutTestController.notifyDone();
+    if (window.testRunner) {
+        testRunner.notifyDone();
     }
 //
 //  End WebKit modification
index f0f1781..a2be71b 100644 (file)
@@ -23,8 +23,8 @@ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   //  Inform the test controller that this test has a text-format result and so should
   //  be dumped as text.
   //
-  if (window.layoutTestController)
-    layoutTestController.dumpAsText();
+  if (window.testRunner)
+    testRunner.dumpAsText();
 
   function assertSize(descr, expected, actual) {
     var actualSize;
index 63942bc..08f291c 100644 (file)
@@ -23,8 +23,8 @@ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   //  Inform the test controller that this test has a text-format result and so should
   //  be dumped as text.
   //
-  if (window.layoutTestController)
-    layoutTestController.dumpAsText();
+  if (window.testRunner)
+    testRunner.dumpAsText();
 
   function assertSize(descr, expected, actual) {
     var actualSize;
index e7127f7..c00015d 100644 (file)
@@ -708,9 +708,9 @@ function startTest() {
 //  Inform the test controller that this test has a text-format result and so should
 //  be dumped as text, and also that the dump should not occur automatically.
 //
-if (window.layoutTestController) {
-    layoutTestController.dumpAsText();
-    layoutTestController.waitUntilDone();
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
 }
 //
 //  End WebKit modification
@@ -740,8 +740,8 @@ if (window.layoutTestController) {
 //
 //  Inform the test controller that this test is complete, so it's time to dump.
 //
-    if (window.layoutTestController) {
-        layoutTestController.notifyDone();
+    if (window.testRunner) {
+        testRunner.notifyDone();
     }
 //
 //  End WebKit modification
index 8976ccf..5ed3ed6 100644 (file)
@@ -701,9 +701,9 @@ function startTest() {
 //  Inform the test controller that this test has a text-format result and so should
 //  be dumped as text, and also that the dump should not occur automatically.
 //
-if (window.layoutTestController) {
-    layoutTestController.dumpAsText();
-    layoutTestController.waitUntilDone();
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
 }
 //
 //  End WebKit modification
@@ -733,8 +733,8 @@ if (window.layoutTestController) {
 //
 //  Inform the test controller that this test is complete, so it's time to dump.
 //
-    if (window.layoutTestController) {
-        layoutTestController.notifyDone();
+    if (window.testRunner) {
+        testRunner.notifyDone();
     }
 //
 //  End WebKit modification
index dd7706f..083de7c 100644 (file)
@@ -14,8 +14,8 @@
 <p id="description">Selecting around a table which is distributed from shadow subtree to nested shadow subtree will trigger an assertion. To try manually, select from "shadow 2" to around "after" and confirm a crash does not occur.</p>
 
 <script>
-if (window.layoutTestController)
-    layoutTestController.dumpAsText();
+if (window.testRunner)
+    testRunner.dumpAsText();
 
 var shadowRoot = new WebKitShadowRoot(host);
 var div = document.createElement('div');
index 95706d3..24b8fae 100644 (file)
@@ -15,8 +15,8 @@
 <pre id="console"></pre>
 
 <script>
-if (window.layoutTestController)
-    layoutTestController.dumpAsText();
+if (window.testRunner)
+    testRunner.dumpAsText();
 
 var shadowRoot = new WebKitShadowRoot(host);
 shadowRoot.innerHTML = '<div id="shadow-host"><span contenteditable>shadow before</span><shadow></shadow>shadow (after)</div>';
index c3c8085..756a506 100644 (file)
@@ -13,8 +13,8 @@
 </div>
 
 <script>
-if (window.layoutTestController)
-    layoutTestController.dumpAsText();
+if (window.testRunner)
+    testRunner.dumpAsText();
 
 var shadowRoot = new WebKitShadowRoot(host);
 var div = document.createElement('div');
index 2a59185..61c86d5 100644 (file)
@@ -15,8 +15,8 @@
 </div>
 <pre id="console"></pre>
 <script>
-if (window.layoutTestController)
-    layoutTestController.dumpAsText();
+if (window.testRunner)
+    testRunner.dumpAsText();
 
 function computedStyle(element, style) {
     var cs = window.getComputedStyle(element);
index 3b94161..1e85114 100644 (file)
@@ -4,8 +4,8 @@
 <p id="description">This tests the deletion of text in distributed node does not crash. To run it outside of DRT, you must delete text, 'foo', manually.</p>
 <div id="shadowhost" contenteditable><div>foo</div></div>
 <script>
-if (window.layoutTestController)
-    layoutTestController.dumpAsText();
+if (window.testRunner)
+    testRunner.dumpAsText();
 var shadowRoot = new WebKitShadowRoot(document.getElementById('shadowhost'));
 shadowRoot.innerHTML = "<content></content>";
 
index 1f76bfd..3fde550 100644 (file)
@@ -17,8 +17,8 @@
 <pre id="console"></pre>
 
 <script>
-if (window.layoutTestController)
-    layoutTestController.dumpAsText();
+if (window.testRunner)
+    testRunner.dumpAsText();
 
 var shadowRoot = new WebKitShadowRoot(host);
 var li = document.createElement('li');
index 31afc57..2581063 100644 (file)
@@ -16,8 +16,8 @@ To test manually, select from (before nested) to (after nested), then press Ital
 </div>
 
 <script>
-if (window.layoutTestController)
-    layoutTestController.dumpAsText();
+if (window.testRunner)
+    testRunner.dumpAsText();
 
 var shadowRoot = new WebKitShadowRoot(host);
 var div = document.createElement('div');
index 0999cd1..2bd7c63 100644 (file)
@@ -17,8 +17,8 @@ becasue modifying Shadow DOM removes the renderer in Shadow DOM and desendant of
 </div>
 
 <script>
-if (window.layoutTestController)
-    layoutTestController.dumpAsText();
+if (window.testRunner)
+    testRunner.dumpAsText();
 
 var shadowRoot = new WebKitShadowRoot(host);
 var li = document.createElement('li');
index 01bc8e3..6bd00cd 100644 (file)
@@ -6,18 +6,18 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 document.execCommand("InsertText", false, "You has the right.")
 PASS internals.hasGrammarMarker(document, 4, 3) is true
 Delete the end of this sentence until it becomes "You ha".
-layoutTestController.execCommand("DeleteBackward")
-layoutTestController.execCommand("DeleteBackward")
-layoutTestController.execCommand("DeleteBackward")
-layoutTestController.execCommand("DeleteBackward")
-layoutTestController.execCommand("DeleteBackward")
-layoutTestController.execCommand("DeleteBackward")
-layoutTestController.execCommand("DeleteBackward")
-layoutTestController.execCommand("DeleteBackward")
-layoutTestController.execCommand("DeleteBackward")
-layoutTestController.execCommand("DeleteBackward")
-layoutTestController.execCommand("DeleteBackward")
-layoutTestController.execCommand("DeleteBackward")
+testRunner.execCommand("DeleteBackward")
+testRunner.execCommand("DeleteBackward")
+testRunner.execCommand("DeleteBackward")
+testRunner.execCommand("DeleteBackward")
+testRunner.execCommand("DeleteBackward")
+testRunner.execCommand("DeleteBackward")
+testRunner.execCommand("DeleteBackward")
+testRunner.execCommand("DeleteBackward")
+testRunner.execCommand("DeleteBackward")
+testRunner.execCommand("DeleteBackward")
+testRunner.execCommand("DeleteBackward")
+testRunner.execCommand("DeleteBackward")
 PASS internals.hasGrammarMarker(document, 4, 2) is false
 PASS successfullyParsed is true
 
index e3e8131..79c1caa 100644 (file)
@@ -18,7 +18,7 @@ shouldBeTrue('internals.hasGrammarMarker(document, 4, 3)');
 
 debug('Delete the end of this sentence until it becomes "You ha".');
 for (var i = 0; i < 12; ++i)
-    evalAndLog('layoutTestController.execCommand("DeleteBackward")');
+    evalAndLog('testRunner.execCommand("DeleteBackward")');
 shouldBeFalse('internals.hasGrammarMarker(document, 4, 2)');
 
 internals.settings.setUnifiedTextCheckingEnabled(false);
index a88e2cf..093c7e5 100755 (executable)
@@ -10,8 +10,8 @@
 }
 </style>
 <script>
-if (window.layoutTestController)
-    layoutTestController.dumpAsText();
+if (window.testRunner)
+    testRunner.dumpAsText();
  
 onload = function() {
     document.body.appendChild(document.createElement('form'));
@@ -29,4 +29,4 @@ onload = function() {
 </head>
 <body>
 </body>
-</html>
\ No newline at end of file
+</html>
index d9523e7..6d6a746 100644 (file)
@@ -13,8 +13,8 @@ window.onload = function() {
     document.body.offsetTop;
     document.body.innerHTML = "PASS. WebKit didn't crash.";
 
-    if (window.layoutTestController)
-        layoutTestController.dumpAsText();
+    if (window.testRunner)
+        testRunner.dumpAsText();
 }
 </script>
 <i class="class1">
index 6f5add8..3be8007 100644 (file)
@@ -11,8 +11,8 @@
       }
     </style>
     <script>
-      if (window.layoutTestController)
-        layoutTestController.dumpAsText();
+      if (window.testRunner)
+        testRunner.dumpAsText();
       function runTest() {
         document.getElementById('positioned').innerHTML = 'PASSED';
       }
index 4f281c7..0f33521 100644 (file)
@@ -39,8 +39,8 @@
 <script>
 description("This test makes sure that focusable elements in canvas fallback content are focusable.");
 
-if (window.layoutTestController)
-    window.layoutTestController.dumpAsText();
+if (window.testRunner)
+    window.testRunner.dumpAsText();
 
 var element;
 function checkFocusable(id) {
index 0e5419a..041483e 100644 (file)
@@ -42,8 +42,8 @@
 }\r
 </style>\r
 <script>\r
-if (window.layoutTestController)\r
-  layoutTestController.dumpAsText();\r
+if (window.testRunner)\r
+  testRunner.dumpAsText();\r
 \r
 window.onload = function() {\r
   rules = [\r
index 5adcc72..cbb4a1e 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <script>
-if (window.layoutTestController)
-  layoutTestController.dumpAsText();
+if (window.testRunner)
+  testRunner.dumpAsText();
 </script>
 <body style="background-image: -webkit-linear-gradient(green, -webkit-activelink)">
 This test passes if it does not CRASH.
index a6616de..b5e8277 100644 (file)
@@ -7,8 +7,8 @@
 <script src="../../js/resources/js-test-pre.js"></script>
 <script>
 
-if (window.layoutTestController)
-    layoutTestController.dumpAsText();
+if (window.testRunner)
+    testRunner.dumpAsText();
 
 var node = document.querySelector('pre');
 var failed = false;
index deb559b..339adc4 100644 (file)
@@ -4,8 +4,8 @@
 
 description('This tests the ES5.2 behavior where global variables should not trigger setters on the Window object');
 
-if (window.layoutTestController)
-    layoutTestController.dumpAsText();
+if (window.testRunner)
+    testRunner.dumpAsText();
 
 var onClickCalled = false;
 
index 1e031bf..509b7ea 100644 (file)
@@ -3,8 +3,8 @@
     <script type="text/javascript">
     function runTest()
     {
-        if (window.layoutTestController)
-            layoutTestController.dumpAsText();
+        if (window.testRunner)
+            testRunner.dumpAsText();
 
         var target = document.getElementById("target");
 
index 502cb42..24f1191 100644 (file)
@@ -3,14 +3,14 @@
 <body>
 <div id="host"><div>host content</div></div>
 <script>
-if (window.layoutTestController)
-    window.layoutTestController.waitUntilDone();
+if (window.testRunner)
+    window.testRunner.waitUntilDone();
 var root = new WebKitShadowRoot(document.querySelector('#host'));
 root.innerHTML = '<style>invalid { }</style>' +
                  'text<content></content>';
 window.setTimeout(function() {
-    if (window.layoutTestController)
-        window.layoutTestController.notifyDone();
+    if (window.testRunner)
+        window.testRunner.notifyDone();
 }, 0);
 </script>
 </body>