| Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/animation-frames/callback-multicalls.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/animation-frames/callback-multicalls.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/animation-frames/callback-multicalls.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..91d3f07d75336600b1fe29a6ff8afb9c460a45cd
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/animation-frames/callback-multicalls.html
|
| @@ -0,0 +1,26 @@
|
| +<!DOCTYPE html>
|
| +<meta charset="utf-8">
|
| +<title>AnimationTiming Test: multiple calls to requestAnimationFrame with the same callback</title>
|
| +<link rel="author" title="Intel" href="http://www.intel.com">
|
| +<link rel="help" href="https://html.spec.whatwg.org/multipage/webappapis.html#dom-window-requestanimationframe">
|
| +<script src="../../../../../resources/testharness.js"></script>
|
| +<script src="../../../../../resources/testharnessreport.js"></script>
|
| +<div id="log"></div>
|
| +<script>
|
| +
|
| + async_test(function(t) {
|
| + var counter = 0;
|
| + window.requestAnimationFrame(callback);
|
| +
|
| + function callback() {
|
| + ++counter;
|
| + if (counter == 2) {
|
| + t.done();
|
| + } else {
|
| + window.requestAnimationFrame(callback);
|
| + }
|
| + };
|
| +
|
| + }, "Check that multiple calls to requestAnimationFrame with the same callback will result in multiple entries being in the list with that same callback.");
|
| +
|
| +</script>
|
|
|