
This CL moves third_party/WebKit/LayoutTests to third_party/blink/web_tests. NOTRY=true NOAUTOREVERT=true NOPRESUBMIT=true NOTREECHECKS=true TBR=robertma@chromium.org Bug: 843412 Change-Id: Ibb588b93d1579bcd1cb68df0a50efd8653f8724f Reviewed-on: https://chromium-review.googlesource.com/c/1328627 Reviewed-by: Kent Tamura <tkent@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#610740}
45 lines
1.2 KiB
HTML
45 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
body { -webkit-filter: url('#a'); }
|
|
</style>
|
|
<script src="../resources/run-after-layout-and-paint.js"></script>
|
|
<script>
|
|
function elementCenter(e)
|
|
{
|
|
return {
|
|
x: e.offsetLeft + e.offsetWidth / 2,
|
|
y: e.offsetTop + e.offsetHeight / 2
|
|
}
|
|
}
|
|
|
|
function startTest() {
|
|
if (window.testRunner) {
|
|
testRunner.waitUntilDone();
|
|
testRunner.dumpAsText();
|
|
}
|
|
|
|
if (window.eventSender) {
|
|
enterButton = document.getElementById('enter');
|
|
var enterButtonCenter = elementCenter(enterButton);
|
|
eventSender.mouseMoveTo(enterButtonCenter.x, enterButtonCenter.y);
|
|
eventSender.mouseDown();
|
|
eventSender.mouseUp();
|
|
}
|
|
}
|
|
|
|
function goFullscreen() {
|
|
document.body.webkitRequestFullScreen();
|
|
if (window.testRunner)
|
|
runAfterLayoutAndPaint(function() { testRunner.notifyDone(); });
|
|
}
|
|
|
|
window.addEventListener('load', startTest, false);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<p>Click the Fullscreen button to start a manual test. The page should not crash.</p>
|
|
<button id="enter" onclick="goFullscreen()">Fullscreen</button>
|
|
</body>
|
|
</html> |