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

Unified Diff: LayoutTests/paint/invalidation/spv2/background-shorthand-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-shorthand-with-gradient-and-height-changes.html
diff --git a/LayoutTests/fast/repaint/background-shorthand-with-gradient-and-height-changes.html b/LayoutTests/paint/invalidation/spv2/background-shorthand-with-gradient-and-height-changes.html
similarity index 63%
copy from LayoutTests/fast/repaint/background-shorthand-with-gradient-and-height-changes.html
copy to LayoutTests/paint/invalidation/spv2/background-shorthand-with-gradient-and-height-changes.html
index 075cb110807d29513246137142caefa22edf5940..5edb167955009c62d9a329e7c90c6354e3aa1417 100644
--- a/LayoutTests/fast/repaint/background-shorthand-with-gradient-and-height-changes.html
+++ b/LayoutTests/paint/invalidation/spv2/background-shorthand-with-gradient-and-height-changes.html
@@ -1,6 +1,7 @@
+<!-- Based on fast/repaint/background-shorthand-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 {
@@ -22,12 +23,16 @@
<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 = 300 + 'px';
}
</script>
</head>
-<body onload='runRepaintTest();'>
+<body onload='runPaintInvalidationTest();'>
<div id='outer'>
<div id='inner'>
</div>

Powered by Google App Engine
This is Rietveld 408576698