Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / animation / script-tests / request-animation-frame-timestamps-advance.js
blobe995ce72d9a1d6fd86620dbbe85109b00c7ad3d1
1 jsTestIsAsync = true;
3 description("Tests the timestamps provided to requestAnimationFrame callbacks advance");
5 function busyWait(millis) {
6 var start = Date.now();
7 while (Date.now()-start < millis) {}
10 var firstTimestamp = undefined;
11 var secondTimestamp = undefined;
13 window.requestAnimationFrame(function(timestamp) {
14 firstTimestamp = timestamp;
15 shouldBeDefined("firstTimestamp");
16 window.requestAnimationFrame(function(timestamp) {
17 secondTimestamp = timestamp;
18 shouldBeDefined("secondTimestamp");
19 shouldBeTrue("secondTimestamp > firstTimestamp");
20 finishJSTest();
21 });
22 busyWait(10);
23 });