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

Unified Diff: chrome/test/webdriver/test/chromedriver_tests.py

Issue 10854026: Added webdriver support for App v2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a comment. Created 8 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
« no previous file with comments | « chrome/test/webdriver/test/chromedriver.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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."""
« no previous file with comments | « chrome/test/webdriver/test/chromedriver.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698