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

Unified Diff: LayoutTests/paint/invalidation/spv2/background-resize-width.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-resize-width.html
diff --git a/LayoutTests/fast/repaint/background-resize-width.html b/LayoutTests/paint/invalidation/spv2/background-resize-width.html
similarity index 51%
copy from LayoutTests/fast/repaint/background-resize-width.html
copy to LayoutTests/paint/invalidation/spv2/background-resize-width.html
index d58f9f2d071aeacf59b72a0aaae9b1bee795055b..1ad78d7ed14e7468e9696cf084c5b3135d18cb92 100644
--- a/LayoutTests/fast/repaint/background-resize-width.html
+++ b/LayoutTests/paint/invalidation/spv2/background-resize-width.html
@@ -1,11 +1,39 @@
+<!-- Based on fast/repaint/background-resize-width.html -->
<!DOCTYPE html>
-<script src="resources/text-based-repaint.js" type="text/javascript"></script>
+<script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
<script>
-function repaintTest()
+if (window.testRunner)
+ testRunner.dumpAsTextWithPixelResults();
+window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow (positioned) DIV id='container'",
+ "LayoutBlockFlow (positioned) DIV class='test image'",
+ "LayoutBlockFlow (positioned) DIV class='test image size-cover'",
+ "LayoutBlockFlow (positioned) DIV class='test image size-contain'",
+ "LayoutBlockFlow (positioned) DIV class='test image fixed-width'",
+ "LayoutBlockFlow (positioned) DIV class='test image percent-width'",
+ "LayoutBlockFlow (positioned) DIV class='test image left'",
+ "LayoutBlockFlow (positioned) DIV class='test image right'",
+ "LayoutBlockFlow (positioned) DIV class='test image center'",
+ "LayoutBlockFlow (positioned) DIV class='test image no-repeat'",
+ "LayoutBlockFlow (positioned) DIV class='test image repeat-space'",
+ "LayoutBlockFlow (positioned) DIV class='test image repeat-round'",
+ "LayoutBlockFlow (positioned) DIV class='test generated'",
+ "LayoutBlockFlow (positioned) DIV class='test generated cover'",
+ "LayoutBlockFlow (positioned) DIV class='test generated contain'",
+ "LayoutBlockFlow (positioned) DIV class='test generated fixed-width'",
+ "LayoutBlockFlow (positioned) DIV class='test generated percent-width'",
+ "LayoutBlockFlow (positioned) DIV class='test generated left'",
+ "LayoutBlockFlow (positioned) DIV class='test generated right'",
+ "LayoutBlockFlow (positioned) DIV class='test generated center'",
+ "LayoutBlockFlow (positioned) DIV class='test generated no-repeat'",
+ "LayoutBlockFlow (positioned) DIV class='test generated repeat-space'",
+ "LayoutBlockFlow (positioned) DIV class='test generated repeat-round'",
+];
+function paintInvalidationTest()
{
document.getElementById('container').style.width = '550px';
}
-window.onload = runRepaintTest;
+window.onload = runPaintInvalidationTest;
</script>
<style>
#container {
@@ -20,7 +48,7 @@ window.onload = runRepaintTest;
height: 8%;
}
.image {
- background-image: url(resources/small-apple.jpg);
+ background-image: url(../../../fast/repaint/resources/small-apple.jpg);
top: 0px;
}
.generated {

Powered by Google App Engine
This is Rietveld 408576698