| Index: ppapi/native_client/tests/ppapi_browser/ppb_graphics3d/ppapi_ppb_graphics3d.html
|
| ===================================================================
|
| --- ppapi/native_client/tests/ppapi_browser/ppb_graphics3d/ppapi_ppb_graphics3d.html (revision 0)
|
| +++ ppapi/native_client/tests/ppapi_browser/ppb_graphics3d/ppapi_ppb_graphics3d.html (revision 0)
|
| @@ -0,0 +1,63 @@
|
| +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
| + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
| +<html>
|
| + <!-- Copyright (c) 2011 Google Inc. All rights reserved. -->
|
| + <head>
|
| + <META HTTP-EQUIV="Pragma" CONTENT="no-cache" />
|
| + <META HTTP-EQUIV="Expires" CONTENT="-1" />
|
| + <script type="text/javascript" src="nacltest.js"></script>
|
| + <script type="application/x-javascript">
|
| +//<![CDATA[
|
| +function setupTests(tester, plugin) {
|
| + function testAndAssertStatus(test, name, status) {
|
| + test.expectEvent(plugin, 'message', function(message) {
|
| + test.assertEqual(message.data, name + ':' + status);
|
| + test.pass();
|
| + });
|
| + plugin.postMessage(name);
|
| + }
|
| +
|
| + tester.addAsyncTest('PPB_Graphics3D Interface', function(test) {
|
| + testAndAssertStatus(test, 'TestGraphics3DInterface', 'PASSED');
|
| + });
|
| + tester.addAsyncTest('PPB_OpenGLES2 Interface', function(test) {
|
| + testAndAssertStatus(test, 'TestOpenGLES2Interface', 'PASSED');
|
| + });
|
| + tester.addAsyncTest('PPB_Graphics3D::Create', function(test) {
|
| + testAndAssertStatus(test, 'TestCreate', 'PASSED');
|
| + });
|
| + tester.addAsyncTest('PPB_Graphics3D::IsGraphics3D', function(test) {
|
| + testAndAssertStatus(test, 'TestIsGraphics3D', 'PASSED');
|
| + });
|
| + tester.addAsyncTest('PPB_Graphics3D::SwapBuffers', function(test) {
|
| + testAndAssertStatus(test, 'TestSwapBuffers', 'PASSED');
|
| + });
|
| +}
|
| + //]]>
|
| + </script>
|
| + <title>PPAPI PPB_Graphics3D Test</title>
|
| + </head>
|
| + <body>
|
| + <h1>PPAPI PPB_Graphics3D Test</h1>
|
| + NOTE: requires --enable-pepper-testing --enable-accelerated-plugins
|
| + <br>
|
| + The rectangle below should fade from black to blue.
|
| + <br><br>
|
| + <tr>
|
| + <td>
|
| + <embed type="application/x-nacl" id="test_nexe"
|
| + name="nacl_module"
|
| + src="ppapi_ppb_graphics3d.nmf"
|
| + style="background-color:#FFFFFF"
|
| + width="320" height="200" />
|
| + <br>
|
| + <script type="text/javascript">
|
| + //<![CDATA[
|
| + var tester = new Tester();
|
| + setupTests(tester, $('test_nexe'));
|
| + tester.waitFor($('test_nexe'));
|
| + tester.run();
|
| + //]]>
|
| + </script>
|
| + </body>
|
| +</html>
|
|
|