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

Unified Diff: LayoutTests/paint/invalidation/spv2/fixed-img-src-change-after-scroll-expected.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-expected.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-expected.html
similarity index 58%
copy from LayoutTests/fast/images/fixed-img-src-change-after-scroll.html
copy to LayoutTests/paint/invalidation/spv2/fixed-img-src-change-after-scroll-expected.html
index e61210b671fb38c4a4d457818b6ed0f2992f9b09..e8e5c43b8d18b698c62cf02e1a86c88758ef5931 100644
--- a/LayoutTests/fast/images/fixed-img-src-change-after-scroll.html
+++ b/LayoutTests/paint/invalidation/spv2/fixed-img-src-change-after-scroll-expected.html
@@ -1,16 +1,13 @@
<!DOCTYPE html>
-<script src="../repaint/resources/text-based-repaint.js"></script>
<script>
-function repaintTest() {
+onload = function() {
window.scrollTo(0, 1000);
- document.getElementById('img').src = 'resources/green.jpg';
}
-onload = runRepaintTest;
</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">
+ <img id='img' src='../../../fast/images/resources/green.jpg' style="width: 100px; height: 100px; position: fixed; top: 50px; left: 0">
</body>

Powered by Google App Engine
This is Rietveld 408576698