OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 testCSSStyleDeclaration() { | 5 testCSSStyleDeclaration() { |
6 createTestStyle() { | 6 createTestStyle() { |
7 return new CSSStyleDeclaration.css(""" | 7 return new CSSStyleDeclaration.css(""" |
8 color: blue; | 8 color: blue; |
9 width: 2px !important; | 9 width: 2px !important; |
10 -webkit-transform: rotate(90deg); | 10 -webkit-transform: rotate(90deg); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 Expect.equals("2px", style.width); | 63 Expect.equals("2px", style.width); |
64 Expect.equals("rotate(90deg)", style.transform); | 64 Expect.equals("rotate(90deg)", style.transform); |
65 | 65 |
66 style.color = "red"; | 66 style.color = "red"; |
67 style.transform = "translate(10px, 20px)"; | 67 style.transform = "translate(10px, 20px)"; |
68 Expect.equals( | 68 Expect.equals( |
69 "color: red; width: 2px !important; -webkit-transform: translate(10px, 20p
x); ", | 69 "color: red; width: 2px !important; -webkit-transform: translate(10px, 20p
x); ", |
70 style.cssText); | 70 style.cssText); |
71 }); | 71 }); |
72 } | 72 } |
OLD | NEW |