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

Side by Side Diff: LayoutTests/compositing/iframes/composited-iframe-transition-flicker.html

Issue 324733002: Add a layout test for iframe flicker due to overflow scroll promotion (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 6 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 | LayoutTests/compositing/iframes/composited-iframe-transition-flicker-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <iframe id="frame" srcdoc="<style>input { width: 100px; }</style><input type='te xt' id='input' value='add stuff here'></input>"></iframe>
ojan 2014/06/09 17:42:37 Nit: type=text is the default.
ojan 2014/06/09 17:42:38 Nit: type=text is the default.
Ian Vollick 2014/06/09 18:35:56 Done.
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
ojan 2014/06/09 17:42:38 Nit: 4 space indent?
Ian Vollick 2014/06/09 18:35:56 Done.
6 testRunner.waitUntilDone();
7 }
8
9 onload = function() {
10 var layerTreePreStyleUpdate = "";
11 var layerTreePostStyleUpdate = "";
12 if (window.internals)
13 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnabled( true);
14
15 requestAnimationFrame(function() {
16 document.getElementById("frame").contentDocument.getElementById("input").val ue =
17 "This is a very long string that will cause overflow";
18 layerTreePreStyleUpdate = window.internals.layerTreeAsText(document);
19
20 // Force a style recalc.
21 document.body.offsetTop;
22 layerTreePostStyleUpdate = window.internals.layerTreeAsText(document);
23
24 requestAnimationFrame(function() {
ojan 2014/06/09 17:42:37 I don't think we need the requestAnimationFrame si
Ian Vollick 2014/06/09 18:35:56 Done.
25 var pre = document.createElement('pre');
26 if (layerTreePreStyleUpdate === layerTreePostStyleUpdate)
27 pre.innerHTML = "PASS - layer trees are the same.";
28 else
29 pre.innerHTML = "FAIL - layer trees are not the same.";
30 document.body.appendChild(pre);
31 testRunner.notifyDone();
32 });
33 });
34 };
35 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/compositing/iframes/composited-iframe-transition-flicker-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698