OLD | NEW |
| (Empty) |
1 <!-- | |
2 Copyright 2013 Google Inc. All Rights Reserved. | |
3 | |
4 Licensed under the Apache License, Version 2.0 (the "License"); | |
5 you may not use this file except in compliance with the License. | |
6 You may obtain a copy of the License at | |
7 | |
8 http://www.apache.org/licenses/LICENSE-2.0 | |
9 | |
10 Unless required by applicable law or agreed to in writing, software | |
11 distributed under the License is distributed on an "AS IS" BASIS, | |
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 See the License for the specific language governing permissions and | |
14 limitations under the License. | |
15 --> | |
16 | |
17 <!DOCTYPE html><meta charset="UTF-8"> | |
18 <style> | |
19 </style> | |
20 | |
21 <div id="anim"></div> | |
22 | |
23 <script src="../bootstrap.js"></script> | |
24 <script> | |
25 "use strict"; | |
26 | |
27 var target = document.getElementById("anim"); | |
28 | |
29 test(function() { new Animation(target, null, 1.0); }, | |
30 "Creating an animation with a null effect should not cause an exception"); | |
31 | |
32 test(function() { | |
33 assert_equals(new Animation(target, null, 1.0).effect, null); | |
34 }, "Animation.effect should be null if effect is null"); | |
35 | |
36 test(function() { | |
37 assert_equals(new Animation(target, null, 1.0).clone().effect, null); | |
38 }, "Cloning an animation with a null effect should yield a null effect"); | |
39 | |
40 test(function() { document.timeline.play(new Animation(target, null, 1.0)); }, | |
41 "Playing an animation with a null effect should not cause an exception"); | |
42 | |
43 </script> | |
OLD | NEW |