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 function AdjustHeight(frameWin) { | 6 function AdjustHeight(frameWin) { |
7 var div = frameWin.document.getElementsByTagName("div")[0]; | 7 var div = frameWin.document.getElementsByTagName("div")[0]; |
8 var height = frameWin.getComputedStyle(div).height; | 8 var height = frameWin.getComputedStyle(div).height; |
9 frameWin.frameElement.style.height = height; | 9 frameWin.frameElement.style.height = height; |
10 } | 10 } |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 document.getElementById("console").innerHTML = | 151 document.getElementById("console").innerHTML = |
152 '<span class="fail">FAIL</span>: ' + | 152 '<span class="fail">FAIL</span>: ' + |
153 '<span class="err_msg">Test plug-in is not registered.</span>'; | 153 '<span class="err_msg">Test plug-in is not registered.</span>'; |
154 } | 154 } |
155 } | 155 } |
156 if (obj) { | 156 if (obj) { |
157 obj.setAttribute("id", "plugin"); | 157 obj.setAttribute("id", "plugin"); |
158 obj.setAttribute("testcase", testcase); | 158 obj.setAttribute("testcase", testcase); |
159 obj.setAttribute("protocol", window.location.protocol); | 159 obj.setAttribute("protocol", window.location.protocol); |
160 var container = document.getElementById("container"); | 160 var container = document.getElementById("container"); |
| 161 container.addEventListener("message", handleTestingMessage, true); |
161 container.appendChild(obj); | 162 container.appendChild(obj); |
162 container.addEventListener("message", handleTestingMessage, true); | |
163 } | 163 } |
164 } | 164 } |
165 </script> | 165 </script> |
166 </head><body> | 166 </head><body> |
167 <div> | 167 <div> |
168 <div id="container"></div> | 168 <div id="container"></div> |
169 <div id="console" /><span class="load_msg">loading...</span></div> | 169 <div id="console" /><span class="load_msg">loading...</span></div> |
170 </div> | 170 </div> |
171 </body></html> | 171 </body></html> |
OLD | NEW |