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

Unified Diff: tests/prebuilt/x64/npapi_hw.html

Issue 6899031: Remove the obsolete prebuilt infrastructure files and disable multiarch. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 9 years, 8 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
« no previous file with comments | « tests/prebuilt/x64/nacl_js_lib.js ('k') | tests/prebuilt/x64/npapi_hw.nexe » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/prebuilt/x64/npapi_hw.html
===================================================================
--- tests/prebuilt/x64/npapi_hw.html (revision 4988)
+++ tests/prebuilt/x64/npapi_hw.html (working copy)
@@ -1,95 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>NPAPI Simple Plug-in</title>
- <META HTTP-EQUIV="Pragma" CONTENT="no-cache" />
- <META HTTP-EQUIV="Expires" CONTENT="-1" />
-</head>
-<body onload="nacllib.waitForModulesAndRunTests();"
- onunload="nacllib.cleanUp();" >
-
-<script type="text/javascript">
-//<![CDATA[
-function fortytwo() {
- try {
- alert(document.getElementById('pluginobj').fortytwo());
- } catch(e) {
- alert(e);
- }
-}
-
-function helloworld() {
- try {
- alert(document.getElementById('pluginobj').helloworld());
- } catch(e) {
- alert(e);
- }
-}
-//]]>
-</script>
-
-<h1>Native Client NPAPI Simple Plug-in</h1>
-<p>
- <button onclick="fortytwo()">Call fortytwo()</button>
- <button onclick="helloworld()">Call helloworld()</button>
-
- <embed name="nacl_module"
- id="pluginobj"
- width=0
- height=0
- src="npapi_hw.nexe"
- type="application/x-nacl" />
-</p>
-
-<p>If the plug-in is working correctly, a click on the "Call fortytwo" button
- should open a popup dialog containing <b>42</b> as value.</p>
-
-<p> Clicking on the "Call helloworld" button
- should open a popup dialog containing <b>hello, world</b> as value.</p>
-
-<h2>Status</h2>
-<div id=status>NO-STATUS</div>
-
-<script type="text/javascript" src="nacl_js_lib.js"></script>
-<script type="text/javascript">
-//<![CDATA[
-var nacllib = new NaclLib("nacl_module", "status", 500);
-
-// we use a custom detector for whether a module is ready or not
-nacllib.numModulesReady = function(modules) {
- var count = 0;
- for (var i = 0; i < modules.length; i++) {
- try {
- var foo = modules[i].fortytwo();
- count += 1;
- } catch(e) {
- // do nothing
- }
- }
- return count;
-};
-
-// we use a custom detector for whether a module is ready or not
-nacllib.areTherePluginProblems = function(modules) { return 0; };
-
-
-nacllib.test = function() {
- var plugin = document.getElementById("pluginobj");
- if ('42' != plugin.fortytwo()) {
- return "expected 42";
- }
-
- if ('hello, world.' != plugin.helloworld()) {
- return "expected 'hello, world.'";
- }
-
- document.cookie = 'status=OK';
-
- return "";
-};
-
-//]]>
-</script>
-
-</body>
-</html>
« no previous file with comments | « tests/prebuilt/x64/nacl_js_lib.js ('k') | tests/prebuilt/x64/npapi_hw.nexe » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698