mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 5a754b40cd49c0404863c431b58cc311dc5d167c
This commit is contained in:
parent
8950345e0e
commit
32efe41299
107 changed files with 4243 additions and 435 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue