blob: 1279ed6a582e272eb6572c420d18dc26bc14559b [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="detail" open>
<summary id="summary">summary </summary>
''', treeSanitizer: new NullTreeSanitizer());
var details = document.getElementById("detail");
createNewElement("b", "toadd", "should have bold test"),
Expect.equals('bold', getWeight(document.getElementById("toadd")));