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

Unified Diff: LayoutTests/paint/invalidation/spv2/percent-size-image-resize-container.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/percent-size-image-resize-container.html
diff --git a/LayoutTests/fast/repaint/percent-size-image-resize-container.html b/LayoutTests/paint/invalidation/spv2/percent-size-image-resize-container.html
similarity index 50%
copy from LayoutTests/fast/repaint/percent-size-image-resize-container.html
copy to LayoutTests/paint/invalidation/spv2/percent-size-image-resize-container.html
index 2272626ddf2d98c20b6086a993a598a64fe17914..2f2aaef38523ac461699329dfbd55a9bd4d11b3a 100644
--- a/LayoutTests/fast/repaint/percent-size-image-resize-container.html
+++ b/LayoutTests/paint/invalidation/spv2/percent-size-image-resize-container.html
@@ -1,12 +1,20 @@
+<!-- Based on fast/repaint/percent-size-image-resize-container.html -->
<!DOCTYPE html>
-<script src="resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
-function repaintTest() {
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow (positioned) DIV",
+ "LayoutImage (positioned) IMG",
+];
+function paintInvalidationTest() {
var div = document.getElementsByTagName('div')[0];
div.style.width = '100px';
div.style.height = '200px';
}
-onload = runRepaintTest;
+onload = runPaintInvalidationTest;
</script>
<style>
div {
@@ -24,5 +32,5 @@ img {
</style>
The percent-sized image should be fully repainted on container's resize. Passes if there is a whole apple after resize.
<div>
- <img src="resources/apple.jpg">
+ <img src="../../../fast/repaint/resources/apple.jpg">
</div>

Powered by Google App Engine
This is Rietveld 408576698