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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/raf-throttling-out-of-view-cross-origin-page.html

Issue 2511283002: Revert of scheduler: Re-enable timer throttling for hidden frames (Closed)
Patch Set: Created 4 years, 1 month 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/fast/dom/raf-throttling-out-of-view-cross-origin-page.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/raf-throttling-out-of-view-cross-origin-page.html b/third_party/WebKit/LayoutTests/fast/dom/raf-throttling-out-of-view-cross-origin-page.html
deleted file mode 100644
index 4949bb69a102d66546c763b3a9e35f073b7a0f36..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/raf-throttling-out-of-view-cross-origin-page.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<style>
-#frame {
- position: absolute;
- top: -1000px;
-}
-</style>
-
-<iframe id="frame" sandbox="allow-scripts" src="resources/raf-throttling-frame.html"></iframe>
-
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-let throttlingTest = async_test("Test requestAnimationFrame() throttling in out-of-view cross origin frames");
-
-addEventListener('load', () => {
- // Check how many animation frames have been served to the frame after 1
- // second.
- setTimeout(() => {
- var frame = document.querySelector('#frame');
- frame.contentWindow.postMessage(null, '*');
- }, 1000);
-});
-
-addEventListener('message', (e) => {
- let rafCount = e.data;
- // TODO(skyostil): Chrome always runs one animation frame while the layout
- // test harness does none. Find out where the difference is coming from.
- assert_less_than_equal(rafCount, 1, "requestAnimationFrame() callback count")
- throttlingTest.done();
-});
-</script>
« no previous file with comments | « content/public/common/content_features.cc ('k') | third_party/WebKit/LayoutTests/fast/dom/resources/raf-throttling-frame.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698