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 f57523f4d3c14da66db994ba61785a45226cbd65..8f5d4c7eb3765295ae56dcbb0a5bfffa1ae33f1d 100644 |
--- a/chrome/test/data/extensions/api_test/incognito/apis/background.html |
+++ b/chrome/test/data/extensions/api_test/incognito/apis/background.html |
@@ -3,6 +3,7 @@ var normalWindow, normalTab; |
var incognitoWindow, incognitoTab; |
var pass = chrome.test.callbackPass; |
+var fail = chrome.test.callbackFail; |
var assertEq = chrome.test.assertEq; |
var assertTrue = chrome.test.assertTrue; |
@@ -107,6 +108,21 @@ chrome.test.getConfig(function(config) { |
})); |
})); |
})); |
+ }, |
+ |
+ // Tests that extensions can't move tabs between incognito and |
+ // non-incognito windows. |
+ function moveTabBetweenProfiles() { |
+ var errorMsg = "Tabs can only be moved between " + |
+ "windows in the same profile."; |
+ |
+ // Create a tab in the non-incognito window... |
+ chrome.tabs.create({windowId: normalWindow.id, url: 'about:blank'}, |
+ pass(function(tab) { |
+ // ... and then try to move it to the incognito window. |
+ chrome.tabs.move(tab.id, |
+ {windowId: incognitoWindow.id, index: 0}, fail(errorMsg)); |
+ })); |
} |
]); |
}); |