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

Unified Diff: chrome/test/data/nacl/manifest_file/irt_manifest_file_fail_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, 7 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: chrome/test/data/nacl/manifest_file/irt_manifest_file_fail_test.html
diff --git a/chrome/test/data/nacl/manifest_file/irt_manifest_file_test.html b/chrome/test/data/nacl/manifest_file/irt_manifest_file_fail_test.html
similarity index 81%
copy from chrome/test/data/nacl/manifest_file/irt_manifest_file_test.html
copy to chrome/test/data/nacl/manifest_file/irt_manifest_file_fail_test.html
index be9df7111c0c038a55c43894af7b8492979e586e..03495e2cee8a75c26c9324556e0415f3161c816b 100644
--- a/chrome/test/data/nacl/manifest_file/irt_manifest_file_test.html
+++ b/chrome/test/data/nacl/manifest_file/irt_manifest_file_fail_test.html
@@ -10,11 +10,11 @@
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<script type="text/javascript" src="nacltest.js"></script>
- <title>Native Client Open Resource Before PPAPI Test</title>
+ <title>Native Client failing Open Resource Before PPAPI Test</title>
</head>
<body>
- <h1>Native Client Open Resource Before PPAPI Test</h1>
+ <h1>Native Client failing Open Resource Before PPAPI Test</h1>
<script type="text/javascript">
//<![CDATA[
@@ -31,7 +31,7 @@ var mime = 'application/x-nacl';
if (getTestArguments()['pnacl'] !== undefined) {
mime = 'application/x-pnacl';
}
-var embed = createModule('naclModule', 'irt_manifest_file.nmf', mime);
+var embed = createModule('naclModule', 'irt_manifest_file_fail.nmf', mime);
embed.basic_tests ='2';
embed.stress_tests = '0';
document.body.appendChild(embed);
@@ -40,8 +40,7 @@ function setupTests(tester, plugin) {
tester.addAsyncTest('Test_00_Init', function(status) {
plugin.addEventListener('message', function(message_event) {
this.removeEventListener('message', arguments.callee, false);
- var golden = 'File Contents:\nTest File Content';
- status.assertEqual(message_event.data, golden);
+ status.assertEqual(message_event.data, 2); // ENOENT should be returned.
status.pass();
}, false);
plugin.postMessage('hello');

Powered by Google App Engine
This is Rietveld 408576698