blob: 05fbab07a593bb95dce89ce6d984d524cf6f5079 [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 "../../testcommon.dart";
import "../../../Utils/async_utils.dart";
main() {
var style = new Element.html('''
#dummy:nth-child(3) { }
#container:first-line { color: blue; }
''', treeSanitizer: new NullTreeSanitizer());
Test for <i><a href=""></a>
Null deref in InlineBox::height()</i>.
This test should not crash.
<div contentEditable>
<img id="dummy">
<div id="container"><span id="target"><br></span></div>
''', treeSanitizer: new NullTreeSanitizer());
(document.getElementById("container").parentNode as Element).focus();