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

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

Issue 46163008: Revert "Re-land deferred compositing updates with fixed assumptions" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style. css"> 4 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style. css">
5 <script src="../../fast/js/resources/js-test-pre.js"></script> 5 <script src="../../fast/js/resources/js-test-pre.js"></script>
6 <script src="../../compositing/overflow/resources/automatically-opt-into-com posited-scrolling.js"></script> 6 <script src="../../compositing/overflow/resources/automatically-opt-into-com posited-scrolling.js"></script>
7 <script> 7 <script>
8 if (window.internals) 8 if (window.internals)
9 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnab led(true); 9 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnab led(true);
10 10
11 function runTest() { 11 function runTest() {
12 var targetDiv = document.getElementById('targetDiv'); 12 var targetDiv = document.getElementById('targetDiv');
13 var resultDiv = document.getElementById('result'); 13 var resultDiv = document.getElementById('result');
14
15 if (window.internals)
16 window.internals.forceCompositingUpdate(document);
17
18 if (!window.internals || !didOptIn(targetDiv)) 14 if (!window.internals || !didOptIn(targetDiv))
19 resultDiv.innerHTML = "Error: target scrollable overflow div did not o pt-in."; 15 resultDiv.innerHTML = "Error: target scrollable overflow div did not o pt-in.";
20 var clientRect = document.getElementById('targetLink').getBoundingClient Rect(); 16 var clientRect = document.getElementById('targetLink').getBoundingClient Rect();
21 x = (clientRect.left + clientRect.right) / 2; 17 x = (clientRect.left + clientRect.right) / 2;
22 y = (clientRect.top + clientRect.bottom) / 2; 18 y = (clientRect.top + clientRect.bottom) / 2;
23 if (window.testRunner) { 19 if (window.testRunner) {
24 testRunner.dumpAsTextWithPixelResults(); 20 testRunner.dumpAsTextWithPixelResults();
25 testRunner.waitUntilDone(); 21 testRunner.waitUntilDone();
26 } 22 }
27 23
(...skipping 17 matching lines...) Expand all
45 <a href="">Link 4</a><br> 41 <a href="">Link 4</a><br>
46 <a href="">Link 5</a><br> 42 <a href="">Link 5</a><br>
47 </div> 43 </div>
48 <div style="position: relative; left: 10px; top: 80px"> 44 <div style="position: relative; left: 10px; top: 80px">
49 This test is successful if "Target Link" above is covered in a green 45 This test is successful if "Target Link" above is covered in a green
50 rectangle with rounded corners and the list is partially scrolled. 46 rectangle with rounded corners and the list is partially scrolled.
51 </div> 47 </div>
52 <div id="result"></div> 48 <div id="result"></div>
53 </body> 49 </body>
54 </html> 50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698