| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 })(); |
| OLD | NEW |