Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / resources / document-all-between-frames-subframe.html
blobf0c48d8f9cf26b18dffb35e2c54c8e22eff0eca2
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Subframe</title>
5 <script src=".../resources/js-test.js"></script>
6 </head>
7 <body>
8 <script>
9 var documentDotAll = window.passDown;
10 window.parent.passUp = [];
12 if (document.all) {
13 window.parent.passUp.push("FAIL: if (document.all) didn't masqueraded as undefined");
14 } else {
15 window.parent.passUp.push("if (document.all) masqueraded as undefined");
18 for (var i = 0; i < 300; i++) {
19 if (documentDotAll) {
20 window.parent.passUp.push("if (documentDotAll) did not masquerade as undefined");
21 } else {
22 window.parent.passUp.push("FAIL: if (documentDotAll) masqueraded as undefined");
25 if (documentDotAll == null) {
26 window.parent.passUp.push("FAIL: if (documentDotAll == null) masqueraded as undefined");
27 } else {
28 window.parent.passUp.push("if (documentDotAll == null) did not masquerade as undefined");
31 if (documentDotAll == undefined) {
32 window.parent.passUp.push("FAIL: if (documentDotAll == undefined) masqueraded as undefined");
33 } else {
34 window.parent.passUp.push("if (documentDotAll == undefined) did not masquerade as undefined");
37 if (!documentDotAll) {
38 window.parent.passUp.push("FAIL: if (!documentDotAll) masqueraded as undefined");
39 } else {
40 window.parent.passUp.push("if (!documentDotAll) did not masquerade as undefined");
43 if (documentDotAll != null) {
44 window.parent.passUp.push("if (documentDotAll != null) did not masquerade as undefined");
45 } else {
46 window.parent.passUp.push("FAIL: if (documentDotAll != null) masqueraded as undefined");
49 if (documentDotAll != undefined) {
50 window.parent.passUp.push("if (documentDotAll != undefined) did not masquerade as undefined");
51 } else {
52 window.parent.passUp.push("FAIL: if (documentDotAll != undefined) masqueraded as undefined");
55 if (documentDotAll === undefined) {
56 window.parent.passUp.push("FAIL: if (documentDotAll === undefined) masqueraded as undefined");
57 } else {
58 window.parent.passUp.push("if (documentDotAll === undefined) did not masquerade as undefined");
61 if (documentDotAll !== undefined) {
62 window.parent.passUp.push("if (documentDotAll !== undefined) did not masquerade as undefined");
63 } else {
64 window.parent.passUp.push("FAIL: if (documentDotAll !== undefined) masqueraded as undefined");
67 if (typeof documentDotAll === "undefined") {
68 window.parent.passUp.push("FAIL: if (typeof documentDotAll === \"undefined\") masqueraded as undefined");
69 } else {
70 window.parent.passUp.push("if (typeof documentDotAll === \"undefined\") did not masquerade as undefined");
73 </script>
74 </body>
75 </html>