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

Unified Diff: ppapi/native_client/tests/ppapi_example_font/ppapi_example_font.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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698