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

Unified Diff: LayoutTests/paint/invalidation/spv2/multicol-with-abspos.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/multicol-with-abspos.html
diff --git a/LayoutTests/fast/repaint/multicol-with-abspos.html b/LayoutTests/paint/invalidation/spv2/multicol-with-abspos.html
similarity index 52%
copy from LayoutTests/fast/repaint/multicol-with-abspos.html
copy to LayoutTests/paint/invalidation/spv2/multicol-with-abspos.html
index 84511c41739f711b5b059827eeb9c4b9d4af312c..a229af0660d30e6efd993a9aa3cdc1042d60925e 100644
--- a/LayoutTests/fast/repaint/multicol-with-abspos.html
+++ b/LayoutTests/paint/invalidation/spv2/multicol-with-abspos.html
@@ -1,17 +1,20 @@
+<!-- Based on fast/repaint/multicol-with-abspos.html -->
<!DOCTYPE html>
-<script src="resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
- if (window.internals)
- onload = runRepaintTest;
- else
- onclick = repaintTest;
- function repaintTest() {
+ onload = runPaintInvalidationTest;
+ window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow (positioned) DIV id='target'",
+ "LayoutText #text",
+ "InlineTextBox 'PASS'",
+ ];
+ function paintInvalidationTest() {
var target = document.getElementById('target');
target.style.visibility = 'visible';
}
</script>
-<p>A green rectangle should be seen below (if tested manually, you need to click first).</p>
-<div style="-webkit-columns:4; -webkit-column-gap:10px; column-fill:auto; width:630px; height:40px; font:20px/1 ahem; color:green;">
+<p>A green PASS should be seen at the bottom-left corner.</p>
+<div style="-webkit-columns:4; -webkit-column-gap:10px; column-fill:auto; width:630px; height:40px; color:green;">
<br>
<br>
<br>

Powered by Google App Engine
This is Rietveld 408576698