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

Side by Side Diff: tests/manifest_file/srpc_manifest_file_test.html

Issue 7745047: Enable browser tests with glibc. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>SRPC Manifest File Service</title> 4 <title>SRPC Manifest File Service</title>
5 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> 5 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" />
6 <META HTTP-EQUIV="Expires" CONTENT="-1" /> 6 <META HTTP-EQUIV="Expires" CONTENT="-1" />
7 <script type="text/javascript" src="nacltest.js"></script> 7 <script type="text/javascript" src="nacltest.js"></script>
8 <script type="application/x-javascript"> 8 <script type="application/x-javascript">
9 //<![CDATA[ 9 //<![CDATA[
10 10
11 function testMethods(tester, server) { 11 function testMethods(tester, server) {
12 tester.addTest('namedump', function() { 12 tester.addTest('namedump', function() {
13 assertEqual('nbytes = 47\n' 13 assertEqual('nbytes = 47\n'
14 +'KernelService\n' 14 +'KernelService\n'
15 +'ManifestNameService\n' 15 +'ManifestNameService\n'
16 +'SecureRandom\n', 16 +'SecureRandom\n',
17 server.namedump()); 17 server.namedump());
18 }) 18 })
19 tester.addTest('manifest_test', function() { 19 tester.addTest('manifest_test', function() {
20 assertEqual('Manifest Contents:\nnmf says hello world\n', 20 var str = server.manifest_test();
21 server.manifest_test()); 21 assert(str.indexOf('Manifest Contents:\n') != -1,
22 '"Manifest Contents" not found in "' + str + '"')
23 assert(str.indexOf('nmf says hello world\n') != -1,
24 '"nmf says hello world" not found in "' + str + '"')
22 }) 25 })
23 } 26 }
24 27
25 //]]> 28 //]]>
26 </script> 29 </script>
27 </head> 30 </head>
28 <body> 31 <body>
29 <h1>Native Client ManifestFile Service</h1> 32 <h1>Native Client ManifestFile Service</h1>
30 NOTE: Set NACL_ENABLE_EXPERIMENTAL_JAVASCRIPT_APIS=1 to run this test. 33 NOTE: Set NACL_ENABLE_EXPERIMENTAL_JAVASCRIPT_APIS=1 to run this test.
31 34
(...skipping 12 matching lines...) Expand all
44 //<![CDATA[ 47 //<![CDATA[
45 var tester = new Tester(); 48 var tester = new Tester();
46 var server = $("nacl_server"); 49 var server = $("nacl_server");
47 testMethods(tester, server); 50 testMethods(tester, server);
48 tester.waitFor(server); 51 tester.waitFor(server);
49 tester.run(); 52 tester.run();
50 //]]> 53 //]]>
51 </script> 54 </script>
52 </body> 55 </body>
53 </html> 56 </html>
OLDNEW
« no previous file with comments | « tests/manifest_file/pm_pre_init_manifest_file_test.html ('k') | tests/manifest_file/test_file.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698