Chromium Code Reviews| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 190 else if (type == "AddPostCondition") | 190 else if (type == "AddPostCondition") |
| 191 AddPostCondition(contents); | 191 AddPostCondition(contents); |
| 192 } | 192 } |
| 193 } | 193 } |
| 194 | 194 |
| 195 onload = function() { | 195 onload = function() { |
| 196 var testcase = ExtractSearchParameter("testcase"); | 196 var testcase = ExtractSearchParameter("testcase"); |
| 197 var mode = ExtractSearchParameter("mode"); | 197 var mode = ExtractSearchParameter("mode"); |
| 198 document.title = 'Test ' + testcase; | 198 document.title = 'Test ' + testcase; |
| 199 var obj; | 199 var obj; |
| 200 if (mode == "nacl") { | 200 if (mode == "nacl_newlib") { |
| 201 obj = document.createElement("EMBED"); | 201 obj = document.createElement("EMBED"); |
| 202 obj.setAttribute("src", "test_case.nmf"); | 202 obj.setAttribute("src", "test_case.nmf"); |
|
noelallen1
2012/05/18 23:08:25
Move this file and make the name consistent here?
Brad Chen
2012/05/19 00:10:24
Done.
| |
| 203 obj.setAttribute("type", "application/x-nacl"); | 203 obj.setAttribute("type", "application/x-nacl"); |
| 204 obj.setAttribute("mode", mode); | 204 obj.setAttribute("mode", mode); |
| 205 } else if (mode == "nacl_glibc") { | |
| 206 obj = document.createElement("EMBED"); | |
| 207 obj.setAttribute("src", "ppapi_nacl_tests_glibc.nmf"); | |
| 208 obj.setAttribute("type", "application/x-nacl"); | |
| 209 obj.setAttribute("mode", mode); | |
| 205 } else { | 210 } else { |
| 206 var mimeType = "application/x-ppapi-tests"; | 211 var mimeType = "application/x-ppapi-tests"; |
| 207 if (mimeType in navigator.mimeTypes) { | 212 if (mimeType in navigator.mimeTypes) { |
| 208 obj = document.createElement("EMBED"); | 213 obj = document.createElement("EMBED"); |
| 209 obj.setAttribute("src", "http://a.b.c/test"); | 214 obj.setAttribute("src", "http://a.b.c/test"); |
| 210 obj.setAttribute("type", mimeType); | 215 obj.setAttribute("type", mimeType); |
| 211 } else { | 216 } else { |
| 212 document.getElementById("console").innerHTML = | 217 document.getElementById("console").innerHTML = |
| 213 '<span class="fail">FAIL</span>: ' + | 218 '<span class="fail">FAIL</span>: ' + |
| 214 '<span class="err_msg">Test plug-in is not registered.</span>'; | 219 '<span class="err_msg">Test plug-in is not registered.</span>'; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 264 LogHTML("<p>Bad MessageEvent.initMessageEvent called!"); | 269 LogHTML("<p>Bad MessageEvent.initMessageEvent called!"); |
| 265 } | 270 } |
| 266 | 271 |
| 267 </script> | 272 </script> |
| 268 </head><body> | 273 </head><body> |
| 269 <div> | 274 <div> |
| 270 <div id="container"></div> | 275 <div id="container"></div> |
| 271 <div id="console" /><span class="load_msg">loading...</span></div> | 276 <div id="console" /><span class="load_msg">loading...</span></div> |
| 272 </div> | 277 </div> |
| 273 </body></html> | 278 </body></html> |
| OLD | NEW |