24 lines
518 B
HTML
24 lines
518 B
HTML
<html>
|
|
<!-- This test passes if there is no crash or assert -->
|
|
<style>
|
|
text { text-transform: uppercase; }
|
|
</style>
|
|
<script>
|
|
function testCrash() {
|
|
document.body.offsetWidth;
|
|
var test = document.getElementById('test');
|
|
test.removeChild(test.firstChild);
|
|
var textNode = document.createTextNode("PASS");
|
|
test.appendChild(textNode);
|
|
}
|
|
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
</script>
|
|
<body onload="testCrash()">
|
|
<svg>
|
|
<text id="test" x="0" y="15">FAIL</text>
|
|
</svg>
|
|
</body>
|
|
</html>
|