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

Unified Diff: LayoutTests/paint/invalidation/spv2/cached-69296.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/cached-69296.html
diff --git a/LayoutTests/fast/table/border-collapsing/cached-69296.html b/LayoutTests/paint/invalidation/spv2/cached-69296.html
similarity index 62%
copy from LayoutTests/fast/table/border-collapsing/cached-69296.html
copy to LayoutTests/paint/invalidation/spv2/cached-69296.html
index 4bcd0ddb6e2bef79b2868ad760cf1dd80f7c7aa4..c69e7f3501fd7ae9d72fe333cbd7a4683486030f 100644
--- a/LayoutTests/fast/table/border-collapsing/cached-69296.html
+++ b/LayoutTests/paint/invalidation/spv2/cached-69296.html
@@ -1,10 +1,11 @@
+<!-- Based on fast/table/border-collapsing/cached-69296.html -->
<!--
Test for bug69296.
Collapsed borders should not disappear.
-->
<html>
<head>
- <script src="../../../fast/repaint/resources/text-based-repaint.js"></script>
+ <script src="resources/paint-invalidation-test.js"></script>
<style>
BODY {
margin: 20px;
@@ -24,7 +25,23 @@ Collapsed borders should not disappear.
</style>
<head>
<script type="text/javascript">
- function repaintTest() {
+ window.expectedPaintInvalidationObjects = [
+ "LayoutTableCell TD",
+ "LayoutTableCell TD",
+ "LayoutTableCell TD",
+ "LayoutTableRow TR id='row1'",
+ "LayoutTableCell TD",
+ "LayoutTableCell TD",
+ "LayoutTableCell TD",
+ "LayoutTableCell TD",
+ "LayoutTableCell TD",
+ "LayoutTableCell TD",
+ "LayoutTableRow TR id='row1'",
+ "LayoutTableCell TD",
+ "LayoutTableCell TD",
+ "LayoutTableCell TD",
+ ];
+ function paintInvalidationTest() {
row = document.getElementById('row1');
rowRect = row.getBoundingClientRect();
x = rowRect.left + 75;
@@ -37,7 +54,7 @@ Collapsed borders should not disappear.
}
</script>
</head>
- <body onload="runRepaintTest()">
+ <body onload="runPaintInvalidationTest()">
<table>
<tr id="row1">
<td valign="top"/>

Powered by Google App Engine
This is Rietveld 408576698