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

Unified Diff: LayoutTests/paint/invalidation/spv2/repaint-table-row-in-composited-document.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/repaint-table-row-in-composited-document.html
diff --git a/LayoutTests/fast/repaint/repaint-table-row-in-composited-document.html b/LayoutTests/paint/invalidation/spv2/repaint-table-row-in-composited-document.html
similarity index 63%
copy from LayoutTests/fast/repaint/repaint-table-row-in-composited-document.html
copy to LayoutTests/paint/invalidation/spv2/repaint-table-row-in-composited-document.html
index e6360390058e83e90bc8ed2a5cd805b6b90852de..f5be754e3904aa49cae29df9083a1cde37f7768a 100644
--- a/LayoutTests/fast/repaint/repaint-table-row-in-composited-document.html
+++ b/LayoutTests/paint/invalidation/spv2/repaint-table-row-in-composited-document.html
@@ -1,7 +1,8 @@
+<!-- Based on fast/repaint/repaint-table-row-in-composited-document.html -->
<!DOCTYPE html>
<html>
<head>
-<script src="resources/text-based-repaint.js" type="text/javascript"></script>
+<script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
<style>
td {
width: 200px;
@@ -12,7 +13,13 @@ body {
}
</style>
<script type="text/javascript">
-function repaintTest()
+window.expectedPaintInvalidationObjects = [
+ "LayoutTableCell TD id='target'",
+ "LayoutTableRow TR",
+ "LayoutTableCell TD",
+ "LayoutTableCell TD",
+];
+function paintInvalidationTest()
{
// The sizes on this test are deliberate to ensure that we don't trigger
// any repaints within the tile the green td starts in, otherwise the
@@ -23,7 +30,7 @@ function repaintTest()
}
</script>
</head>
-<body onload="runRepaintTest();">
+<body onload="runPaintInvalidationTest();">
<table>
<tr>
<td id="target">

Powered by Google App Engine
This is Rietveld 408576698