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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 if (mode == "nacl_newlib") { | 225 if (mode == "nacl_newlib") { |
226 obj = document.createElement("EMBED"); | 226 obj = document.createElement("EMBED"); |
227 obj.setAttribute("src", "ppapi_nacl_tests_newlib.nmf"); | 227 obj.setAttribute("src", "ppapi_nacl_tests_newlib.nmf"); |
228 obj.setAttribute("type", "application/x-nacl"); | 228 obj.setAttribute("type", "application/x-nacl"); |
229 obj.setAttribute("mode", mode); | 229 obj.setAttribute("mode", mode); |
230 } else if (mode == "nacl_glibc") { | 230 } else if (mode == "nacl_glibc") { |
231 obj = document.createElement("EMBED"); | 231 obj = document.createElement("EMBED"); |
232 obj.setAttribute("src", "ppapi_nacl_tests_glibc.nmf"); | 232 obj.setAttribute("src", "ppapi_nacl_tests_glibc.nmf"); |
233 obj.setAttribute("type", "application/x-nacl"); | 233 obj.setAttribute("type", "application/x-nacl"); |
234 obj.setAttribute("mode", mode); | 234 obj.setAttribute("mode", mode); |
| 235 } else if (mode == "nacl_pnacl") { |
| 236 obj = document.createElement("EMBED"); |
| 237 obj.setAttribute("src", "ppapi_nacl_tests_pnacl.nmf"); |
| 238 obj.setAttribute("type", "application/x-nacl"); |
| 239 obj.setAttribute("mode", mode); |
235 } else { | 240 } else { |
236 var mimeType = "application/x-ppapi-tests"; | 241 var mimeType = "application/x-ppapi-tests"; |
237 if (mimeType in navigator.mimeTypes) { | 242 if (mimeType in navigator.mimeTypes) { |
238 obj = document.createElement("EMBED"); | 243 obj = document.createElement("EMBED"); |
239 obj.setAttribute("src", "http://a.b.c/test"); | 244 obj.setAttribute("src", "http://a.b.c/test"); |
240 obj.setAttribute("type", mimeType); | 245 obj.setAttribute("type", mimeType); |
241 } else { | 246 } else { |
242 document.getElementById("console").innerHTML = | 247 document.getElementById("console").innerHTML = |
243 '<span class="fail">FAIL</span>: ' + | 248 '<span class="fail">FAIL</span>: ' + |
244 '<span class="err_msg">Test plug-in is not registered.</span>'; | 249 '<span class="err_msg">Test plug-in is not registered.</span>'; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 InternalError("Bad MessageEvent.initMessageEvent called!"); | 321 InternalError("Bad MessageEvent.initMessageEvent called!"); |
317 } | 322 } |
318 | 323 |
319 </script> | 324 </script> |
320 </head><body> | 325 </head><body> |
321 <div> | 326 <div> |
322 <div id="container"></div> | 327 <div id="container"></div> |
323 <div id="console"><span class="load_msg">loading...</span></div> | 328 <div id="console"><span class="load_msg">loading...</span></div> |
324 </div> | 329 </div> |
325 </body></html> | 330 </body></html> |
OLD | NEW |