| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html> |
| <!-- Copyright 2011 Google Inc. All rights reserved. --> |
| <head> |
| <title> Browser Test Page </title> |
| <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> |
| <META HTTP-EQUIV="Expires" CONTENT="-1" /> |
| <script type="text/javascript"> |
| //<![CDATA[ |
| // test_table descriptor consists of a number of rows. |
| // Each row contains a two element array. |
| // The first element is a "class" of test, which becomes a column heading. |
| // The second element is a list of test descriptors. |
| // Each test descriptor is a two element array containing a description and a |
| // link. |
| var test_table_descriptor = [ |
| ['PPAPI Nexe Examples', |
| [ |
| ['scripting', 'basic_object.html'], |
| ['events', 'ppapi_example_events.html'], |
| ['audio', 'ppapi_example_audio.html'], |
| ['url loading', 'ppapi_geturl.html'], |
| ['spinning earth - C', 'earth_c.html'], |
| ['spinning earth - C++', 'earth_cc.html'], |
| ['progress events', 'ppapi_progress_events.html'], |
| ['bad', 'ppapi_bad.html'], |
| ['crash', 'ppapi_crash.html'], |
| ['gles book', 'ppapi_gles_book.html'] |
| ] |
| ], |
| ['PPAPI Proxy Tests', |
| [ |
| ['PPB_Core', 'ppapi_ppb_core.html'], |
| ['PPB_Graphics2D', 'ppapi_ppb_graphics2d.html'], |
| ['PPB_Graphics3D', 'ppapi_ppb_graphics3d.html'], |
| ['PPB_FileSystem', 'ppapi_ppb_file_system.html'], |
| ['PPB_ImageData', 'ppapi_ppb_image_data.html'], |
| ['PPB_Instance', 'ppapi_ppb_instance.html'], |
| ['PPB_Memory', 'ppapi_ppb_memory.html'], |
| ['PPB_Messaging/PPP_Messaging', 'ppapi_messaging.html'], |
| ['PPB_URLRequestInfo', 'ppapi_ppb_url_request_info.html'], |
| ['PPP_Instance', 'ppapi_ppp_instance.html'] |
| ] |
| ], |
| ['chrome/ppapi/{examples|tests}', |
| [ |
| ['examples 2d', 'ppapi_example_2d.html'], |
| ['examples font', 'ppapi_example_font.html'], |
| ['examples gles2', 'ppapi_example_gles2.html'], |
| ['examples post_message', 'ppapi_example_post_message.html'], |
| ['list/run all PPAPI tests', 'test_case.html?mode=nacl'], |
| ['test Graphics2D', 'test_case.html?testcase=Graphics2D&mode=nacl'], |
| ['test ImageData', 'test_case.html?testcase=ImageData&mode=nacl'], |
| ['test Instance', 'test_case.html?testcase=Instance&mode=nacl'], |
| ['test PaintAggregator', |
| 'test_case.html?testcase=PaintAggregator&mode=nacl'], |
| ] |
| ] |
| ]; |
| |
| var buildTable = function() { |
| var num_test_classes = test_table_descriptor.length; |
| var i; |
| var table = '<table border="10" cellpadding="5%" summary="Tests"><tr>'; |
| // Build the table heading row. |
| for (i = 0; i < num_test_classes; ++i) { |
| var test_class_descriptor = test_table_descriptor[i]; |
| var heading = test_class_descriptor[0]; |
| table += '<th>' + heading + '</th>'; |
| } |
| table += '</tr><tr>'; |
| // Build the tests row as a set of nested tables. |
| for (i = 0; i < num_test_classes; ++i) { |
| var test_class_descriptor = test_table_descriptor[i]; |
| var test_list = test_class_descriptor[1]; |
| var num_tests = test_list.length; |
| var j; |
| table += '<td valign="top"><table summary="Individual tests">'; |
| for (j = 0; j < num_tests; ++j) { |
| var test_descriptor = test_list[j]; |
| var test_name = test_descriptor[0]; |
| var test_link = test_descriptor[1]; |
| table += |
| '<tr><td>' + |
| '<button type="button" onclick="self.location=\'' + test_link + |
| '\'"> Go </button> ' + |
| test_name + |
| '</td></tr>'; |
| } |
| table += '</table></td>'; |
| } |
| table += '</tr></table>'; |
| // Install the table in the div element. |
| var table_div_element = document.getElementById('table_div'); |
| table_div_element.innerHTML = table; |
| } |
| //]]> |
| </script> |
| </head> |
| <body onload="buildTable()"> |
| <h1> Native Client Browser Examples and Tests </h1> |
| <div id="table_div"> </div> |
| </body> |
| </html> |