6 window
.gc = function() {
7 if (window
.GCController
)
8 return GCController
.collect();
9 for (var i
= 0; i
< 10000; i
++) {
10 var s
= new String("abc");
16 document
.body
.innerHTML
= 'PASS: handler not supported or did not crash when removing Windows during ondeviceorientation event';
17 if (window
.testRunner
)
18 testRunner
.notifyDone();
23 document
.body
.innerHTML
= '';
29 if (window
.testRunner
) {
30 testRunner
.dumpAsText();
31 testRunner
.waitUntilDone();
34 frame
= document
.createElement('iframe');
35 document
.body
.appendChild(frame
);
37 if (!frame
.contentWindow
.ondeviceorientation
)
40 frame
.contentWindow
.ondeviceorientation
= remove
;
43 <body onload=
"crash()">