| Index: third_party/WebKit/LayoutTests/fast/dom/resources/raf-throttling-frame.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/resources/raf-throttling-frame.html b/third_party/WebKit/LayoutTests/fast/dom/resources/raf-throttling-frame.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fa750dabbe49eb6db1b55bd1dc1210f7e252528e
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/resources/raf-throttling-frame.html
|
| @@ -0,0 +1,16 @@
|
| +<!DOCTYPE html>
|
| +
|
| +<!-- Counts the number of animation frames that have been served to this frame. -->
|
| +<script>
|
| +let rafCount = 0;
|
| +function raf() {
|
| + rafCount++;
|
| + requestAnimationFrame(raf);
|
| +};
|
| +requestAnimationFrame(raf);
|
| +
|
| +addEventListener('message', (e) => {
|
| + e.source.postMessage(rafCount, e.origin);
|
| +});
|
| +</script>
|
| +
|
|
|