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

Unified Diff: LayoutTests/paint/invalidation/spv2/add-table-overpaint.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/add-table-overpaint.html
diff --git a/LayoutTests/fast/repaint/add-table-overpaint.html b/LayoutTests/paint/invalidation/spv2/add-table-overpaint.html
similarity index 54%
copy from LayoutTests/fast/repaint/add-table-overpaint.html
copy to LayoutTests/paint/invalidation/spv2/add-table-overpaint.html
index d2da3d10412332aa1fd71cded3e0c02ba788d277..3b9604d37232c9e44a6eef69be663099e98ed9a4 100644
--- a/LayoutTests/fast/repaint/add-table-overpaint.html
+++ b/LayoutTests/paint/invalidation/spv2/add-table-overpaint.html
@@ -1,8 +1,9 @@
+<!-- Based on fast/repaint/add-table-overpaint.html -->
<!DOCTYPE html>
<html>
-<body onload="runRepaintTest()" style="margin: 0px">
-<script src="resources/text-based-repaint.js"></script>
+<body onload="runPaintInvalidationTest()" style="margin: 0px">
+<script src="resources/paint-invalidation-test.js"></script>
<style>
td {
height: 150px;
@@ -20,9 +21,15 @@ function addTable() {
}
addTable();
addTable();
-if (window.testRunner)
- testRunner.dumpAsTextWithPixelResults(); // We don't care about the rendering tree dump, just the pixel dump.
-function repaintTest() {
+window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow DIV",
+ "LayoutTable TABLE",
+ "LayoutTableCell TD",
+ "LayoutTableSection TBODY",
+ "LayoutTableRow TR",
+ "LayoutTableCell TD",
+];
+function paintInvalidationTest() {
addTable();
}
</script>

Powered by Google App Engine
This is Rietveld 408576698