summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/nacl/bad/ppapi_bad.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/data/nacl/bad/ppapi_bad.js')
-rw-r--r--chrome/test/data/nacl/bad/ppapi_bad.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/test/data/nacl/bad/ppapi_bad.js b/chrome/test/data/nacl/bad/ppapi_bad.js
index bcd3fb0..8114cf8 100644
--- a/chrome/test/data/nacl/bad/ppapi_bad.js
+++ b/chrome/test/data/nacl/bad/ppapi_bad.js
@@ -37,7 +37,10 @@ function badLoadTest(tester, id, src, type, error_string) {
});
test.expectEvent(module, 'error', function(e) {
test.assertEqual(module.readyState, 4);
- test.assertEqual(module.lastError, error_string);
+ if (error_string instanceof RegExp)
+ test.assertRegexMatches(module.lastError, error_string);
+ else
+ test.assertEqual(module.lastError, error_string);
test.expectEvent(module, 'loadend', function(e) {
removeModule(module);
test.pass();