blob: fdcbcde8b139e4be79691ea652ebcbc01fe591b4 [file] [log] [blame]
<!DOCTYPE html>
<html>
<script src="../js/resources/js-test-pre.js"></script>
<body>
<script type="text/javascript">
if (window.testRunner)
testRunner.setCanOpenWindows();
description('Tests that requestAnimationFrame callbacks are not invoked while modal dialogs are displayed.');
onload = function()
{
debug('Setting callback');
window.requestAnimationFrame(function() { debug('Callback fired'); }, document.body);
debug('Showing modal dialog');
var src = 'if (window.testRunner) {' +
' testRunner.display();' +
' window.close();' +
'} else {'+
' window.setTimeout(window.close, 10);'+
'}';
showModalDialog('data:text/html,<script>' + src + '</' + 'script>');
debug('Returned from modal dialog');
if (window.testRunner) {;
testRunner.display();
}
window.requestAnimationFrame(function() {
isSuccessfullyParsed();
if (window.testRunner)
testRunner.notifyDone();
});
}
if (window.testRunner)
testRunner.waitUntilDone();
</script>
</body>
</html>