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

Unified Diff: tests/ppapi_proxy/basic_object.html

Issue 7292002: Remove plugin connection to PPAPI scriptable objects (var deprecated). Also (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 5 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/ppapi_proxy/basic_object.cc ('k') | tests/ppapi_proxy/basic_object.nmf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ppapi_proxy/basic_object.html
===================================================================
--- tests/ppapi_proxy/basic_object.html (revision 6005)
+++ tests/ppapi_proxy/basic_object.html (working copy)
@@ -1,150 +0,0 @@
-<!DOCTYPE html>
-<html>
-<!-- Copyright (c) 2010 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. -->
-<head>
- <title>PPAPI Runtime Feature Test</title>
- <meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />
- <meta HTTP-EQUIV="Expires" CONTENT="-1" />
- <script type="text/javascript" src="nacltest.js"></script>
-</head>
-<body>
-
-<script type="text/javascript">
-//<![CDATA[
-
-var kSampleInt = 1;
-var kSampleString = 'hello, world';
-var kSampleObject = new Array(10);
-
-
-function EnqueueTests(tester, naclModule, suffix) {
- // Test access to NaCl ppruntime objects from the browser.
- // Read a property that is not set.
- tester.addTest('browser_nacl_read_notset' + suffix, function() {
- assertEqual(naclModule.propertyUnset, undefined);
- });
-
- // Read a property that is set.
- tester.addTest('browser_nacl_read_set' + suffix, function() {
- assertEqual(naclModule.propNull, null);
- });
-
- // Write and read back an integer property.
- tester.addTest('browser_nacl_int_property' + suffix, function() {
- naclModule.propInt32 = 7;
- assertEqual(naclModule.propInt32, 7);
- naclModule.propInt32 = 11;
- assertEqual(naclModule.propInt32, 11);
- });
-
- // Read back the property.
- tester.addTest('browser_nacl_string_property' + suffix, function() {
- naclModule.propString = 'hello';
- assertEqual(naclModule.propString, 'hello');
- naclModule.propString = 'world';
- assertEqual(naclModule.propString, 'world');
- });
-
- // Broken, throws an exception.
- // TODO(ncbray) fix or remove.
- /*
- tester.addTest('browser_nacl_object_double_deref' + suffix, function() {
- naclModule.propObject = kSampleObject;
- var temp1 = naclModule.propObject;
- var temp2 = naclModule.propObject;
- // The second deref has throw an exception, in the past.
- });
- */
-
- // Broken, corrupted object returned.
- // TODO(ncbray) fix or remove.
- // http://code.google.com/p/nativeclient/issues/detail?id=1367
- /*
- // Write and read back an object property.
- tester.addTest('browser_nacl_object_write' + suffix, function() {
- naclModule.propObject = kSampleObject;
- assertEqual(naclModule.propObject, kSampleObject);
- });
- */
-
- // Argument passing and return.
- tester.addTest('browser_nacl_int_argret' + suffix, function() {
- assertEqual(naclModule.methodInt32(13), 13);
- });
-
- tester.addTest('browser_nacl_string_argret' + suffix, function() {
- assertEqual(naclModule.methodString('bogus'), 'bogus');
- });
-
- // Broken, corrupted object returned.
- // TODO(ncbray) fix or remove.
- // http://code.google.com/p/nativeclient/issues/detail?id=1367
- /*
- tester.addTest('browser_nacl_object_argret' + suffix, function() {
- assertEqual(naclModule.methodObject(kSampleObject), kSampleObject);
- });
- */
-
- // Multi-argument passing and return.
- tester.addTest('browser_nacl_int_2_argret' + suffix, function() {
- assertEqual(naclModule.methodInt32With2Args(kSampleInt, kSampleInt),
- kSampleInt);
- });
-
- tester.addTest('browser_nacl_string_2_argret' + suffix, function() {
- assertEqual(naclModule.methodStringWith2Args(kSampleString, kSampleString),
- kSampleString);
- });
-
- // Broken, corrupted object returned.
- // TODO(ncbray) fix or remove.
- // http://code.google.com/p/nativeclient/issues/detail?id=1367
- /*
- tester.addTest('browser_nacl_object_2_argret' + suffix, function() {
- assertEqual(naclModule.methodObjectWith2Args(kSampleObject, kSampleObject),
- kSampleObject);
- });
- */
-
- // Call a method with 0 args (tests issue:
- // http://code.google.com/p/nativeclient/issues/detail?id=891)
- tester.addTest('browser_nacl_0_argret' + suffix, function() {
- assertEqual(naclModule.helloWorld(), 'hello, world');
- });
-
- tester.addTest('nacl_browser_window_location_prop', function() {
- assertEqual(naclModule.windowLocation(window), true);
- });
-}
-
-
-//]]>
-</script>
-
-<embed id="basic_object"
- name="naclModule"
- width=0 height=0
- src="basic_object.nmf"
- type="application/x-nacl" />
-</body>
-
-<embed id="user_main"
- name="naclModule"
- width=0 height=0
- src="user_main.nmf"
- type="application/x-nacl" />
-</body>
-
-<script type="text/javascript">
- //<![CDATA[
- var tester = new Tester();
- EnqueueTests(tester, $('basic_object'), '');
- // Same interface but with a user-supplied main() entry point.
- EnqueueTests(tester, $('user_main'), '_user');
- tester.waitFor($('basic_object'), $('user_main'));
- tester.run();
- //]]>
-</script>
-</html>
« no previous file with comments | « tests/ppapi_proxy/basic_object.cc ('k') | tests/ppapi_proxy/basic_object.nmf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698