blob: fb1a5d1b3ed44d424bea301aa2572bdff44c9cb2 [file] [log] [blame]
<html>
<foo />
<script>
import "../resources/third_party/unittest/unittest.dart";
import "../resources/unit.dart";
import "dart:sky";
void main() {
initUnit();
test('should be settable using "style" attribute', () {
var foo = document.querySelector('foo');
foo.setAttribute('style', 'color: red');
expect(foo.getAttribute('style'), equals('color: red'));
expect(foo.style.getPropertyValue("color"), equals('rgb(255, 0, 0)'));
expect(window.getComputedStyle(foo).getPropertyValue("color"),
equals('rgb(255, 0, 0)'));
});
}
</script>
</html>