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

Unified Diff: ppapi/native_client/tests/nacl_browser/nameservice/pm_nameservice_test.html

Issue 126803003: Port nameservice test from nacl_integration to browser_tests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: DEPS Created 6 years, 11 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 | « ppapi/native_client/tests/nacl_browser/nameservice/pm_nameservice_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/tests/nacl_browser/nameservice/pm_nameservice_test.html
diff --git a/ppapi/native_client/tests/nacl_browser/nameservice/pm_nameservice_test.html b/ppapi/native_client/tests/nacl_browser/nameservice/pm_nameservice_test.html
deleted file mode 100644
index 3d376ab26d8eac065b95f456b0e0f53df58cdda2..0000000000000000000000000000000000000000
--- a/ppapi/native_client/tests/nacl_browser/nameservice/pm_nameservice_test.html
+++ /dev/null
@@ -1,79 +0,0 @@
-<!--
- Copyright (c) 2011 The Chromium 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 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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 Post Message Name Service Test</title>
- </head>
-
- <body>
- <h1>Native Client Post Message Name Service Test</h1>
- <div>
- <embed id="naclModule"
- name="naclModule"
- width=400 height=400
- src="pm_nameservice_test.nmf"
- basic_tests="2"
- stress_tests="0"
- style="background-color:gray"
- type="application/x-nacl" />
- </div>
-
- <script type="text/javascript">
- //<![CDATA[
-function setupTests(tester, plugin) {
- tester.addAsyncTest('TestInit', function(status) {
- plugin.addEventListener('message', function(message_event) {
- this.removeEventListener('message', arguments.callee, false);
- status.assertEqual(message_event.data,
- 'NaClSrpcClientCtor succeeded\n');
- status.pass();
- }, false);
- plugin.postMessage('init');
- });
- tester.addAsyncTest('TestNameService', function(status) {
- plugin.addEventListener('message', function(message_event) {
- this.removeEventListener('message', arguments.callee, false);
- status.assertEqual(message_event.data,
- 'nbytes = 47\n'
- +'KernelService\n'
- +'ManifestNameService\n'
- +'SecureRandom\n');
- status.pass();
- }, false);
- plugin.postMessage('nameservice');
- });
- tester.addAsyncTest('TestRng', function(status) {
- plugin.addEventListener('message', function(message_event) {
- this.removeEventListener('message', arguments.callee, false);
- // alert(message_event.data);
- status.pass();
- }, false);
- plugin.postMessage('rng');
- });
- tester.addAsyncTest('TestManifest', function(status) {
- plugin.addEventListener('message', function(message_event) {
- this.removeEventListener('message', arguments.callee, false);
- status.assertEqual(message_event.data,
- 'ManifestTest: basic connectivity ok\n');
- status.pass();
- }, false);
- plugin.postMessage('manifest_test');
- });
-}
-
-var tester = new Tester();
-setupTests(tester, $('naclModule'));
-tester.waitFor($('naclModule'));
-tester.run();
- //]]>
- </script>
- </body>
-</html>
« no previous file with comments | « ppapi/native_client/tests/nacl_browser/nameservice/pm_nameservice_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698