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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/animated-gif.html

Issue 2319833002: Deflake paint/invalidation/animated-gif*.html (Closed)
Patch Set: Disable under-invalidation checking for offscreen gif animation 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/animated-gif.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/animated-gif.html b/third_party/WebKit/LayoutTests/paint/invalidation/animated-gif.html
index 235c6590f4cc79a75a27f2e5b6100c608743b04f..90225a02a87431289e8a078721b0f912ed7f30ba 100644
--- a/third_party/WebKit/LayoutTests/paint/invalidation/animated-gif.html
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/animated-gif.html
@@ -1,26 +1,22 @@
<!doctype HTML>
<body>
<div style="height: 2000px; width: 2000px;">
-<img id="targetImage">
+ <img id="targetImage">
</div>
<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<script>
window.testIsAsync = true;
function repaintTest() {
- window.internals.advanceImageAnimation(targetImage);
+ if (window.internals)
+ internals.advanceImageAnimation(targetImage);
requestAnimationFrame(function() {
finishRepaintTest();
});
}
-function targetImageOnload() {
- window.internals.startTrackingRepaints(document);
- runRepaintTest();
-}
-
window.onload = function() {
- targetImage.onload = targetImageOnload;
+ targetImage.onload = runRepaintTest;
targetImage.src="../../fast/backgrounds/resources/red-green-animated.gif";
}
</script>

Powered by Google App Engine
This is Rietveld 408576698