| Index: ppapi/native_client/tests/ppapi_example_font/ppapi_example_font.html
|
| ===================================================================
|
| --- ppapi/native_client/tests/ppapi_example_font/ppapi_example_font.html (revision 0)
|
| +++ ppapi/native_client/tests/ppapi_example_font/ppapi_example_font.html (revision 0)
|
| @@ -0,0 +1,49 @@
|
| +<!--
|
| + 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 Strict//EN"
|
| + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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 Font Example</title>
|
| + </head>
|
| +
|
| + <body>
|
| + <h1>Native Client PPAPI Font Example</h1>
|
| + <div>
|
| + <embed id="naclModule"
|
| + name="naclModule"
|
| + width=400 height=400
|
| + src="ppapi_example_font.nmf"
|
| + basic_tests="1"
|
| + stress_tests="0"
|
| + style="background-color:gray"
|
| + type="application/x-nacl" />
|
| + </div>
|
| + <p>The example works if you see (a) large Arabic script and (b) 4 font
|
| + samples (default, serif, sans serif, and monospace)
|
| +
|
| + <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>
|
|
|