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

Unified Diff: LayoutTests/paint/invalidation/spv2/hover-pseudo-borders.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/hover-pseudo-borders.html
diff --git a/LayoutTests/fast/repaint/hover-pseudo-borders.html b/LayoutTests/paint/invalidation/spv2/hover-pseudo-borders.html
similarity index 68%
copy from LayoutTests/fast/repaint/hover-pseudo-borders.html
copy to LayoutTests/paint/invalidation/spv2/hover-pseudo-borders.html
index ef2f8a3f67683725e5b0447bf4edbc6e2c7cea7c..0b76dffdc44b6857bdc0aa7958536431b791c06f 100644
--- a/LayoutTests/fast/repaint/hover-pseudo-borders.html
+++ b/LayoutTests/paint/invalidation/spv2/hover-pseudo-borders.html
@@ -1,3 +1,4 @@
+<!-- Based on fast/repaint/hover-pseudo-borders.html -->
<!DOCTYPE html>
<html>
<head>
@@ -24,16 +25,21 @@
color: green; /* Changes the right box's color. */
}
</style>
-<script src="resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
-function repaintTest() {
+window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow DIV class='hitregion'",
+ "LayoutBlockFlow (positioned) \u003Cpseudo:after\u003E",
+ "LayoutTextFragment (anonymous)",
+];
+function paintInvalidationTest() {
if (!window.testRunner)
return;
eventSender.mouseMoveTo(50, 50);
eventSender.mouseDown();
eventSender.mouseUp();
}
-window.addEventListener("load", runRepaintTest);
+window.addEventListener("load", runPaintInvalidationTest);
</script>
</head>
<body>

Powered by Google App Engine
This is Rietveld 408576698