OLD | NEW |
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
3 <html> | 3 <html> |
4 <!-- Copyright 2008 Google Inc. All rights reserved. --> | 4 <!-- Copyright 2008 Google Inc. All rights reserved. --> |
5 <head> | 5 <head> |
6 <title>SRPC Open URL as NaCl Descriptor Test</title> | 6 <title>SRPC Open URL as NaCl Descriptor Test</title> |
7 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> | 7 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> |
8 <META HTTP-EQUIV="Expires" CONTENT="-1" /> | 8 <META HTTP-EQUIV="Expires" CONTENT="-1" /> |
9 <style type="text/css"> | 9 <style type="text/css"> |
10 pre.notrun { background-color: skyblue } | 10 pre.notrun { background-color: skyblue } |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 </p> | 193 </p> |
194 | 194 |
195 <div id="status">NO-STATUS</div> | 195 <div id="status">NO-STATUS</div> |
196 | 196 |
197 <embed type="application/x-nacl-srpc" id="nacl_server" name="nacl_module" | 197 <embed type="application/x-nacl-srpc" id="nacl_server" name="nacl_module" |
198 width="0" height="0" src="cat.nexe" /> | 198 width="0" height="0" src="cat.nexe" /> |
199 | 199 |
200 <script type="text/javascript" src="nacl_js_lib.js"></script> | 200 <script type="text/javascript" src="nacl_js_lib.js"></script> |
201 <script type="text/javascript"> | 201 <script type="text/javascript"> |
202 //<![CDATA[ | 202 //<![CDATA[ |
203 var nacllib = new NaclLib('nacl_module', 'status', 100); | 203 var nacllib = new NaclLib('nacl_module', 'status', 500); |
204 | 204 |
205 // Returns true ("wait") to the NaclLib test driver until all of the | 205 // Returns true ("wait") to the NaclLib test driver until all of the |
206 // tests are complete. I.e., either all of the file load callbacks have | 206 // tests are complete. I.e., either all of the file load callbacks have |
207 // completed successfully or an error has occurred. | 207 // completed successfully or an error has occurred. |
208 nacllib.wait = function() { | 208 nacllib.wait = function() { |
209 if ('' == testState) { | 209 if ('' == testState) { |
210 // The module has successfully loaded and this code is being | 210 // The module has successfully loaded and this code is being |
211 // called for the first time. Get set up and start testing. | 211 // called for the first time. Get set up and start testing. |
212 testState = 'initializing'; | 212 testState = 'initializing'; |
213 | 213 |
(...skipping 28 matching lines...) Expand all Loading... |
242 return 'Generic test failure.'; | 242 return 'Generic test failure.'; |
243 } else { | 243 } else { |
244 document.cookie = 'status=OK'; | 244 document.cookie = 'status=OK'; |
245 return ''; | 245 return ''; |
246 } | 246 } |
247 } | 247 } |
248 //]]> | 248 //]]> |
249 </script> | 249 </script> |
250 </body> | 250 </body> |
251 </html> | 251 </html> |
OLD | NEW |