Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: ppapi/native_client/tests/ppapi_gles_book/ppapi_gles_book.html

Issue 7740013: Cloning a bunch of stuff from the native_client repository at r6528 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!--
2 Copyright 2011 The Native Client Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can
4 be found in the LICENSE file.
5 -->
6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
7 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
8 <html>
9 <head>
10 <meta http-equiv="Pragma" content="no-cache" />
11 <meta http-equiv="Expires" content="-1" />
12 <script type="text/javascript" src="nacltest.js"></script>
13 <title>PPAPI OpenGL ES Book Examples</title>
14 </head>
15
16 <body>
17 <h1>PPAPI OpenGL ES Book Examples</h1>
18 <table style="border-spacing: 20pt;" summary="List of GLES book tests">
19 <tr style="vertical-align: top;">
20 <td>
21 <h2>Examples available and expected output</h2>
22 <p><a href="?manifest=ppapi_gles_book_hello_triangle.nmf">
23 hello_triangle</a>
24 Red triangle</p>
25 <p><a href="?manifest=ppapi_gles_book_mip_map_2d.nmf">mip_map_2d</a>
26 Two red/blue chess board-patterned planes</p>
27 <p><a href="?manifest=ppapi_gles_book_simple_texture_2d.nmf">
28 simple_texture_2d</a>
29 2x2 matrix with red, green, blue, and yellow squares</p>
30 <p><a href="?manifest=ppapi_gles_book_simple_texture_cubemap.nmf">
31 simple_texture_cubemap</a>
32 Ball with blue, red, yellow, and green patches; purple in the
33 center.</p>
34 <p><a href="?manifest=ppapi_gles_book_simple_vertex_shader.nmf">
35 simple_vertex_shader</a>
36 Rotating red square</p>
37 <p><a href="?manifest=ppapi_gles_book_stencil_test.nmf">stencil_test</a>
38 EXPECTED OUTPUT UNKNOWN</p>
39 <p><a href="?manifest=ppapi_gles_book_texture_wrap.nmf">texture_wrap</a>
40 Three blue/red patterns</p>
41 <h2>Troubleshooting</h2>
42 <p>Make sure you start Chrome with
43 <tt>--enable-accelerated-plugins</tt>.</p>
44 <p>Check the JavaScript console.</p>
45 </td>
46 <td>
47 <div id="attach" style="background-image:
48 url(http://www.google.com/intl/en_ALL/images/logo.gif);
49 background-repeat:repeat"></div>
50 </td>
51 </tr>
52 </table>
53
54 <script type="text/javascript">
55 //<![CDATA[
56 function ExtractSearchParameter(name) {
57 var nameIndex = location.search.indexOf(name + '=');
58 if (nameIndex != -1) {
59 var value = location.search.substring(nameIndex + name.length + 1);
60 var endIndex = value.indexOf('&');
61 if (endIndex != -1)
62 value = value.substring(0, endIndex);
63 return value;
64 }
65 return '';
66 }
67
68 function setupTests(tester, plugin) {
69 // This template is built for tests where we only need to (or can)
70 // verify that the nexe loaded successfully. We do this by inserting
71 // following dummy test.
72 // This only tests that loading and any start-up testing (typically
73 // within DidChangeView) returned success; there is no
74 // automated way of checking that it did as intended beyond that.
75 tester.addAsyncTest('DummyTestToEnsureLoadingComplete_' + manifest,
76 function(status) { status.pass(); });
77 }
78
79 var manifest = ExtractSearchParameter('manifest');
80 if (!manifest) manifest = 'ppapi_gles_book_hello_triangle.nmf';
81 document.title = 'Test ' + manifest;
82
83 var node = document.createElement('div');
84 node.innerHTML = '<embed id="naclModule" ' +
85 'name="naclModule" ' +
86 'width=400 height=400 ' +
87 'src="' + manifest + '" ' +
88 'basic_tests="1" ' +
89 'stress_tests="0" ' +
90 'type="application/x-nacl" ' +
91 ' />';
92 document.getElementById('attach').appendChild(node);
93
94 var tester = new Tester();
95 setupTests(tester, $('naclModule'));
96 tester.waitFor($('naclModule'));
97 tester.run();
98 //]]>
99 </script>
100 </body>
101 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698