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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/responsive/resources/responsive-test.js

Issue 2625313002: CSS: Rotate support for none and fixed responsive-test.js (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/responsive/rotate-responsive.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /* 5 /*
6 Exported functions: 6 Exported functions:
7 assertCSSResponsive 7 assertCSSResponsive
8 assertSVGResponsive 8 assertSVGResponsive
9 9
10 Exported objects: 10 Exported objects:
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 return createElement('div', container); 64 return createElement('div', container);
65 }, 65 },
66 createTarget(container) { 66 createTarget(container) {
67 if (options.targetTag) 67 if (options.targetTag)
68 return createElement(options.targetTag, container, 'target', svgNamesp ace); 68 return createElement(options.targetTag, container, 'target', svgNamesp ace);
69 69
70 return createElement('div', container, 'target'); 70 return createElement('div', container, 'target');
71 }, 71 },
72 setValue(target, property, value) { 72 setValue(target, property, value) {
73 test(function() {
74 assert_true(CSS.supports(property, value), 'CSS.supports ' + property + ' ' + value);
75 });
73 target.style[property] = value; 76 target.style[property] = value;
74 }, 77 },
75 getAnimatedValue(target, property) { 78 getAnimatedValue(target, property) {
76 return getComputedStyle(target)[property]; 79 return getComputedStyle(target)[property];
77 }, 80 },
78 }, 81 },
79 }); 82 });
80 } 83 }
81 84
82 function assertSVGResponsive(options) { 85 function assertSVGResponsive(options) {
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 asyncHandle.done(); 289 asyncHandle.done();
287 }); 290 });
288 }); 291 });
289 292
290 293
291 window.assertCSSResponsive = assertCSSResponsive; 294 window.assertCSSResponsive = assertCSSResponsive;
292 window.assertSVGResponsive = assertSVGResponsive; 295 window.assertSVGResponsive = assertSVGResponsive;
293 window.neutralKeyframe = neutralKeyframe; 296 window.neutralKeyframe = neutralKeyframe;
294 297
295 })(); 298 })();
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/responsive/rotate-responsive.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698