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

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

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

Powered by Google App Engine
This is Rietveld 408576698