| 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>
|
|
|