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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/fixed-img-src-change-after-scroll.html

Issue 2321183002: Move repaint tests (except for svg/) to paint/invalidation (Closed)
Patch Set: - Created 4 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: third_party/WebKit/LayoutTests/paint/invalidation/fixed-img-src-change-after-scroll.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/fixed-img-src-change-after-scroll.html b/third_party/WebKit/LayoutTests/paint/invalidation/fixed-img-src-change-after-scroll.html
new file mode 100644
index 0000000000000000000000000000000000000000..3f7e65ca755ea5aed71f14691afc49e7ecc29290
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/fixed-img-src-change-after-scroll.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ window.scrollTo(0, 1000);
+ document.getElementById('img').src = '../../fast/images/resources/green.jpg';
+}
+onload = runRepaintAndPixelTest;
+</script>
+<body style="height: 2000px">
+Checks correct paint invalidation on image src change after a pending scroll.
+Passes if there is no assert failure about pending scroll offsets in a debug build
+(http://crbug.com/434950), and both the old location and new location of the img are
+correctly invalidated.
+ <img id='img' style="width: 100px; height: 100px; position: fixed; top: 50px; left: 0">
+</body>

Powered by Google App Engine
This is Rietveld 408576698