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

Unified Diff: LayoutTests/paint/invalidation/spv2/background-size-auto-with-gradient-and-height-changes.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/background-size-auto-with-gradient-and-height-changes.html
diff --git a/LayoutTests/fast/repaint/background-size-auto-with-gradient-and-height-changes.html b/LayoutTests/paint/invalidation/spv2/background-size-auto-with-gradient-and-height-changes.html
similarity index 61%
copy from LayoutTests/fast/repaint/background-size-auto-with-gradient-and-height-changes.html
copy to LayoutTests/paint/invalidation/spv2/background-size-auto-with-gradient-and-height-changes.html
index f70cb3237ca6f179340ebd97f88b89e4a8878aee..a942cb946c1c77a0b34db5e597e16454f4addbeb 100644
--- a/LayoutTests/fast/repaint/background-size-auto-with-gradient-and-height-changes.html
+++ b/LayoutTests/paint/invalidation/spv2/background-size-auto-with-gradient-and-height-changes.html
@@ -1,6 +1,7 @@
+<!-- Based on fast/repaint/background-size-auto-with-gradient-and-height-changes.html -->
<html>
<head>
-<script src="resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<style>
#outer {
@@ -21,13 +22,17 @@
<script>
// This test verifies that gradient background gets repainted properly after child box height change.
-function repaintTest() {
+window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow DIV id='outer'",
+ "LayoutBlockFlow DIV id='inner'",
+];
+function paintInvalidationTest() {
document.getElementById('inner').style.height = '300px';
}
</script>
</head>
-<body onload='runRepaintTest();'>
+<body onload='runPaintInvalidationTest();'>
<div id='outer'>
<div id='inner'>
</div>

Powered by Google App Engine
This is Rietveld 408576698