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

Unified Diff: ppapi/native_client/tests/ppapi_browser/bad/ppapi_bad.js

Issue 16296005: Split pnacl and nacl mime types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: After (hopefully) last rebase. Created 7 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/native_client/tests/ppapi_browser/bad/ppapi_bad.js
diff --git a/ppapi/native_client/tests/ppapi_browser/bad/ppapi_bad.js b/ppapi/native_client/tests/ppapi_browser/bad/ppapi_bad.js
index 9501c949413a0332df543f48a75d75e4cdce3315..4ab712b63b112c80d77e446b8419db3c9eec35ba 100644
--- a/ppapi/native_client/tests/ppapi_browser/bad/ppapi_bad.js
+++ b/ppapi/native_client/tests/ppapi_browser/bad/ppapi_bad.js
@@ -1,13 +1,18 @@
+// Copyright (c) 2013 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.
+
// Helper routines for generating bad load tests.
// Webpage must have an 'embeds' div for injecting NaCl modules.
// Depends on nacltest.js.
-function createModule(id, src) {
+function createModule(id, src, type) {
return createNaClEmbed({
id: id,
src: src,
width: 100,
- height: 20
+ height: 20,
+ type: type
});
}
@@ -22,9 +27,9 @@ function removeModule(module) {
}
-function badLoadTest(tester, id, src, error_string) {
+function badLoadTest(tester, id, src, type, error_string) {
tester.addAsyncTest(id, function(test){
- var module = createModule(id, src);
+ var module = createModule(id, src, type);
test.expectEvent(module, 'load', function(e) {
removeModule(module);

Powered by Google App Engine
This is Rietveld 408576698