blob: d07c16068279534f63659045aee0c454f6c79737 [file] [log] [blame]
<!DOCTYPE html>
<html>
<script src="../../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();
}
}
if (window.testRunner)
testRunner.waitUntilDone();
setTimeout(function() {
isSuccessfullyParsed();
if (window.testRunner)
testRunner.notifyDone();
}, 200);
</script>
</body>
</html>