| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 <html> |
| 4 <!-- Copyright 2011 Google Inc. All rights reserved. --> |
| 5 <head> |
| 6 <title> Browser Test Page </title> |
| 7 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> |
| 8 <META HTTP-EQUIV="Expires" CONTENT="-1" /> |
| 9 <script type="text/javascript"> |
| 10 //<![CDATA[ |
| 11 // test_table descriptor consists of a number of rows. |
| 12 // Each row contains a two element array. |
| 13 // The first element is a "class" of test, which becomes a column heading. |
| 14 // The second element is a list of test descriptors. |
| 15 // Each test descriptor is a two element array containing a description and a |
| 16 // link. |
| 17 var test_table_descriptor = [ |
| 18 ['PPAPI Nexe Examples', |
| 19 [ |
| 20 ['scripting', 'basic_object.html'], |
| 21 ['events', 'ppapi_example_events.html'], |
| 22 ['audio', 'ppapi_example_audio.html'], |
| 23 ['url loading', 'ppapi_geturl.html'], |
| 24 ['spinning earth - C', 'earth_c.html'], |
| 25 ['spinning earth - C++', 'earth_cc.html'], |
| 26 ['progress events', 'ppapi_progress_events.html'], |
| 27 ['bad', 'ppapi_bad.html'], |
| 28 ['crash', 'ppapi_crash.html'], |
| 29 ['gles book', 'ppapi_gles_book.html'] |
| 30 ] |
| 31 ], |
| 32 ['PPAPI Proxy Tests', |
| 33 [ |
| 34 ['PPB_Core', 'ppapi_ppb_core.html'], |
| 35 ['PPB_Graphics2D', 'ppapi_ppb_graphics2d.html'], |
| 36 ['PPB_Graphics3D', 'ppapi_ppb_graphics3d.html'], |
| 37 ['PPB_FileSystem', 'ppapi_ppb_file_system.html'], |
| 38 ['PPB_ImageData', 'ppapi_ppb_image_data.html'], |
| 39 ['PPB_Instance', 'ppapi_ppb_instance.html'], |
| 40 ['PPB_Memory', 'ppapi_ppb_memory.html'], |
| 41 ['PPB_Messaging/PPP_Messaging', 'ppapi_messaging.html'], |
| 42 ['PPB_Scrollbar', 'ppapi_ppb_scrollbar.html'], |
| 43 ['PPB_URLRequestInfo', 'ppapi_ppb_url_request_info.html'], |
| 44 ['PPP_Instance', 'ppapi_ppp_instance.html'] |
| 45 ] |
| 46 ], |
| 47 ['chrome/ppapi/{examples|tests}', |
| 48 [ |
| 49 ['examples 2d', 'ppapi_example_2d.html'], |
| 50 ['examples font', 'ppapi_example_font.html'], |
| 51 ['examples gles2', 'ppapi_example_gles2.html'], |
| 52 ['examples post_message', 'ppapi_example_post_message.html'], |
| 53 ['list/run all PPAPI tests', 'test_case.html?mode=nacl'], |
| 54 ['test Graphics2D', 'test_case.html?testcase=Graphics2D&mode=nacl'], |
| 55 ['test ImageData', 'test_case.html?testcase=ImageData&mode=nacl'], |
| 56 ['test Instance', 'test_case.html?testcase=Instance&mode=nacl'], |
| 57 ['test PaintAggregator', |
| 58 'test_case.html?testcase=PaintAggregator&mode=nacl'], |
| 59 ['test Scrollbar', 'test_case.html?testcase=Scrollbar&mode=nacl'], |
| 60 ] |
| 61 ] |
| 62 ]; |
| 63 |
| 64 var buildTable = function() { |
| 65 var num_test_classes = test_table_descriptor.length; |
| 66 var i; |
| 67 var table = '<table border="10" cellpadding="5%" summary="Tests"><tr>'; |
| 68 // Build the table heading row. |
| 69 for (i = 0; i < num_test_classes; ++i) { |
| 70 var test_class_descriptor = test_table_descriptor[i]; |
| 71 var heading = test_class_descriptor[0]; |
| 72 table += '<th>' + heading + '</th>'; |
| 73 } |
| 74 table += '</tr><tr>'; |
| 75 // Build the tests row as a set of nested tables. |
| 76 for (i = 0; i < num_test_classes; ++i) { |
| 77 var test_class_descriptor = test_table_descriptor[i]; |
| 78 var test_list = test_class_descriptor[1]; |
| 79 var num_tests = test_list.length; |
| 80 var j; |
| 81 table += '<td valign="top"><table summary="Individual tests">'; |
| 82 for (j = 0; j < num_tests; ++j) { |
| 83 var test_descriptor = test_list[j]; |
| 84 var test_name = test_descriptor[0]; |
| 85 var test_link = test_descriptor[1]; |
| 86 table += |
| 87 '<tr><td>' + |
| 88 '<button type="button" onclick="self.location=\'' + test_link + |
| 89 '\'"> Go </button> ' + |
| 90 test_name + |
| 91 '</td></tr>'; |
| 92 } |
| 93 table += '</table></td>'; |
| 94 } |
| 95 table += '</tr></table>'; |
| 96 // Install the table in the div element. |
| 97 var table_div_element = document.getElementById('table_div'); |
| 98 table_div_element.innerHTML = table; |
| 99 } |
| 100 //]]> |
| 101 </script> |
| 102 </head> |
| 103 <body onload="buildTable()"> |
| 104 <h1> Native Client Browser Examples and Tests </h1> |
| 105 <div id="table_div"> </div> |
| 106 </body> |
| 107 </html> |
| OLD | NEW |