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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/resources/timer-throttling-frame.html

Issue 2468863002: scheduler: Re-enable timer throttling for hidden frames (Closed)
Patch Set: Rebased Created 4 years 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/resources/timer-throttling-frame.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/resources/timer-throttling-frame.html b/third_party/WebKit/LayoutTests/fast/dom/resources/timer-throttling-frame.html
new file mode 100644
index 0000000000000000000000000000000000000000..28fe312649f0797c9001fa20c0404f12605e3174
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/resources/timer-throttling-frame.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+
+<!-- Measures the delay between two successive zero-delay timeouts. -->
+<script>
+addEventListener('message', (e) => {
+ setTimeout(() => {
+ let start = performance.now();
+ setTimeout(() => {
+ let end = performance.now();
+ e.source.postMessage(end - start, e.origin);
+ }, 0);
+ }, 0);
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698