Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: LayoutTests/fast/animation/request-animation-frame-during-modal.html

Issue 512533002: Remove showModalDialog layout tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <script src="../../resources/js-test.js"></script>
4 <body>
5
6 <script type="text/javascript">
7 if (window.testRunner)
8 testRunner.setCanOpenWindows();
9
10 description('Tests that requestAnimationFrame callbacks are not invoked while mo dal dialogs are displayed.');
11
12 onload = function()
13 {
14 debug('Setting callback');
15 window.requestAnimationFrame(function() { debug('Callback fired'); }, docume nt.body);
16 debug('Showing modal dialog');
17 var src = 'window.setTimeout(window.close, 100);';
18 showModalDialog('data:text/html,<script>' + src + '</' + 'script>');
19 debug('Returned from modal dialog');
20
21 window.requestAnimationFrame(function() {
22 isSuccessfullyParsed();
23 if (window.testRunner)
24 testRunner.notifyDone();
25 });
26 }
27
28 if (window.testRunner)
29 testRunner.waitUntilDone();
30
31 </script>
32 </body>
33 </html>
34
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/animation/request-animation-frame-during-modal-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698