Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / device-orientation-crash.html
blobf203cbbcd88422485b47ab63b174169c42f8d7d7
1 <html>
2 <script>
3 var frame;
5 if (!window.gc) {
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");
15 function done() {
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();
21 function remove() {
22 frame = null;
23 document.body.innerHTML = '';
24 gc();
25 setTimeout(done, 0);
28 function crash() {
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)
38 done();
39 else
40 frame.contentWindow.ondeviceorientation = remove;
42 </script>
43 <body onload="crash()">
44 </body>
45 </html>