blob: dc3fd41cbe7efbc5bed48842c65318044c4222ba [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 This test checks that we don't strip trailing gunk in brackets
* from font families.
import "dart:html";
import "../../testcommon.dart";
import "../../../Utils/async_utils.dart";
import "pwd.dart";
getComputedStyle(x, [pseudoElement]) => x.getComputedStyle(pseudoElement);
main() {
<span id="testspan" style="font-family: 'Arial [ding dong]', 'Helvetica [Xft]', Courier">foo</span>
''', treeSanitizer: new NullTreeSanitizer());
var spanElement = document.getElementById('testspan');
var computedStyle = getComputedStyle(spanElement);
shouldBe(spanElement.innerHtml, 'foo');
"'Arial [ding dong]', 'Helvetica [Xft]', Courier");