Index: LayoutTests/fast/animation/request-animation-frame-during-modal.html |
diff --git a/LayoutTests/fast/animation/request-animation-frame-during-modal.html b/LayoutTests/fast/animation/request-animation-frame-during-modal.html |
index 2181bb94d528b47612c73c0844ab98a7bd0bc0e5..cc372d62dc33ab40e19d1d6a8036e2528f520db4 100644 |
--- a/LayoutTests/fast/animation/request-animation-frame-during-modal.html |
+++ b/LayoutTests/fast/animation/request-animation-frame-during-modal.html |
@@ -14,17 +14,9 @@ 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);'+ |
- '}'; |
+ var src = 'window.setTimeout(window.close, 100);'; |
ojan
2014/03/27 20:31:49
Why 100ms? This seems fragile and likely to be fla
enne (OOO)
2014/03/27 20:51:05
Yeah, it's a magic number. Since raf can't be inv
ojan
2014/03/27 21:58:45
Can you requestAnimationFrame inside the showModal
enne (OOO)
2014/03/27 22:03:05
There's a rAF right before it. Since showModalDia
|
showModalDialog('data:text/html,<script>' + src + '</' + 'script>'); |
debug('Returned from modal dialog'); |
- if (window.testRunner) {; |
- testRunner.display(); |
- } |
window.requestAnimationFrame(function() { |
isSuccessfullyParsed(); |