Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / iframe-object-onload.html
blob2e6ae6f13a1833a7be95e6d027e979469f338e5f
1 <div>
2 This test checks that onload events fire on iframe and object
3 elements when their contents finish loading, and that these are
4 separate event objects from those that fire on the body inside the
5 frame. If it passes, you will see 6 blocks below, each with a
6 three-line message that ends in false.
7 </div>
8 <div id="console">
9 </div>
10 <script>
11 if (window.testRunner)
12 testRunner.dumpAsText();
14 function log(s)
16 currentLogEntry += s + "<br>";
19 var innerEvent = null;
20 var logArray = [];
21 var currentLogEntry = '';
23 function logOuter(msg, event)
25 log(msg);
26 log('Outer event same as inner: ' + (innerEvent == event));
27 log('------');
29 logArray.push(currentLogEntry);
30 currentLogEntry = '';
32 if (logArray.length == 6) {
33 logArray.sort();
34 document.getElementById("console").innerHTML = logArray.join('');
38 function logInner(tag, event)
40 parent.log("Fired load event on body inside " + tag);
41 parent.innerEvent = event;
44 </script>
46 <iframe
47 src="resources/iframe-object-onload-iframe-1.html"
48 onload="logOuter('Fired event on iframe', event)">
49 </iframe>
51 <iframe
52 src="resources/iframe-object-onload-iframe-2.html"
53 onload="logOuter('Fired event on iframe even though default was prevented', event)">
54 </iframe>
56 <iframe
57 src="resources/iframe-object-onload-iframe-3.html"
58 onload="logOuter('Fired event on object even though propagation was stopped', event)">
59 </iframe>
61 <object
62 type="text/html"
63 data="resources/iframe-object-onload-object-1.html"
64 onload="logOuter('Fired event on object', event)">
65 </object>
67 <object
68 type="text/html"
69 data="resources/iframe-object-onload-object-2.html"
70 onload="logOuter('Fired event on object even though default was prevented', event)">
71 </object>
73 <object
74 type="text/html"
75 data="resources/iframe-object-onload-object-3.html"
76 onload="logOuter('Fired event on object even though propagation was stopped', event)">
77 </object>