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

Unified Diff: LayoutTests/paint/invalidation/spv2/table-outer-border.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/table-outer-border.html
diff --git a/LayoutTests/fast/repaint/table-outer-border.html b/LayoutTests/paint/invalidation/spv2/table-outer-border.html
similarity index 56%
copy from LayoutTests/fast/repaint/table-outer-border.html
copy to LayoutTests/paint/invalidation/spv2/table-outer-border.html
index bafdb2f6335a7152e59c42fdc55ec41b62ae14a1..117ded392a28d0808f75d5df1271af86284fac91 100644
--- a/LayoutTests/fast/repaint/table-outer-border.html
+++ b/LayoutTests/paint/invalidation/spv2/table-outer-border.html
@@ -1,3 +1,4 @@
+<!-- Based on fast/repaint/table-outer-border.html -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
@@ -18,9 +19,27 @@
border-color: green;
}
</style>
- <script src="resources/text-based-repaint.js"></script>
+ <script src="resources/paint-invalidation-test.js"></script>
<script>
- function repaintTest()
+ window.expectedPaintInvalidationObjects = [
+ "LayoutTableCell TD",
+ "LayoutTableRow TR",
+ "LayoutTableCell TD",
+ "LayoutTableRow TR",
+ "LayoutTableSection TBODY",
+ "LayoutTable TABLE id='table'",
+ "LayoutTableCell TD",
+ "LayoutTableCell TD",
+ "LayoutTable TABLE id='table' class='green'",
+ "LayoutTableCell TD",
+ "LayoutTableCell TD",
+ "LayoutTableSection TBODY",
+ "LayoutTableRow TR",
+ "LayoutTableCell TD",
+ "LayoutTableRow TR",
+ "LayoutTableCell TD",
+ ];
+ function paintInvalidationTest()
{
var container = document.getElementById('container');
var table = document.getElementById('table');
@@ -30,7 +49,7 @@
}
</script>
</head>
-<body onload="runRepaintTest();">
+<body onload="runPaintInvalidationTest();">
<div id="container" style="width: 500px;">
<table id="table">
<tr>

Powered by Google App Engine
This is Rietveld 408576698