| Index: chrome/test/webdriver/test/chromedriver_tests.py
|
| diff --git a/chrome/test/webdriver/test/chromedriver_tests.py b/chrome/test/webdriver/test/chromedriver_tests.py
|
| index 8dd5703f3695c4cf0bec91517269a57528ce3633..ae9e0a0496d975e8cb4278bac2954187533089ab 100644
|
| --- a/chrome/test/webdriver/test/chromedriver_tests.py
|
| +++ b/chrome/test/webdriver/test/chromedriver_tests.py
|
| @@ -1068,6 +1068,8 @@ class ExtensionTest(ChromeDriverTest):
|
| '/infobar_browser_action_extension'
|
| PAGE_ACTION_EXTENSION = test_paths.TEST_DATA_PATH + \
|
| '/page_action_extension'
|
| + APP_SHELL = test_paths.TEST_DATA_PATH + \
|
| + '/app_shell_extension'
|
|
|
| def testExtensionInstallAndUninstall(self):
|
| driver = self.GetNewDriver()
|
| @@ -1138,6 +1140,20 @@ class ExtensionTest(ChromeDriverTest):
|
| ext.click_page_action()
|
| self._testExtensionView(driver, ext.get_popup_handle(), ext)
|
|
|
| + def testAppShellView(self):
|
| + driver = self.GetNewDriver({'chrome.switches':
|
| + ['enable-experimental-extension-apis']})
|
| + ext = driver.install_extension(self.APP_SHELL)
|
| +
|
| + # Navigates to the new tab page to launch the app.
|
| + driver.get('chrome:newtab')
|
| + app = driver.find_element_by_xpath("//div[@title='App Shell']")
|
| + app.click()
|
| + def is_app_window_launched(driver):
|
| + return ext.get_app_shell_handle() is not None
|
| + WebDriverWait(driver, 10).until(is_app_window_launched)
|
| + self._testExtensionView(driver, ext.get_app_shell_handle(), ext)
|
| +
|
|
|
| class BadJSTest(ChromeDriverTest):
|
| """Tests that ensure sites with hacky JS don't break ChromeDriver."""
|
|
|