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

Unified Diff: LayoutTests/fast/repaint/resources/frame-invalidated-by-timer.html

Issue 1246173002: Throttle rendering pipeline for invisible iframes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add layout tests. 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/fast/repaint/resources/frame-invalidated-by-timer.html
diff --git a/LayoutTests/fast/repaint/resources/frame-invalidated-by-timer.html b/LayoutTests/fast/repaint/resources/frame-invalidated-by-timer.html
new file mode 100644
index 0000000000000000000000000000000000000000..4d119ab06b2f8ecba2e3f92427c340816bdada64
--- /dev/null
+++ b/LayoutTests/fast/repaint/resources/frame-invalidated-by-timer.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<!-- A document which constantly invalidates itself using a timer. -->
+<script>
+var frame = 0;
+function animate()
+{
+ document.body.style.background = (frame++ % 2) ? 'lightblue' : 'cyan';
+}
+window.addEventListener('load', function() {
+ window.setInterval(animate, 0);
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698