Index: chrome/renderer/resources/extension_apitest.js |
diff --git a/chrome/renderer/resources/extension_apitest.js b/chrome/renderer/resources/extension_apitest.js |
index d587f7248f5fd3775076f41b4c3bf028b877cb77..62c5ab9fd61bd2652d75109da94f1c524aa83113 100644 |
--- a/chrome/renderer/resources/extension_apitest.js |
+++ b/chrome/renderer/resources/extension_apitest.js |
@@ -22,7 +22,7 @@ var chrome = chrome || {}; |
// Helper function to get around the fact that function names in javascript |
// are read-only, and you can't assign one to anonymous functions. |
function testName(test) { |
- return test.name || test.generatedName; |
+ return test ? (test.name || test.generatedName) : "(no test)"; |
} |
chrome.test.fail = function(message) { |