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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 obj.setAttribute("mode", mode); | 293 obj.setAttribute("mode", mode); |
294 } else { | 294 } else { |
295 var mimeType = "application/x-ppapi-tests"; | 295 var mimeType = "application/x-ppapi-tests"; |
296 if (mimeType in navigator.mimeTypes) { | 296 if (mimeType in navigator.mimeTypes) { |
297 obj = document.createElement("EMBED"); | 297 obj = document.createElement("EMBED"); |
298 obj.setAttribute("src", "http://a.b.c/test"); | 298 obj.setAttribute("src", "http://a.b.c/test"); |
299 obj.setAttribute("type", mimeType); | 299 obj.setAttribute("type", mimeType); |
300 } else { | 300 } else { |
301 document.getElementById("console").innerHTML = | 301 document.getElementById("console").innerHTML = |
302 '<span class="fail">FAIL</span>: ' + | 302 '<span class="fail">FAIL</span>: ' + |
303 '<span class="err_msg">Test plug-in is not registered.</span>'; | 303 '<span class="err_msg">Test plugin is not registered.</span>'; |
304 } | 304 } |
305 } | 305 } |
306 | 306 |
307 if (obj) { | 307 if (obj) { |
308 obj.setAttribute("width", 80); | 308 obj.setAttribute("width", 80); |
309 obj.setAttribute("height", 80); | 309 obj.setAttribute("height", 80); |
310 obj.setAttribute("style", | 310 obj.setAttribute("style", |
311 "background-color:#AAAAAA;border:1px solid black;"); | 311 "background-color:#AAAAAA;border:1px solid black;"); |
312 obj.setAttribute("id", "plugin"); | 312 obj.setAttribute("id", "plugin"); |
313 obj.setAttribute("testcase", testcase); | 313 obj.setAttribute("testcase", testcase); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 InternalError("Bad MessageEvent.initMessageEvent called!"); | 368 InternalError("Bad MessageEvent.initMessageEvent called!"); |
369 } | 369 } |
370 | 370 |
371 </script> | 371 </script> |
372 </head><body> | 372 </head><body> |
373 <div> | 373 <div> |
374 <div id="container"></div> | 374 <div id="container"></div> |
375 <div id="console"><span class="load_msg">loading...</span></div> | 375 <div id="console"><span class="load_msg">loading...</span></div> |
376 </div> | 376 </div> |
377 </body></html> | 377 </body></html> |
OLD | NEW |