| Index: pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-composite-transforms.html
|
| diff --git a/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-composite-transforms.html b/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-composite-transforms.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..050e08457b698ba3c9b9ad9365d7edbf6aaede01
|
| --- /dev/null
|
| +++ b/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-composite-transforms.html
|
| @@ -0,0 +1,96 @@
|
| +<!--
|
| +Copyright 2012 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>
|
| +.anim {
|
| + left: 0px;
|
| + width: 100px;
|
| + height: 100px;
|
| + background-color: #FAA;
|
| + position: absolute;
|
| +}
|
| +
|
| +.expected {
|
| + width: 100px;
|
| + height: 100px;
|
| + position: absolute;
|
| + border-right: 1px solid black;
|
| +}
|
| +
|
| +#a {
|
| + top: 50px
|
| +}
|
| +
|
| +#b {
|
| + top: 150px;
|
| +}
|
| +
|
| +#c {
|
| + top: 250px;
|
| +}
|
| +
|
| +#d {
|
| + top: 350px;
|
| +}
|
| +
|
| +</style>
|
| +
|
| +<div>Right edge of each box should align with black line at end of test.</div>
|
| +<div id="a" class="anim"></div>
|
| +<div id="a" style="top: 50px; left: 200px;" class="expected"></div>
|
| +<div id="b" class="anim"></div>
|
| +<div id="b" style="top: 150px; left: 0px;" class="expected"></div>
|
| +<div id="c" class="anim"></div>
|
| +<div id="c" style="top: 250px; left: 200px;" class="expected"></div>
|
| +<div id="d" class="anim"></div>
|
| +<div id="d" style="top: 550px; left: 0px;" class="expected"></div>
|
| +
|
| +<div style="height: 700px;"></div>
|
| +
|
| +<script>
|
| +var expected_failures = {
|
| + 'Auto generated tests at t=2s': {
|
| + msie: true,
|
| + message: "Floating point issues."
|
| + }
|
| +};
|
| +</script>
|
| +<script src="../bootstrap.js"></script>
|
| +<script>
|
| +"use strict";
|
| +
|
| +var divs = document.querySelectorAll(".anim");
|
| +
|
| +var dt = document.timeline;
|
| +
|
| +var timing = {duration: 2, fill: 'forwards'};
|
| +
|
| +dt.play(new Animation(divs[0],
|
| + [{transform: "translate(0px, 0px)"}, {transform: "translate(200px, 0px)"}],
|
| + timing));
|
| +dt.play(new Animation(divs[1],
|
| + [{transform: "rotate(0deg)"}, {transform: "rotate(90deg)"}], timing));
|
| +dt.play(new Animation(divs[2], [
|
| + {transform: "translate(0px, 0px) rotate(0deg)"},
|
| + {transform: "translate(200px, 0px) rotate(90deg)"},
|
| +], timing));
|
| +dt.play(new Animation(divs[3], [
|
| + {transform: "rotate(0deg) translate(0px, 0px)"},
|
| + {transform: "rotate(90deg) translate(200px, 0px)"},
|
| +], timing));
|
| +
|
| +</script>
|
|
|