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

Unified Diff: ppapi/native_client/tests/nacl_browser/exit_status/pm_exit_status_test.html

Issue 10918152: Port nacl_integration exit_status test to browser_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Edits Created 8 years, 3 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/nacl_browser/exit_status/pm_exit_status_test.html
diff --git a/ppapi/native_client/tests/nacl_browser/exit_status/pm_exit_status_test.html b/ppapi/native_client/tests/nacl_browser/exit_status/pm_exit_status_test.html
deleted file mode 100644
index 3f3473e8f48ff55e779a771c6e00f7755a257600..0000000000000000000000000000000000000000
--- a/ppapi/native_client/tests/nacl_browser/exit_status/pm_exit_status_test.html
+++ /dev/null
@@ -1,64 +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 Exit Status Test</title>
- </head>
-
- <body>
- <h1>Native Client Exit Status Test</h1>
- <div>
- <embed id="naclModule"
- name="naclModule"
- width=400 height=400
- src="pm_exit_status_test.nmf"
- basic_tests="2"
- stress_tests="0"
- style="background-color:gray"
- type="application/x-nacl" />
- </div>
-
- <script type="text/javascript">
- //<![CDATA[
-var tester = new Tester($('body'));
-var args = getTestArguments({'expected_exit' :
- 'THIS TEST CANNOT RUN STANDALONE -- run using scons instead'});
-
-function setupTests(tester, plugin) {
- tester.addAsyncTest('StartTest', function(status) {
- plugin.addEventListener('message', status.wrap(function(message_event) {
- this.removeEventListener('message', arguments.callee, false);
- status.assertEqual(message_event.data,
- 'hello world');
- status.pass();
- }), true);
- plugin.postMessage('init');
- });
- tester.addAsyncTest('Exit0Test', function(status) {
- plugin.addEventListener('crash', status.wrap(function(crash_event) {
- this.removeEventListener('crash', arguments.callee, false);
- status.assertEqual($('naclModule').exitStatus,
- parseInt(args.expected_exit));
- status.pass();
- }), true);
- plugin.postMessage(args.trigger);
- });
-}
-
-var tester = new Tester();
-setupTests(tester, $('naclModule'));
-tester.waitFor($('naclModule'));
-tester.run();
-// otherwise trivially passes
- //]]>
- </script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698