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

Unified Diff: LayoutTests/paint/invalidation/spv2/fixed-img-src-change-after-scroll.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/fixed-img-src-change-after-scroll.html
diff --git a/LayoutTests/fast/images/fixed-img-src-change-after-scroll.html b/LayoutTests/paint/invalidation/spv2/fixed-img-src-change-after-scroll.html
similarity index 55%
copy from LayoutTests/fast/images/fixed-img-src-change-after-scroll.html
copy to LayoutTests/paint/invalidation/spv2/fixed-img-src-change-after-scroll.html
index e61210b671fb38c4a4d457818b6ed0f2992f9b09..402688cc3597d8b3bdbcd07197542c6a5218a8d9 100644
--- a/LayoutTests/fast/images/fixed-img-src-change-after-scroll.html
+++ b/LayoutTests/paint/invalidation/spv2/fixed-img-src-change-after-scroll.html
@@ -1,11 +1,15 @@
+<!-- Based on fast/images/fixed-img-src-change-after-scroll.html -->
<!DOCTYPE html>
-<script src="../repaint/resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
-function repaintTest() {
+window.expectedPaintInvalidationObjects = [
+ "LayoutImage (positioned) IMG id='img'",
+];
+function paintInvalidationTest() {
window.scrollTo(0, 1000);
- document.getElementById('img').src = 'resources/green.jpg';
+ document.getElementById('img').src = '../../../fast/images/resources/green.jpg';
}
-onload = runRepaintTest;
+onload = runPaintInvalidationTest;
</script>
<body style="height: 2000px">
Checks correct paint invalidation on image src change after a pending scroll.

Powered by Google App Engine
This is Rietveld 408576698