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

Side by Side Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-on-promoted-overflow-div-scrolled.html

Issue 30383002: Merge 159961 "Defer the real work in updateCompositingLayers unt..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1675/
Patch Set: Created 7 years, 2 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/overflow/automatically-opt-into-composited-scrolling-after-sibling-display-change.html » ('j') | 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 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../fast/js/resources/js-test-pre.js"></script>
5 <script src="../../compositing/overflow/resources/automatically-opt-into-com posited-scrolling.js"></script> 5 <script src="../../compositing/overflow/resources/automatically-opt-into-com posited-scrolling.js"></script>
6 <script> 6 <script>
7 if (window.internals) 7 if (window.internals)
8 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnab led(true); 8 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnab led(true);
9 9
10 function runTest() { 10 function runTest() {
11 var targetDiv = document.getElementById('targetDiv'); 11 var targetDiv = document.getElementById('targetDiv');
12 var resultDiv = document.getElementById('result'); 12 var resultDiv = document.getElementById('result');
13
14 if (window.internals)
15 window.internals.forceCompositingUpdate(document);
16
13 if (!window.internals || !didOptIn(targetDiv)) 17 if (!window.internals || !didOptIn(targetDiv))
14 resultDiv.innerHTML = "Error: target scrollable overflow div did not o pt-in."; 18 resultDiv.innerHTML = "Error: target scrollable overflow div did not o pt-in.";
15 var clientRect = document.getElementById('targetLink').getBoundingClient Rect(); 19 var clientRect = document.getElementById('targetLink').getBoundingClient Rect();
16 x = (clientRect.left + clientRect.right) / 2; 20 x = (clientRect.left + clientRect.right) / 2;
17 y = (clientRect.top + clientRect.bottom) / 2; 21 y = (clientRect.top + clientRect.bottom) / 2;
18 if (window.testRunner) { 22 if (window.testRunner) {
19 testRunner.dumpAsTextWithPixelResults(); 23 testRunner.dumpAsTextWithPixelResults();
20 testRunner.waitUntilDone(); 24 testRunner.waitUntilDone();
21 } 25 }
22 26
(...skipping 17 matching lines...) Expand all
40 <a href="">Link 4</a><br> 44 <a href="">Link 4</a><br>
41 <a href="">Link 5</a><br> 45 <a href="">Link 5</a><br>
42 </div> 46 </div>
43 <div style="position: relative; left: 10px; top: 80px"> 47 <div style="position: relative; left: 10px; top: 80px">
44 This test is successful if "Target Link" above is covered in a transparent green 48 This test is successful if "Target Link" above is covered in a transparent green
45 rectangle with rounded corners and the list is partially scrolled. 49 rectangle with rounded corners and the list is partially scrolled.
46 </div> 50 </div>
47 <div id="result"></div> 51 <div id="result"></div>
48 </body> 52 </body>
49 </html> 53 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/compositing/overflow/automatically-opt-into-composited-scrolling-after-sibling-display-change.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698