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

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

Issue 58533003: Move fast/js/resources files to resources. (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="../../resources/js-test.js"></script>
6 <script> 6 <script>
7 function runTest() { 7 function runTest() {
8 var clientRect = document.getElementById('targetLink').getBoundingClientRect (); 8 var clientRect = document.getElementById('targetLink').getBoundingClientRect ();
9 x = (clientRect.left + clientRect.right) / 2; 9 x = (clientRect.left + clientRect.right) / 2;
10 y = (clientRect.top + clientRect.bottom) / 2; 10 y = (clientRect.top + clientRect.bottom) / 2;
11 if (window.testRunner) { 11 if (window.testRunner) {
12 testRunner.dumpAsTextWithPixelResults(); 12 testRunner.dumpAsTextWithPixelResults();
13 testRunner.waitUntilDone(); 13 testRunner.waitUntilDone();
14 } 14 }
15 15
16 if (window.eventSender) { 16 if (window.eventSender) {
17 eventSender.gestureShowPress(x, y); 17 eventSender.gestureShowPress(x, y);
18 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); 18 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
19 } else { 19 } else {
20 debug("This test requires DumpRenderTree."); 20 debug("This test requires DumpRenderTree.");
21 } 21 }
22 } 22 }
23 </script> 23 </script>
24 </head> 24 </head>
25 <body onload="runTest();"> 25 <body onload="runTest();">
26 <div style="-webkit-transform: translateZ(0); position: relative; left: 10; top: 40"> 26 <div style="-webkit-transform: translateZ(0); position: relative; left: 10; top: 40">
27 <a class="opaqueHighlight needsFix" href="" id="targetLink">Target Link.</a> 27 <a class="opaqueHighlight needsFix" href="" id="targetLink">Target Link.</a>
28 </div> 28 </div>
29 <div style="position: relative; left: 10; top: 70"> 29 <div style="position: relative; left: 10; top: 70">
30 This test is successful if "Target Link" above is covered in a green rectangle w ith rounded corners. 30 This test is successful if "Target Link" above is covered in a green rectangle w ith rounded corners.
31 </div> 31 </div>
32 </body> 32 </body>
33 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698