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

Side by Side Diff: LayoutTests/plugins/webview-plugin-lifecycle.html

Issue 1306943003: Update webview plugin test to draw three frames, and not force paint. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype HTML> 1 <!doctype HTML>
2 <style> 2 <style>
3 #plugin { 3 #plugin {
4 width: 150px; 4 width: 150px;
5 height: 150px; 5 height: 150px;
6 border: 1px solid black; 6 border: 1px solid black;
7 } 7 }
8 </style> 8 </style>
9 <embed id="plugin" type="application/x-plugin-placeholder-test"></embed> 9 <embed id="plugin" type="application/x-plugin-placeholder-test"></embed>
10 <script> 10 <script>
11 onload = function() { 11 onload = function() {
12 if (window.testRunner) { 12 if (window.testRunner) {
13 window.testRunner.waitUntilDone(); 13 window.testRunner.waitUntilDone();
14 // Need to paint two frames in order to allow the plugin to propery load . 14 // Need to paint two frames in order to allow the plugin to properly loa d.
15 // TODO(chrishtr): find out why and fix. 15 // TODO(chrishtr): find out why and fix.
16 window.testRunner.layoutAndPaintAsyncThen(function() { 16 requestAnimationFrame(function() {
17 window.testRunner.layoutAndPaintAsyncThen(function() { 17 requestAnimationFrame(function() {
18 window.testRunner.notifyDone(); 18 requestAnimationFrame(function() {
19 window.testRunner.notifyDone();
20 });
19 }); 21 });
20 }); 22 });
21 } 23 }
22 } 24 }
23 </script> 25 </script>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698