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

Side by Side Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-simple-navigate.html

Issue 196653012: Remove display() from compositing/ LayoutTests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: softwarecompositing expectations Created 6 years, 9 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body onload="runTest();"> 3 <body onload="runTest();">
4 <div style="position: relative; left: 10px; top: 40px"> 4 <div style="position: relative; left: 10px; top: 40px">
5 <a href="" id="targetLink" style="-webkit-tap-highlight-color: rgba(0, 255, 0, 0 .5)">Target Link.</a> 5 <a href="" id="targetLink" style="-webkit-tap-highlight-color: rgba(0, 255, 0, 0 .5)">Target Link.</a>
6 </div> 6 </div>
7 <!-- For this test to work, must put the translateZ(0) on a div other than the o ne containing the 7 <!-- For this test to work, must put the translateZ(0) on a div other than the o ne containing the
8 highlighted link. This will force the highlight into the non-composited con tent host, which 8 highlighted link. This will force the highlight into the non-composited con tent host, which
9 may survive the navigation. --> 9 may survive the navigation. -->
10 <div style="position: relative; left: 10px; top: 70px; -webkit-transform: transl ateZ(0);"> 10 <div style="position: relative; left: 10px; top: 70px; -webkit-transform: transl ateZ(0);">
11 This test is not successful if this message appears. 11 This test is not successful if this message appears.
12 </div> 12 </div>
13 <script src="../../resources/run-after-display.js"></script>
13 <script> 14 <script>
14 function runTest() { 15 function runTest() {
15 var clientRect = document.getElementById('targetLink').getBoundingClientRect (); 16 var clientRect = document.getElementById('targetLink').getBoundingClientRect ();
16 x = (clientRect.left + clientRect.right) / 2; 17 x = (clientRect.left + clientRect.right) / 2;
17 y = (clientRect.top + clientRect.bottom) / 2; 18 y = (clientRect.top + clientRect.bottom) / 2;
18 if (window.testRunner) 19 if (window.testRunner)
19 testRunner.waitUntilDone(); 20 testRunner.waitUntilDone();
20 21
21 if (window.eventSender) { 22 if (window.eventSender) {
22 eventSender.gestureShowPress(x, y); 23 eventSender.gestureShowPress(x, y);
23 // Force display of highlight before navigating to second page. 24 // Force display of highlight before navigating to second page.
24 window.testRunner.display(); 25 runAfterDisplay(function() {
25 window.location = 'resources/gesture-tapHighlight-simple-navigate-destin ation.html'; 26 window.location = 'resources/gesture-tapHighlight-simple-navigate-de stination.html';
27 runAfterDisplay(function() {
28 testRunner.notifyDone();
29 });
30 });
26 } else { 31 } else {
27 debug("This test requires DumpRenderTree."); 32 debug("This test requires DumpRenderTree.");
28 } 33 }
29 } 34 }
30 </script> 35 </script>
31 </body> 36 </body>
32 </html> 37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698