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

Unified Diff: chrome/test/data/extensions/api_test/incognito/apis/background.html

Issue 3210007: Add support for a "split" incognito behavior for extensions. (Closed)
Patch Set: latest Created 10 years, 4 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: chrome/test/data/extensions/api_test/incognito/apis/background.html
diff --git a/chrome/test/data/extensions/api_test/incognito/apis/background.html b/chrome/test/data/extensions/api_test/incognito/apis/background.html
index 606f6b57595751b66315397791a6a0da2ca878d3..34d2f25d689ea1be069463475fccc9ce6fb3c8b7 100644
--- a/chrome/test/data/extensions/api_test/incognito/apis/background.html
+++ b/chrome/test/data/extensions/api_test/incognito/apis/background.html
@@ -76,8 +76,7 @@ chrome.test.runTests([
// Tests content script injection to verify that the script can tell its
// in incongnito.
function contentScriptTestIncognito() {
- // The property is undefined outside of content scripts.
- assertEq(undefined, chrome.extension.inIncognitoTab);
+ assertTrue(!chrome.extension.inIncognitoContext);
var testUrl = "http://localhost:1337/files/extensions/test_file.html";
@@ -85,7 +84,7 @@ chrome.test.runTests([
chrome.tabs.create({windowId: incognitoWindow.id, url: testUrl},
pass(function(tab) {
chrome.tabs.executeScript(tab.id,
- {code: 'document.title = chrome.extension.inIncognitoTab'},
+ {code: 'document.title = chrome.extension.inIncognitoContext'},
pass(function() {
assertEq(undefined, chrome.extension.lastError);
chrome.tabs.get(tab.id, pass(function(tab) {
@@ -98,7 +97,7 @@ chrome.test.runTests([
chrome.tabs.create({windowId: normalWindow.id, url: testUrl},
pass(function(tab) {
chrome.tabs.executeScript(tab.id,
- {code: 'document.title = chrome.extension.inIncognitoTab'},
+ {code: 'document.title = chrome.extension.inIncognitoContext'},
pass(function() {
assertEq(undefined, chrome.extension.lastError);
chrome.tabs.get(tab.id, pass(function(tab) {
« no previous file with comments | « chrome/renderer/user_script_slave.cc ('k') | chrome/test/data/extensions/api_test/incognito/split/background.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698