| 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..ccad493f203001a1a3e9b7a5805e18b0b385085a 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 to and " +
|
| + "from 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));
|
| + }));
|
| }
|
| ]);
|
| });
|
|
|