Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / onerror-img-after-gc.html
blob4295d8a9a9be533132589131a6fe2eb1591b3f39
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 <script>
6 if (window.testRunner)
7 testRunner.waitUntilDone();
9 function test() {
10 (function () {
11 var img = document.createElement('img');
12 img.onload = function () {
13 alert('FAIL (1/1)');
14 finishTesting();
16 img.onerror = function () {
17 alert('PASS (1/1)');
18 finishTesting();
20 img.src = "foo";
21 })();
22 gc();
25 function finishTesting() {
26 if (window.testRunner)
27 setTimeout(function () { testRunner.notifyDone(); }, 0);
28 return true;
30 </script>
31 </head>
32 <body onload='test();'>
33 <p>
34 This test ensures that a normal image error doesn't crash if GC occurs
35 before the error event fires.
36 </p>
37 </body>
38 </html>