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 (c) 2011 Google Inc. All rights reserved. --> |
| 5 <head> |
| 6 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> |
| 7 <META HTTP-EQUIV="Expires" CONTENT="-1" /> |
| 8 <script type="text/javascript" src="nacltest.js"></script> |
| 9 <script type="application/x-javascript"> |
| 10 //<![CDATA[ |
| 11 function setupTests(tester, plugin) { |
| 12 function testAndAssertStatus(test, name, status) { |
| 13 test.expectEvent(plugin, 'message', function(message) { |
| 14 test.assertEqual(message.data, name + ':' + status); |
| 15 test.pass(); |
| 16 }); |
| 17 plugin.postMessage(name); |
| 18 } |
| 19 |
| 20 tester.addAsyncTest('PPB_Graphics3D Interface', function(test) { |
| 21 testAndAssertStatus(test, 'TestGraphics3DInterface', 'PASSED'); |
| 22 }); |
| 23 tester.addAsyncTest('PPB_OpenGLES2 Interface', function(test) { |
| 24 testAndAssertStatus(test, 'TestOpenGLES2Interface', 'PASSED'); |
| 25 }); |
| 26 tester.addAsyncTest('PPB_Graphics3D::Create', function(test) { |
| 27 testAndAssertStatus(test, 'TestCreate', 'PASSED'); |
| 28 }); |
| 29 tester.addAsyncTest('PPB_Graphics3D::IsGraphics3D', function(test) { |
| 30 testAndAssertStatus(test, 'TestIsGraphics3D', 'PASSED'); |
| 31 }); |
| 32 tester.addAsyncTest('PPB_Graphics3D::SwapBuffers', function(test) { |
| 33 testAndAssertStatus(test, 'TestSwapBuffers', 'PASSED'); |
| 34 }); |
| 35 } |
| 36 //]]> |
| 37 </script> |
| 38 <title>PPAPI PPB_Graphics3D Test</title> |
| 39 </head> |
| 40 <body> |
| 41 <h1>PPAPI PPB_Graphics3D Test</h1> |
| 42 NOTE: requires --enable-pepper-testing --enable-accelerated-plugins |
| 43 <br> |
| 44 The rectangle below should fade from black to blue. |
| 45 <br><br> |
| 46 <tr> |
| 47 <td> |
| 48 <embed type="application/x-nacl" id="test_nexe" |
| 49 name="nacl_module" |
| 50 src="ppapi_ppb_graphics3d.nmf" |
| 51 style="background-color:#FFFFFF" |
| 52 width="320" height="200" /> |
| 53 <br> |
| 54 <script type="text/javascript"> |
| 55 //<![CDATA[ |
| 56 var tester = new Tester(); |
| 57 setupTests(tester, $('test_nexe')); |
| 58 tester.waitFor($('test_nexe')); |
| 59 tester.run(); |
| 60 //]]> |
| 61 </script> |
| 62 </body> |
| 63 </html> |
OLD | NEW |