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

Unified Diff: LayoutTests/paint/invalidation/spv2/no-caret-repaint-in-non-content-editable-element.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/paint/invalidation/spv2/no-caret-repaint-in-non-content-editable-element.html
diff --git a/LayoutTests/fast/repaint/no-caret-repaint-in-non-content-editable-element.html b/LayoutTests/paint/invalidation/spv2/no-caret-repaint-in-non-content-editable-element.html
similarity index 75%
copy from LayoutTests/fast/repaint/no-caret-repaint-in-non-content-editable-element.html
copy to LayoutTests/paint/invalidation/spv2/no-caret-repaint-in-non-content-editable-element.html
index 1c24876dcf62539c264491f43ba487c25a37871a..a3429f6c240d209fb3d4c4d4d1f6b411719cb566 100644
--- a/LayoutTests/fast/repaint/no-caret-repaint-in-non-content-editable-element.html
+++ b/LayoutTests/paint/invalidation/spv2/no-caret-repaint-in-non-content-editable-element.html
@@ -1,6 +1,7 @@
+<!-- Based on fast/repaint/no-caret-repaint-in-non-content-editable-element.html -->
<html>
<head>
-<script src="resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
if (window.testRunner) {
// By definition, when caret browsing is enabled we always paint the caret.
@@ -9,7 +10,9 @@ if (window.testRunner) {
// are not editable.
testRunner.overridePreference("WebKitEnableCaretBrowsing", false);
}
-function repaintTest()
+window.expectedPaintInvalidationObjects = [
+];
+function paintInvalidationTest()
{
if (!window.eventSender)
return;
@@ -19,7 +22,7 @@ function repaintTest()
eventSender.mouseDown();
eventSender.mouseUp();
}
-window.onload = runRepaintTest;
+window.onload = runPaintInvalidationTest;
</script>
</head>
<body>

Powered by Google App Engine
This is Rietveld 408576698