blob: c0aa23943ca2ba47e8b24af16b3d2212d0636b17 [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.
* @description
import "dart:html";
import "../../../Utils/expect.dart";
import "../../testcommon.dart";
var createNewElement = (tag, id, text) {
var result = document.createElement(tag);
result.setAttribute('id', id);
result.setInnerHtml(text, treeSanitizer: new NullTreeSanitizer());
return result;
getWeight(x) {
return x.getComputedStyle().getPropertyValue('font-weight');
main() {
var body = document.body;
<details id="details" open>
''', treeSanitizer: new NullTreeSanitizer());
.append(createNewElement("b", "toadd", "should have bold test"));
Expect.equals('bold', getWeight(document.getElementById("toadd")));