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); |