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

Unified Diff: chrome/test/functional/flash.py

Issue 10825006: Update pyauto tests to use content/test/data/plugin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/functional/PYAUTO_TESTS ('k') | chrome/test/functional/infobars.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/flash.py
diff --git a/chrome/test/functional/flash.py b/chrome/test/functional/flash.py
index 3dbd6a8ba35040c335db868f16fb52e41c9345d2..30e94f60f1954eb122fc9fb66f0944da8486bb51 100755
--- a/chrome/test/functional/flash.py
+++ b/chrome/test/functional/flash.py
@@ -43,13 +43,13 @@ class FlashTest(pyauto.PyUITest):
We merely check that the Flash process kicks in.
"""
- flash_url = self.GetFileURLForDataPath('plugin', 'flash.swf')
+ flash_url = self.GetFileURLForContentDataPath('plugin', 'flash.swf')
self.NavigateToURL(flash_url)
self._AssertFlashProcessPresent()
def testSingleFlashPluginProcess(self):
"""Verify there's only one Flash plugin process shared across all uses."""
- flash_url = self.GetFileURLForDataPath('plugin', 'flash.swf')
+ flash_url = self.GetFileURLForContentDataPath('plugin', 'flash.swf')
self.NavigateToURL(flash_url)
for _ in range(2):
self.AppendTab(pyauto.GURL(flash_url))
@@ -64,7 +64,7 @@ class FlashTest(pyauto.PyUITest):
def testFlashLoadsAfterKill(self):
"""Verify that Flash process reloads after crashing (or being killed)."""
- flash_url = self.GetFileURLForDataPath('plugin', 'flash.swf')
+ flash_url = self.GetFileURLForContentDataPath('plugin', 'flash.swf')
self.NavigateToURL(flash_url)
flash_process_id1 = self._GetFlashProcessesInfo()[0]['pid']
self.Kill(flash_process_id1)
@@ -96,7 +96,7 @@ class FlashTest(pyauto.PyUITest):
self.assertTrue(plugin['enabled'])
# Toggle plugin to disable flash.
self.DisablePlugin(plugin['path'])
- flash_url = self.GetFileURLForDataPath('plugin', 'flash.html')
+ flash_url = self.GetFileURLForContentDataPath('plugin', 'flash.html')
self.NavigateToURL(flash_url)
# Verify shockwave flash process not present.
self._AssertFlashProcessNotPresent()
@@ -105,14 +105,14 @@ class FlashTest(pyauto.PyUITest):
"""Verify we can play flash on an incognito window."""
# Verify no flash process is currently running
self._AssertFlashProcessNotPresent()
- flash_url = self.GetFileURLForDataPath('plugin', 'flash.swf')
+ flash_url = self.GetFileURLForContentDataPath('plugin', 'flash.swf')
self.RunCommand(pyauto.IDC_NEW_INCOGNITO_WINDOW)
self.NavigateToURL(flash_url, 1, 0)
self._AssertFlashProcessPresent()
def testFlashWithMultipleTabs(self):
"""Verify we can play flash in multiple tabs."""
- flash_url = self.GetFileURLForDataPath('plugin', 'flash.swf')
+ flash_url = self.GetFileURLForContentDataPath('plugin', 'flash.swf')
# Verify no flash process is currently running
self._AssertFlashProcessNotPresent()
self.NavigateToURL(flash_url)
« no previous file with comments | « chrome/test/functional/PYAUTO_TESTS ('k') | chrome/test/functional/infobars.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698