Index: sky/tests/styles/inline_style.dart |
diff --git a/sky/tests/styles/inline-style.sky b/sky/tests/styles/inline_style.dart |
similarity index 69% |
rename from sky/tests/styles/inline-style.sky |
rename to sky/tests/styles/inline_style.dart |
index 65091ba5b3b5756e3d1b3db549c4188b2134f3c3..cd8b6bac2dc4a80b3dfab855d8a48917a14d7184 100644 |
--- a/sky/tests/styles/inline-style.sky |
+++ b/sky/tests/styles/inline_style.dart |
@@ -1,6 +1,3 @@ |
-<html> |
-<foo /> |
-<script> |
import "../resources/third_party/unittest/unittest.dart"; |
import "../resources/unit.dart"; |
@@ -10,14 +7,14 @@ void main() { |
initUnit(); |
test('should be settable using "style" attribute', () { |
- var foo = document.querySelector('foo'); |
- foo.setAttribute('style', 'color: red'); |
+ LayoutRoot layoutRoot = new LayoutRoot(); |
+ var document = new Document(); |
+ var foo = document.createElement('foo'); |
+ layoutRoot.rootElement = foo; |
+ foo.setAttribute('style', 'color: red'); |
expect(foo.getAttribute('style'), equals('color: red')); |
expect(foo.style["color"], equals('rgb(255, 0, 0)')); |
- expect(window.getComputedStyle(foo)["color"], equals('rgb(255, 0, 0)')); |
}); |
} |
-</script> |
-</html> |