Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Unified Diff: LayoutTests/web-animations-api/change-in-animation-frame.html

Issue 212393002: Web Animations API: Ensure timing is updated if a RAF callback makes a player outdated. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove assert. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/web-animations-api/change-in-animation-frame-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/web-animations-api/change-in-animation-frame-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698