Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / messaging / cross-domain-message-event-dispatch.html
blob76138cff8b8cb99adbda694bbfbdea828924c41f
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner) {
6 testRunner.waitUntilDone();
7 testRunner.dumpAsText();
10 function log(msg) {
11 var div = document.createElement("div");
12 div.appendChild(document.createTextNode(msg));
13 document.getElementById("result").appendChild(div);
16 function done() {
17 if (window.testRunner)
18 testRunner.notifyDone();
21 window.onload = function () {
22 log("Test begins");
24 // The setTimeout handlers will get called after the
25 // event listeners.
26 postMessage("Message1", "*");
27 postMessage("Message2", "*");
28 postMessage("Message3", "*");
29 setTimeout("log('setTimeout1')", 0);
30 setTimeout("log('setTimeout2')", 0);
31 setTimeout(done, 0);
32 log("Events queued");
35 addEventListener("message", function (e) {
36 log("Capture phase: " + e.data);
37 }, true);
38 addEventListener("message", function (e) {
39 log("Bubble phase: " + e.data);
40 }, false);
42 document.addEventListener("message", function (e) {
43 log("FAIL: Capture phase (document): " + e.data);
44 }, true);
45 document.addEventListener("message", function (e) {
46 log("FAIL: Bubble phase (document): " + e.data);
47 }, false);
48 </script>
49 </head>
50 <body>
51 <div id="result">waiting...</div>
52 </body>
53 </html>