blob: 4311e38c844e9298ce1cfdd25b11b35473eae6bf [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
* @description This test passes if it does not CRASH.
*/
import "dart:html";
import "../../testharness.dart";
const String htmlEL1 = r'''
<style>
#test {
-webkit-text-combine: horizontal;
-webkit-writing-mode: vertical-rl;
height: 0px;
}
#test::first-line {
color: black;
}
</style>
''';
const String htmlEL2 = r'''
This test passes if it does not CRASH.
<span id="test">
</span>
''';
void main() {
document.head.appendHtml(htmlEL1, treeSanitizer: new NullTreeSanitizer());
document.body.appendHtml(htmlEL2, treeSanitizer: new NullTreeSanitizer());
var testElem = document.getElementById("test");
testElem.text = '';
}