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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/mouse-relative-position.html

Issue 1643663002: Conditionally create PaintLayer's scrollable area object (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PaintLayerClipper
Patch Set: Created 4 years, 10 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <style> 4 <style>
5 html, body { 5 html, body {
6 margin: 0; 6 margin: 0;
7 padding: 0; 7 padding: 0;
8 } 8 }
9 9
10 #test1 { 10 #test1 {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 return result.join(', '); 91 return result.join(', ');
92 } 92 }
93 93
94 var testElement = document.getElementById('test1'); 94 var testElement = document.getElementById('test1');
95 var spanElement = testElement.getElementsByTagName('span')[0]; 95 var spanElement = testElement.getElementsByTagName('span')[0];
96 var testElement2 = document.getElementById('test2'); 96 var testElement2 = document.getElementById('test2');
97 var inputElement = testElement2.getElementsByTagName('input')[0]; 97 var inputElement = testElement2.getElementsByTagName('input')[0];
98 98
99 shouldBe("simulateElementClick(testElement, [100, 100, 200, 200]);", "'100, 100, 200, 200'"); 99 shouldBe("simulateElementClick(testElement, [100, 100, 200, 200]);", "'100, 100, 200, 200'");
100 shouldBe("simulateElementClick(spanElement, [16, 10, 16, 10]);", "'16, 10, 1 6, 10'"); 100 shouldBe("simulateElementClick(spanElement, [16, 10, 16, 10]);", "'16, 10, 1 6, 10'");
101 shouldBe("simulateElementClick(inputElement, [40, 10, 40, 10]);", "'40, 10, 40, 10'"); 101 shouldBe("simulateElementClick(inputElement, [39, 9, 95, 10]);", "'39, 9, 95 , 10'");
102 </script> 102 </script>
103 </html> 103 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698