blob: a3429f6c240d209fb3d4c4d4d1f6b411719cb566 [file] [log] [blame]
<!-- Based on fast/repaint/no-caret-repaint-in-non-content-editable-element.html -->
<script src="resources/paint-invalidation-test.js"></script>
if (window.testRunner) {
// By definition, when caret browsing is enabled we always paint the caret.
// So, this test is only applicable when caret browsing is disabled because
// non-content-editable elements won't cause the caret to be drawn since they
// are not editable.
testRunner.overridePreference("WebKitEnableCaretBrowsing", false);
window.expectedPaintInvalidationObjects = [
function paintInvalidationTest()
if (!window.eventSender)
var target = document.getElementById("target");
eventSender.mouseMoveTo(target.offsetLeft, target.offsetTop);
window.onload = runPaintInvalidationTest;
<p>This tests that clicking on a non-content editable element does not cause a repaint of it in whole or in part.</p>
<p id="target">This element is not content editable.</p>