OLD | NEW |
(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>Native Client PPAPI Font Example</title> |
| 14 </head> |
| 15 |
| 16 <body> |
| 17 <h1>Native Client PPAPI Font Example</h1> |
| 18 <div> |
| 19 <embed id="naclModule" |
| 20 name="naclModule" |
| 21 width=400 height=400 |
| 22 src="ppapi_example_font.nmf" |
| 23 basic_tests="1" |
| 24 stress_tests="0" |
| 25 style="background-color:gray" |
| 26 type="application/x-nacl" /> |
| 27 </div> |
| 28 <p>The example works if you see (a) large Arabic script and (b) 4 font |
| 29 samples (default, serif, sans serif, and monospace) |
| 30 |
| 31 <script type="text/javascript"> |
| 32 //<![CDATA[ |
| 33 function setupTests(tester, plugin) { |
| 34 // The PPAPI font examples does all its work in DidChangeView, so we just |
| 35 // verify that it loaded successfully by inserting a dummy test. |
| 36 // This only tests that DidChangeView completed successfully; we have no |
| 37 // automated way of checking that it actually plotted the fonts. |
| 38 tester.addAsyncTest('DummyTestToEnsureThatModuleCompletedLoading', |
| 39 function(status) { status.pass(); }); |
| 40 } |
| 41 |
| 42 var tester = new Tester(); |
| 43 setupTests(tester, $('naclModule')); |
| 44 tester.waitFor($('naclModule')); |
| 45 tester.run(); |
| 46 //]]> |
| 47 </script> |
| 48 </body> |
| 49 </html> |
OLD | NEW |