blob: fd248aa8d9e1b13c8626f84b566577fa28d5b1f1 [file] [log] [blame]
/*
* Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
*/
/**
* @assertion final style
* @description Checks that CSS properties can be set via style.
*/
import "dart:html";
import "../../../Utils/expect.dart";
import "../testcommon.dart";
main() {
document.body.setInnerHtml(
'''<div>
<iframe class="ief">
</iframe>
</div>''',
treeSanitizer: new NullTreeSanitizer());
var x = document.body.getElementsByClassName('ief')[0];
x.style.color='red';
x.style.direction='rtl';
Expect.equals('red', x.style.color, 'color');
Expect.equals('rtl', x.style.direction, 'direction');
}