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

Unified Diff: chrome/test/data/extensions/api_test/sandboxed_pages/main.js

Issue 19783003: Rewrite ExtensionApiTest.SandboxedPages to catch exceptions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/sandboxed_pages/sandboxed.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/sandboxed_pages/main.js
diff --git a/chrome/test/data/extensions/api_test/sandboxed_pages/main.js b/chrome/test/data/extensions/api_test/sandboxed_pages/main.js
index a313b114f9f89daf6bcc68ae6b141a370d21a289..441eb6b7856f60c9f0606e665394c24721d5771a 100644
--- a/chrome/test/data/extensions/api_test/sandboxed_pages/main.js
+++ b/chrome/test/data/extensions/api_test/sandboxed_pages/main.js
@@ -10,7 +10,11 @@ onmessage = function(event) {
chrome.test.assertEq(undefined, event.data);
// And we can't read theirs.
- chrome.test.assertEq(undefined, sandboxedWindow.secret);
+ sandboxedWindowSecret = undefined;
+ try {
+ sandboxedWindowSecret = sandboxedWindow.secret;
+ } catch (e) {}
+ chrome.test.assertEq(undefined, sandboxedWindowSecret);
chrome.test.succeed();
};
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/sandboxed_pages/sandboxed.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698