| OLD | NEW |
| (Empty) |
| 1 <!-- | |
| 2 Copyright 2012 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 <body> | |
| 19 <style> | |
| 20 body { | |
| 21 margin: 0px; | |
| 22 } | |
| 23 #test, #expectation { | |
| 24 position: absolute; | |
| 25 width: 800px; | |
| 26 height: 600px; | |
| 27 background: lightsteelblue; | |
| 28 } | |
| 29 #expectation { | |
| 30 background: red; | |
| 31 } | |
| 32 </style> | |
| 33 <div id="expectation"></div> | |
| 34 <div id="test"></div> | |
| 35 <div style="height: 650px"></div> | |
| 36 | |
| 37 <script> | |
| 38 var expected_failures = [ | |
| 39 { | |
| 40 browser_configurations: [{ msie: true }], | |
| 41 tests: ['Autogenerated at t=800ms'], | |
| 42 message: 'Floating point issues.', | |
| 43 } | |
| 44 ]; | |
| 45 </script> | |
| 46 <script src="../bootstrap.js"></script> | |
| 47 <script> | |
| 48 "use strict"; | |
| 49 | |
| 50 var anim = [ | |
| 51 {clip: 'rect(300px, 400px, 300px, 400px)'}, | |
| 52 {clip: 'rect(0px, 800px, 600px, 0px)'}, | |
| 53 ]; | |
| 54 | |
| 55 document.timeline.play( | |
| 56 new Animation(document.querySelector('#test'), anim, {duration: 1 * 1000, fi
ll: 'forwards'})); | |
| 57 </script> | |
| OLD | NEW |