Chromium Code Reviews| Index: functional/browser.py |
| =================================================================== |
| --- functional/browser.py (revision 85822) |
| +++ functional/browser.py (working copy) |
| @@ -229,6 +229,18 @@ |
| self.assertNotEqual(shared_pid, |
| self.GetBrowserInfo()['windows'][0]['tabs'][0]['renderer_pid']) |
| + def testPopupSharesSameProcessInIncognito(self): |
|
Nirnimesh
2011/06/08 01:34:33
Move this test right after testPopupSharesProcess
|
| + """Verify parent incognito and popup share same process id""" |
| + self.RunCommand(pyauto.IDC_NEW_INCOGNITO_WINDOW) |
| + file_url = self.GetFileURLForDataPath('popup_blocker', |
| + 'popup-window-open.html') |
| + self.NavigateToURL(file_url, 1, 0) |
| + self.UnblockAndLaunchBlockedPopup(0, tab_index=0, windex=1) |
| + self.assertEquals( |
| + self.GetBrowserInfo()['windows'][1]['tabs'][0]['renderer_pid'], |
| + self.GetBrowserInfo()['windows'][2]['tabs'][0]['renderer_pid'], |
| + msg='Incognito window and popup are not sharing a process id.') |
| + |
| if __name__ == '__main__': |
| pyauto_functional.Main() |