blob: 4b8c4b35850b54e5f50b938f010b9c6c026d5867 [file] [log] [blame]
<!DOCTYPE html>
<html>
Test passes if it does not crash.
<applet code=doesnotexist.class></applet>
<script>
if (window.testRunner) {
testRunner.overridePreference("WebKitJavaEnabled", "1");
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function walk(arr, currentPrefix, index, domNode) {
if (!domNode)
return;
newPrefix = currentPrefix + "_" + index;
walk(arr, currentPrefix, index + 1, domNode.nextSibling);
walk(arr, newPrefix, 0, domNode.firstChild);
}
function crash() {
var temp = new Array();
walk(temp, "", 0, document.documentElement);
if (window.testRunner)
testRunner.notifyDone();
}
setTimeout("crash();", 0);
</script>
</html>