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

Side by Side Diff: bower_components/web-animations-js/test/testcases/auto-test-shorthand.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
OLDNEW
(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 #container {
20 -webkit-column-width: 250px;
21 -moz-column-width: 250px;
22 column-width: 250px;
23 }
24
25 p {
26 display: inline-block;
27 }
28
29 .test, .ref {
30 background-color: lightsteelblue;
31 display: inline-block;
32 width: 100px;
33 height: 100px;
34 margin-right: 10px;
35 }
36
37 #borderWidth, #borderColor {
38 border-style: solid;
39 }
40 #borderWidth {
41 border-color: green;
42 }
43
44 </style>
45 <script>
46 var expected_failures = [
47 {
48 browser_configurations: [{ firefox: true }],
49 tests: ['#font at t=(0|500|1000|1500|2000)ms'],
50 message: 'Floating point issues.',
51 }, {
52 browser_configurations: [{ firefox: true }],
53 tests: ['#background at t=(0|500|1000|1500|2000)ms'],
54 message: 'Setting background to "auto" gets back "auto auto".',
55 }, {
56 browser_configurations: [{ msie: true }],
57 tests: [
58 '#((?!(borderWidth|borderRadius|margin|padding)).*) at t=(0|500|1000|1500| 2)ms',
59 '#borderWidth at t=(500|1000|1500)ms',
60 ],
61 message: 'IE returns rgba.',
62 }, {
63 browser_configurations: [{ chrome: true, version: '30|31' }],
64 tests: ['#font'],
65 message: 'Different initial font-size.',
66 }
67 ];
68 </script>
69 <script src="../bootstrap.js"></script>
70 <div id="container"></div>
71 <script>
72 "use strict";
73
74 var testCases = {
75 background: 'url(background.png) 50% 25% repeat-y green',
76 border: 'green solid 4px',
77 borderColor: 'lime lightgreen darkgreen green',
78 borderLeft: 'green solid 4px',
79 borderRight: 'green solid 4px',
80 borderTop: 'green solid 4px',
81 borderBottom: 'green solid 4px',
82 borderRadius: '10px 20px 10% 50%',
83 borderWidth: 'thin medium thick 10px',
84 font: 'italic bold 20pt / 200% serif',
85 margin: '5px 10px 15px 20px',
86 outline: 'green solid 5px',
87 padding: '5px 10px 15px 20px',
88 };
89
90 var container = document.querySelector('#container');
91
92 for (var shorthand in testCases) {
93 var p = document.createElement('p');
94 var value = testCases[shorthand];
95 p.appendChild(document.createTextNode(shorthand));
96 p.appendChild(document.createElement('br'));
97 var refDiv = document.createElement('div');
98 refDiv.id = shorthand;
99 refDiv.style[shorthand] = value;
100 refDiv.className = 'ref';
101 refDiv.appendChild(document.createTextNode('Ref'));
102 p.appendChild(refDiv);
103 var testDiv = document.createElement('div');
104 testDiv.id = shorthand;
105 testDiv.className = 'test';
106 testDiv.appendChild(document.createTextNode('Test'));
107 p.appendChild(testDiv);
108 container.appendChild(p);
109
110 var keyframe = {};
111 keyframe[shorthand] = value;
112 document.timeline.play(new Animation(testDiv, [keyframe], {duration: 2 * 1000, fill: 'forwards'}));
113 }
114
115 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698