4 function print(message) {
5 var paragraph = document.createElement("p");
6 paragraph.appendChild(document.createTextNode(message));
7 document.getElementById("console").appendChild(paragraph);
12 return layoutTestController.doesNotExist;
17 if (window.layoutTestController)
18 layoutTestController.dumpAsText();
20 print("FAIL: window.layoutTestController does not exist");
22 var crasher = test2();
23 delete layoutTestController;
25 // create lots of objects to force a garbage collection
33 if (crasher) {} // force call to toBoolean
34 if (crasher == null) {} // force call to type() through call to equal
36 if (window.layoutTestController)
37 print("FAIL: unable to delete layoutTestController");
39 print("PASS: You didn't crash.");
44 <body onload="test()">
46 This test checks for a regression against: rdar://problem/4176077 CrashTracer:
47 6569 crashes in DashboardClient at com.apple.JavaScriptCore:
48 KJS::Bindings::ObjcFallbackObjectImp::type()
51 This test only works in DumpRenderTree, because it depends on having a plugin object
55 <div id="console"></div>