OLD | NEW |
| (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 // 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 | |
9 // non-content-editable elements won't cause the caret to be drawn since the
y | |
10 // are not editable. | |
11 testRunner.overridePreference("WebKitEnableCaretBrowsing", false); | |
12 } | |
13 function paintInvalidationTest() | |
14 { | |
15 if (!window.eventSender) | |
16 return; | |
17 | |
18 var target = document.getElementById("target"); | |
19 eventSender.mouseMoveTo(target.offsetLeft, target.offsetTop); | |
20 eventSender.mouseDown(); | |
21 eventSender.mouseUp(); | |
22 } | |
23 window.onload = runPaintInvalidationTest; | |
24 </script> | |
25 </head> | |
26 <body> | |
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> | |
28 <p id="target">This element is not content editable.</p> | |
29 </body> | |
30 </html> | |
OLD | NEW |