Sha256: 49d50709c48fd41a1a106eeccac0d3c950012b262e453762c29f19d469a21b7d
Contents?: true
Size: 1.58 KB
Versions: 2
Compression:
Stored size: 1.58 KB
Contents
<!-- Copyright 2013 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!DOCTYPE html><meta charset="UTF-8"> <style> div.anim { position: relative; left: 0px; } </style> <div id="anim" class="anim"></div> <script src="../bootstrap.js"></script> <script> "use strict"; var player = document.timeline.play(new Animation( document.getElementById("anim"), [{left: "100px"}, {left: "200px"}], 1.0)); // Test that repeatedly setting AnimationPlayer.paused to true does not affect the // AnimationPlayer's currentTime. timing_test(function() { at(0.1, function() { player.pause(); assert_equals(player.currentTime, 0.1); }); }, "AnimationPlayer.currentTime should be " + "unaffected by repeatedly setting AnimationPlayer.paused to true"); // Test that repeatedly setting AnimationPlayer.paused to false has no effect. timing_test(function() { at(0.2, function() { player.play(); assert_equals(player.currentTime, 0.1); }); }, "AnimationPlayer.currentTime should be " + "unaffected by repeatedly setting AnimationPlayer.paused to false"); </script>
Version data entries
2 entries across 2 versions & 2 rubygems