https://bugs.webkit.org/show_bug.cgi?id=88959
Reviewed by Darin Adler.
* fonts/valid-standard-font.html:
* fullscreen/anonymous-block-merge-crash.html:
* fullscreen/full-screen-element-stack.html:
* fullscreen/full-screen-frameset.html:
* fullscreen/full-screen-iframe-zIndex.html:
* fullscreen/full-screen-keyboard-disabled.html:
* fullscreen/full-screen-keyboard-enabled.html:
* fullscreen/full-screen-remove-ancestor-during-transition.html:
* fullscreen/full-screen-remove-sibling.html:
* fullscreen/full-screen-render-inline.html:
* fullscreen/full-screen-request-rejected.html:
* fullscreen/full-screen-request-removed.html:
* fullscreen/full-screen-restrictions.html:
* fullscreen/full-screen-stacking-context.html:
* fullscreen/full-screen-test.js:
(runWithKeyDown):
(endTest):
* fullscreen/full-screen-zIndex-after.html:
* fullscreen/full-screen-zIndex.html:
* fullscreen/non-ancestor-iframe.html:
* fullscreen/parent-flow-inline-with-block-child.html:
* fullscreen/video-controls-override.html:
* html5lib/resources/runner.js:
(run):
* html5lib/webkit-resumer.html:
* platform/gtk/fonts/custom-font-missing-glyphs.html:
* platform/gtk/fonts/font-face-with-complex-text.html:
* platform/gtk/fonts/font-family-fallback.html:
* platform/gtk/fonts/synthetic-oblique-positioning.html:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@120190
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-06-13 Ryosuke Niwa <rniwa@webkit.org>
+
+ Fonts, fullscreen, gamepad, and html5lib tests should use testRunner instead of layoutTestController
+ https://bugs.webkit.org/show_bug.cgi?id=88959
+
+ Reviewed by Darin Adler.
+
+ * fonts/valid-standard-font.html:
+ * fullscreen/anonymous-block-merge-crash.html:
+ * fullscreen/full-screen-element-stack.html:
+ * fullscreen/full-screen-frameset.html:
+ * fullscreen/full-screen-iframe-zIndex.html:
+ * fullscreen/full-screen-keyboard-disabled.html:
+ * fullscreen/full-screen-keyboard-enabled.html:
+ * fullscreen/full-screen-remove-ancestor-during-transition.html:
+ * fullscreen/full-screen-remove-sibling.html:
+ * fullscreen/full-screen-render-inline.html:
+ * fullscreen/full-screen-request-rejected.html:
+ * fullscreen/full-screen-request-removed.html:
+ * fullscreen/full-screen-restrictions.html:
+ * fullscreen/full-screen-stacking-context.html:
+ * fullscreen/full-screen-test.js:
+ (runWithKeyDown):
+ (endTest):
+ * fullscreen/full-screen-zIndex-after.html:
+ * fullscreen/full-screen-zIndex.html:
+ * fullscreen/non-ancestor-iframe.html:
+ * fullscreen/parent-flow-inline-with-block-child.html:
+ * fullscreen/video-controls-override.html:
+ * html5lib/resources/runner.js:
+ (run):
+ * html5lib/webkit-resumer.html:
+ * platform/gtk/fonts/custom-font-missing-glyphs.html:
+ * platform/gtk/fonts/font-face-with-complex-text.html:
+ * platform/gtk/fonts/font-family-fallback.html:
+ * platform/gtk/fonts/synthetic-oblique-positioning.html:
+
2012-06-13 Kristóf Kosztyó <kkristof@inf.u-szeged.hu>
[Qt] Unreviewed gardening. Skip new failing tests.
<!-- WebKit assumes that -webkit-body is a valid font. The font-family:inherit will crash on load if it isn't -->
<input style="font-family:inherit"/>
<script>
- if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
window.setTimeout(runTest, 0);
function runTest() {
document.getElementById("result").innerText = "PASS";
- if (window.layoutTestController) {
- layoutTestController.notifyDone();
+ if (window.testRunner) {
+ testRunner.notifyDone();
}
}
</script>
document.onwebkitfullscreenchange = function(event) {
document.body.appendChild(document.createElement('div'));
document.webkitCancelFullScreen();
- layoutTestController.notifyDone();
+ testRunner.notifyDone();
};
runWithKeyDown(function(){span.webkitRequestFullScreen()});
var oneEnteredFullscreen = function() {
testExpected("document.webkitFullscreenElement.id", "one");
callback = twoEnteredFullscreen;
- if (window.layoutTestController)
+ if (window.testRunner)
runWithKeyDown(function() { two.webkitRequestFullscreen(); });
};
var twoEnteredFullscreen = function() {
testExpected("document.webkitFullscreenElement.id", "two");
callback = twoExitedFullscreen;
- if (window.layoutTestController)
+ if (window.testRunner)
document.webkitExitFullscreen();
};
};
callback = oneEnteredFullscreen;
- if (window.layoutTestController)
+ if (window.testRunner)
runWithKeyDown(function() { one.webkitRequestFullscreen(); });
}
</script>
<button onclick="document.webkitExitFullscreen()">Exit full screen (two)</button>
</div>
</div>
-</body>
\ No newline at end of file
+</body>
<script src="full-screen-test.js"></script>
<script>
-if (window.layoutTestController)
- layoutTestController.dumpChildFramesAsText();
+if (window.testRunner)
+ testRunner.dumpChildFramesAsText();
var waitingFor = 2;
function runTest() {
waitForEvent(frame.contentDocument, 'webkitfullscreenchange', function() {
consoleWrite("FAIL - entered full screen!");
endTest();
- if (layoutTestController)
- layoutTestController.notifyDone();
+ if (testRunner)
+ testRunner.notifyDone();
});
runWithKeyDown(function() {
setTimeout(function() {
consoleWrite("SUCCEED - did not enter full screen!");
endTest();
- if (layoutTestController)
- layoutTestController.notifyDone();
+ if (testRunner)
+ testRunner.notifyDone();
}, 50);
frame.contentDocument.documentElement.webkitRequestFullScreen();
Click <button onclick="goFullScreen()">go full screen</button> to run the test.</div>
<div id="block2"></div>
<iframe webkitallowfullscreen src="resources/inner.html" id="block1"></iframe>
- </body>
\ No newline at end of file
+ </body>
var spanEnteredFullScreen = function() {
callback = null;
testExpected("document.webkitIsFullScreen", true);
- if (window.layoutTestController && eventSender.keyDown) {
+ if (window.testRunner && eventSender.keyDown) {
waitForEvent(document, 'keypress', keyPressed);
eventSender.keyDown('a', []);
eventSender.keyDown(' ', []);
var spanEnteredFullScreen = function() {
callback = null;
testExpected("document.webkitIsFullScreen", true);
- if (window.layoutTestController && eventSender.keyDown) {
+ if (window.testRunner && eventSender.keyDown) {
waitForEvent(document, 'keypress', keyPressed);
eventSender.keyDown('a', []);
}
<script src="../fast/js/resources/js-test-pre.js"></script>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function runWithKeyDown(fn)
{
document.addEventListener('keydown', function() { fn(); }, false);
- if (window.layoutTestController) {
+ if (window.testRunner) {
eventSender.keyDown('a');
}
}
iframe.parentNode.removeChild(iframe);
gc();
setTimeout(function () {
- if (window.layoutTestController) {
- layoutTestController.notifyDone();
+ if (window.testRunner) {
+ testRunner.notifyDone();
}
}, 0);
}, 0);
}
runWithKeyDown(goFullScreen);
}
-</script>
\ No newline at end of file
+</script>
<summary>a<span>b<div>c</div>d</span>e</summary>
<script>
if ("webkitRequestFullScreen" in Element.prototype) {
- if (window.layoutTestController)
- layoutTestController.waitUntilDone();
+ if (window.testRunner)
+ testRunner.waitUntilDone();
document.body.offsetTop;
var span = document.getElementsByTagName('span')[0];
document.webkitCancelFullScreen();
}, 0)
} else {
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
};
logResult("Entered full screen.", false);
endTest();
});
- if (layoutTestController)
- layoutTestController.setPopupBlockingEnabled(true);
+ if (testRunner)
+ testRunner.setPopupBlockingEnabled(true);
waitForEventAndEnd(document, 'webkitfullscreenerror');
document.documentElement.webkitRequestFullScreen();
}
consoleWrite("SUCCEED - did not enter full screen!");
});
- if (layoutTestController)
- layoutTestController.setPopupBlockingEnabled(true);
+ if (testRunner)
+ testRunner.setPopupBlockingEnabled(true);
var div = document.createElement('div');
document.documentElement.appendChild(div);
div.webkitRequestFullscreen();
};
- if (typeof(layoutTestController) != 'undefined')
- layoutTestController.setPopupBlockingEnabled(true);
+ if (typeof(testRunner) != 'undefined')
+ testRunner.setPopupBlockingEnabled(true);
}
</script>
<div id="zero">
<video id="video"></video>
</div>
- </body>
\ No newline at end of file
+ </body>
logConsole();
-if (window.layoutTestController) {
- layoutTestController.dumpAsText(runPixelTests);
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText(runPixelTests);
+ testRunner.waitUntilDone();
}
function runWithKeyDown(fn)
{
// FIXME: WKTR does not yet support the keyDown() message. Do a mouseDown here
// instead until keyDown support is added.
- var eventName = !window.layoutTestController || eventSender.keyDown ? 'keypress' : 'mousedown'
+ var eventName = !window.testRunner || eventSender.keyDown ? 'keypress' : 'mousedown'
function thunk() {
document.removeEventListener(eventName, thunk, false);
}
document.addEventListener(eventName, thunk, false);
- if (window.layoutTestController) {
+ if (window.testRunner) {
if (eventSender.keyDown)
eventSender.keyDown(" ", []);
else
{
consoleWrite("END OF TEST");
testEnded = true;
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function logResult(success, text)
<div id="block3">
<div id="block1"></div>
</div>
- </body>
\ No newline at end of file
+ </body>
Click <button onclick="goFullScreen()">go full screen</button> to run the test.</div>
<div id="block2"></div>
<div id="block1"></div>
- </body>
\ No newline at end of file
+ </body>
target.webkitRequestFullscreen();
};
- if (window.layoutTestController)
+ if (window.testRunner)
runWithKeyDown(startTest);
-</script>
\ No newline at end of file
+</script>
<script>
if ("webkitRequestFullScreen" in Element.prototype) {
- if (window.layoutTestController)
- layoutTestController.waitUntilDone();
+ if (window.testRunner)
+ testRunner.waitUntilDone();
var callback;
var fullscreenChanged = function(event)
setTimeout(function () {
span.appendChild(document.createElement('div'));
callback = function() {
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
document.webkitCancelFullScreen();
}, 0);
};
var cancelledFullScreen = function() {
- if (window.layoutTestController)
+ if (window.testRunner)
testExpected("document.defaultView.getComputedStyle(panel)['display']", 'none');
else
- logResult(false, "window.layoutTestController == undefined");
+ logResult(false, "window.testRunner == undefined");
endTest();
};
document.writeln("<p>Script did not run</p>");
document.writeln("<iframe></iframe>");
-if (window.layoutTestController)
- layoutTestController.waitUntilDone();
+if (window.testRunner)
+ testRunner.waitUntilDone();
Markup.noAutoDump();
Markup.useHTML5libOutputFormat();
}
xhr.send(null);
} else {
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
}
<p>Script did not run</p>
<iframe></iframe>
<script>
-if (window.layoutTestController)
- layoutTestController.waitUntilDone();
+if (window.testRunner)
+ testRunner.waitUntilDone();
Markup.noAutoDump();
Markup.useHTML5libOutputFormat();
}
xhr.send(null);
} else {
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
}
}
</style>
<script>
-if (window.layoutTestController) {
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.waitUntilDone();
document.onreadystatechange = function() {
if (document.readyState === 'complete')
- setTimeout(function() {layoutTestController.notifyDone();}, 100);
+ setTimeout(function() {testRunner.notifyDone();}, 100);
};
}
</script>
body { text-rendering: geometricPrecision; }
</style>
<script>
-if (window.layoutTestController) {
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.waitUntilDone();
document.onreadystatechange = function() {
if (document.readyState === 'complete')
- setTimeout(function() {layoutTestController.notifyDone();}, 100);
+ setTimeout(function() {testRunner.notifyDone();}, 100);
};
}
</script>
<html>
<head>
<script language="javascript" type="text/javascript">
- if (window.layoutTestController)
- layoutTestController.dumpAsText();
+ if (window.testRunner)
+ testRunner.dumpAsText();
function test() {
var realWidth = document.getElementById("courier").offsetWidth;
<body>
<script>
-if (window.layoutTestController) {
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.waitUntilDone();
document.onreadystatechange = function() {
if (document.readyState === 'complete')
- setTimeout(function() {layoutTestController.notifyDone();}, 100);
+ setTimeout(function() {testRunner.notifyDone();}, 100);
};
}
</script>