| Index: LayoutTests/web-animations-api/change-in-animation-frame.html
|
| diff --git a/LayoutTests/web-animations-api/change-in-animation-frame.html b/LayoutTests/web-animations-api/change-in-animation-frame.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9da95d94bfd531d13e91b74e412db7f398eb9167
|
| --- /dev/null
|
| +++ b/LayoutTests/web-animations-api/change-in-animation-frame.html
|
| @@ -0,0 +1,24 @@
|
| +<!DOCTYPE html>
|
| +<div id="pass" style="visibility: hidden">PASS</div>
|
| +<div id="fail" style="visibility: visible">FAIL</div>
|
| +<script>
|
| +requestAnimationFrame(function() {
|
| + document.getElementById('pass').animate([{visibility: 'visible'}, {visibility: 'visible'}], 10);
|
| + document.getElementById('fail').animate([{visibility: 'hidden'}, {visibility: 'hidden'}], 10);
|
| + requestAnimationFrame(function() {
|
| + document.documentElement.textContent = 'FAIL: Produced a second frame.';
|
| + });
|
| +});
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| + setTimeout(function() {
|
| + if (window.testRunner) {
|
| + // Note that the test wont actually finish until the next frame is complete.
|
| + testRunner.notifyDone();
|
| + }
|
| + }, 0);
|
| +} else {
|
| + document.documentElement.textContent = 'FAIL: Test must be run under test harness.';
|
| +}
|
| +</script>
|
|
|