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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/no-caret-repaint-in-non-content-editable-element.html

Issue 1366763002: Text expectations of paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 <!-- Based on fast/repaint/no-caret-repaint-in-non-content-editable-element.html --> 1 <!-- Based on fast/repaint/no-caret-repaint-in-non-content-editable-element.html -->
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="resources/paint-invalidation-test.js"></script> 4 <script src="resources/paint-invalidation-test.js"></script>
5 <script> 5 <script>
6 if (window.testRunner) { 6 if (window.testRunner) {
7 // By definition, when caret browsing is enabled we always paint the caret. 7 // By definition, when caret browsing is enabled we always paint the caret.
8 // So, this test is only applicable when caret browsing is disabled because 8 // So, this test is only applicable when caret browsing is disabled because
9 // non-content-editable elements won't cause the caret to be drawn since the y 9 // non-content-editable elements won't cause the caret to be drawn since the y
10 // are not editable. 10 // are not editable.
11 testRunner.overridePreference("WebKitEnableCaretBrowsing", false); 11 testRunner.overridePreference("WebKitEnableCaretBrowsing", false);
12 } 12 }
13 window.expectedPaintInvalidationObjects = [
14 ];
15 function paintInvalidationTest() 13 function paintInvalidationTest()
16 { 14 {
17 if (!window.eventSender) 15 if (!window.eventSender)
18 return; 16 return;
19 17
20 var target = document.getElementById("target"); 18 var target = document.getElementById("target");
21 eventSender.mouseMoveTo(target.offsetLeft, target.offsetTop); 19 eventSender.mouseMoveTo(target.offsetLeft, target.offsetTop);
22 eventSender.mouseDown(); 20 eventSender.mouseDown();
23 eventSender.mouseUp(); 21 eventSender.mouseUp();
24 } 22 }
25 window.onload = runPaintInvalidationTest; 23 window.onload = runPaintInvalidationTest;
26 </script> 24 </script>
27 </head> 25 </head>
28 <body> 26 <body>
29 <p>This tests that clicking on a non-content editable element does not cause a repaint of it in whole or in part.</p> 27 <p>This tests that clicking on a non-content editable element does not cause a repaint of it in whole or in part.</p>
30 <p id="target">This element is not content editable.</p> 28 <p id="target">This element is not content editable.</p>
31 </body> 29 </body>
32 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698