OLD | NEW |
1 <html><head> | 1 <html><head> |
2 <meta http-equiv="Pragma" content="no-cache" /> | 2 <meta http-equiv="Pragma" content="no-cache" /> |
3 <meta http-equiv="Expires" content="-1" /> | 3 <meta http-equiv="Expires" content="-1" /> |
4 <link rel="stylesheet" href="test_page.css"> | 4 <link rel="stylesheet" href="test_page.css"> |
5 <script> | 5 <script> |
6 // Do a deep comparison of two values. Return true if their values are | 6 // Do a deep comparison of two values. Return true if their values are |
7 // identical, false otherwise. | 7 // identical, false otherwise. |
8 function deepCompare(left, right) { | 8 function deepCompare(left, right) { |
9 if (typeof(left) !== typeof(right)) | 9 if (typeof(left) !== typeof(right)) |
10 return false; | 10 return false; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 plugin.parentNode.removeChild(plugin); | 53 plugin.parentNode.removeChild(plugin); |
54 plugin = undefined; | 54 plugin = undefined; |
55 } | 55 } |
56 if (CheckPostConditions()) | 56 if (CheckPostConditions()) |
57 sendAutomationMessage(result); | 57 sendAutomationMessage(result); |
58 | 58 |
59 if (window == top) | 59 if (window == top) |
60 return; | 60 return; |
61 | 61 |
62 // Otherwise, we are in a subframe, so we can use this opportunity to resize | 62 // Otherwise, we are in a subframe, so we can use this opportunity to resize |
63 // ourselves. | 63 // ourselves. This can only be done if the parent frame has the same origin. |
64 AdjustHeight(window); | 64 if (window.frameElement) |
| 65 AdjustHeight(window); |
65 } | 66 } |
66 | 67 |
67 function AppendFrame(testcase, i) { | 68 function AppendFrame(testcase, i) { |
68 var p = document.createElement("P"); | 69 var p = document.createElement("P"); |
69 p.setAttribute("class", "frame-container"); | 70 p.setAttribute("class", "frame-container"); |
70 | 71 |
71 var title = document.createElement("H2"); | 72 var title = document.createElement("H2"); |
72 title.appendChild(document.createTextNode(testcase)); | 73 title.appendChild(document.createTextNode(testcase)); |
73 p.appendChild(title); | 74 p.appendChild(title); |
74 | 75 |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 InternalError("Bad MessageEvent.initMessageEvent called!"); | 369 InternalError("Bad MessageEvent.initMessageEvent called!"); |
369 } | 370 } |
370 | 371 |
371 </script> | 372 </script> |
372 </head><body> | 373 </head><body> |
373 <div> | 374 <div> |
374 <div id="container"></div> | 375 <div id="container"></div> |
375 <div id="console"><span class="load_msg">loading...</span></div> | 376 <div id="console"><span class="load_msg">loading...</span></div> |
376 </div> | 377 </div> |
377 </body></html> | 378 </body></html> |
OLD | NEW |