Index: ppapi/native_client/tests/ppapi_example_gles2/ppapi_example_gles2.html |
=================================================================== |
--- ppapi/native_client/tests/ppapi_example_gles2/ppapi_example_gles2.html (revision 0) |
+++ ppapi/native_client/tests/ppapi_example_gles2/ppapi_example_gles2.html (revision 0) |
@@ -0,0 +1,51 @@ |
+<!-- |
+ Copyright 2011 The Native Client Authors. All rights reserved. |
+ Use of this source code is governed by a BSD-style license that can |
+ be found in the LICENSE file. |
+--> |
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
+<html> |
+ <head> |
+ <meta http-equiv="Pragma" content="no-cache" /> |
+ <meta http-equiv="Expires" content="-1" /> |
+ <script type="text/javascript" src="nacltest.js"></script> |
+ <title>Native Client PPAPI Graphics3D (OpenGL ES)</title> |
+ </head> |
+ |
+ <body> |
+ <h1>Native Client PPAPI Graphics3D (OpenGL ES)</h1> |
+ <div> |
+ <embed id="naclModule" |
+ name="naclModule" |
+ width=400 height=400 |
+ src="ppapi_example_gles2.nmf" |
+ basic_tests="1" |
+ stress_tests="0" |
+ style="background-color:gray" |
+ type="application/x-nacl" /> |
+ </div> |
+ <p>The example works if you see a square flickering between red and |
+ blue above. Note that the automated test only verifies that the |
+ NaCl module loaded. It cannot and does not verify that the visual |
+ output is correct. |
+ |
+ <script type="text/javascript"> |
+ //<![CDATA[ |
+function setupTests(tester, plugin) { |
+ // The PPAPI font examples does all its work in DidChangeView, so we just |
+ // verify that it loaded successfully by inserting a dummy test. |
+ // This only tests that DidChangeView completed successfully; we have no |
+ // automated way of checking that it actually plotted the fonts. |
+ tester.addAsyncTest('DummyTestToEnsureThatModuleCompletedLoading', |
+ function(status) { status.pass(); }); |
+} |
+ |
+var tester = new Tester(); |
+setupTests(tester, $('naclModule')); |
+tester.waitFor($('naclModule')); |
+tester.run(); |
+ //]]> |
+ </script> |
+ </body> |
+</html> |