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

Side by Side Diff: chrome/test/data/nacl/manifest_file/irt_manifest_file_test.html

Issue 303683005: Add failure case for manifest file testing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 <!-- 1 <!--
2 Copyright 2014 The Chromium Authors. All rights reserved. 2 Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can 3 Use of this source code is governed by a BSD-style license that can
4 be found in the LICENSE file. 4 be found in the LICENSE file.
5 --> 5 -->
6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
7 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 7 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
8 <html> 8 <html>
9 <head> 9 <head>
10 <meta http-equiv="Pragma" content="no-cache" /> 10 <meta http-equiv="Pragma" content="no-cache" />
(...skipping 22 matching lines...) Expand all
33 } 33 }
34 var embed = createModule('naclModule', 'irt_manifest_file.nmf', mime); 34 var embed = createModule('naclModule', 'irt_manifest_file.nmf', mime);
35 embed.basic_tests ='2'; 35 embed.basic_tests ='2';
36 embed.stress_tests = '0'; 36 embed.stress_tests = '0';
37 document.body.appendChild(embed); 37 document.body.appendChild(embed);
38 38
39 function setupTests(tester, plugin) { 39 function setupTests(tester, plugin) {
40 tester.addAsyncTest('Test_00_Init', function(status) { 40 tester.addAsyncTest('Test_00_Init', function(status) {
41 plugin.addEventListener('message', function(message_event) { 41 plugin.addEventListener('message', function(message_event) {
42 this.removeEventListener('message', arguments.callee, false); 42 this.removeEventListener('message', arguments.callee, false);
43 var golden = 'File Contents:\nTest File Content'; 43 // When a test succeeds, 'Pass' is returned. We have now three test cases.
44 var golden = ['Pass', 'Pass', 'Pass'];
44 status.assertEqual(message_event.data, golden); 45 status.assertEqual(message_event.data, golden);
45 status.pass(); 46 status.pass();
46 }, false); 47 }, false);
47 plugin.postMessage('hello'); 48 plugin.postMessage('hello');
48 }); 49 });
49 } 50 }
50 51
51 var tester = new Tester(); 52 var tester = new Tester();
52 setupTests(tester, $('naclModule')); 53 setupTests(tester, $('naclModule'));
53 tester.waitFor($('naclModule')); 54 tester.waitFor($('naclModule'));
54 tester.run(); 55 tester.run();
55 //]]> 56 //]]>
56 </script> 57 </script>
57 </body> 58 </body>
58 </html> 59 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/nacl/manifest_file/irt_manifest_file_test.cc ('k') | chrome/test/data/nacl/nacl_test_data.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698