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
+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
<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++) {
create a GL context) -->
<script>
- if (window.layoutTestController) {
- layoutTestController.overridePreference("WebKitWebGLEnabled", "1");
+ if (window.testRunner) {
+ testRunner.overridePreference("WebKitWebGLEnabled", "1");
}
</script>
<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() {
// 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';
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>
}
</style>
<script>
-if (window.layoutTestController)
- layoutTestController.dumpAsText();
+if (window.testRunner)
+ testRunner.dumpAsText();
</script>
<script src="../../resources/check-layout.js"></script>
<body onload="checkLayout('.flexbox')">
// 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
//
// 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
// 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
//
// 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
// 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
//
// 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
<head>
<title>Fix for 13636</title>
<script>
- if (window.layoutTestController) {
- layoutTestController.dumpAsText();
+ if (window.testRunner) {
+ testRunner.dumpAsText();
}
function outputAppletsLength() {
//
// Webkit modification: 11-August-2005
//
-if (window.layoutTestController)
- layoutTestController.dumpAsText();
+if (window.testRunner)
+ testRunner.dumpAsText();
//
// End modification
//
//
// Webkit modification: 11-August-2005
//
-if (window.layoutTestController)
- layoutTestController.dumpAsText();
+if (window.testRunner)
+ testRunner.dumpAsText();
//
// End modification
//
// 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
//
// 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
*/
/* Begin additions for WebKit layout test framework. */
-if (window.layoutTestController)
- layoutTestController.dumpAsText();
+if (window.testRunner)
+ testRunner.dumpAsText();
/* End additions for WebKit layout test framework. */
// 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
//
// 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
// 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
//
// 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
// 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
//
// 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
// 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;
// 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;
// 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
//
// 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
// 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
//
// 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
<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');
<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>';
</div>
<script>
-if (window.layoutTestController)
- layoutTestController.dumpAsText();
+if (window.testRunner)
+ testRunner.dumpAsText();
var shadowRoot = new WebKitShadowRoot(host);
var div = document.createElement('div');
</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);
<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>";
<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');
</div>
<script>
-if (window.layoutTestController)
- layoutTestController.dumpAsText();
+if (window.testRunner)
+ testRunner.dumpAsText();
var shadowRoot = new WebKitShadowRoot(host);
var div = document.createElement('div');
</div>
<script>
-if (window.layoutTestController)
- layoutTestController.dumpAsText();
+if (window.testRunner)
+ testRunner.dumpAsText();
var shadowRoot = new WebKitShadowRoot(host);
var li = document.createElement('li');
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
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);
}
</style>
<script>
-if (window.layoutTestController)
- layoutTestController.dumpAsText();
+if (window.testRunner)
+ testRunner.dumpAsText();
onload = function() {
document.body.appendChild(document.createElement('form'));
</head>
<body>
</body>
-</html>
\ No newline at end of file
+</html>
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">
}
</style>
<script>
- if (window.layoutTestController)
- layoutTestController.dumpAsText();
+ if (window.testRunner)
+ testRunner.dumpAsText();
function runTest() {
document.getElementById('positioned').innerHTML = 'PASSED';
}
<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) {
}\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
<!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.
<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;
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;
<script type="text/javascript">
function runTest()
{
- if (window.layoutTestController)
- layoutTestController.dumpAsText();
+ if (window.testRunner)
+ testRunner.dumpAsText();
var target = document.getElementById("target");
<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>