blob: ab9e1e5b4b02dbfaa8e2bcb8756a1da4f9a1d813 [file] [log] [blame]
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
<script>
var successfullyParsed = false;
window.jsTestIsAsync = true;
function tryToCrash() {
var div = document.getElementById("test");
div.style.webkitTransform = "translateY(1px)";
div.style.webkitTransition = "1s ease-in-out";
setTimeout(function() {
div.style.webkitTransform = "none";
div.style.webkitTransition = "none";
setTimeout(function() {
window.close();
window.opener.finishJSTest();
}, 0);
}, 0);
}
function setup() {
if (window.testRunner) {
if (location.href.indexOf("auxillary") != -1) {
setTimeout(tryToCrash, 0);
} else {
testRunner.setCanOpenWindows();
window.open("crash-on-removing-animation.html#auxillary");
}
} else {
document.write("This test must be run in DRT/WKTR.");
}
}
</script>
<style>
#test {
background-color: blue;
width: 10px;
height: 10px;
}
</style>
<head>
<body onload="setup()">
<div id="test"></div>
<script>
successfullyParsed = true;
</script>
<p>If you are reading this, we managed to avoid crashing!</p>
<script src="../resources/js-test-post.js"></script>
</body>
</html>