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

Unified Diff: chrome/test/pyautolib/pyauto.py

Issue 3477001: Add pyauto hook for getting and manipulating the data underneath the NTP.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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/pyautolib/ntp_model.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/pyauto.py
===================================================================
--- chrome/test/pyautolib/pyauto.py (revision 61074)
+++ chrome/test/pyautolib/pyauto.py (working copy)
@@ -80,6 +80,7 @@
import bookmark_model
import download_info
import history_info
+import ntp_model
import omnibox_info
import plugins_info
import prefs_info
@@ -186,6 +187,15 @@
return 'file://' + quoted_path
@staticmethod
+ def GetFileURLForDataPath(relative_path):
+ """Get file:// url for the given path relative to the chrome test data dir.
+
+ Also quotes the url using urllib.quote().
+ """
+ return PyUITest.GetFileURLForPath(
+ os.path.join(PyUITest.DataDir(), relative_path))
+
+ @staticmethod
def IsMac():
"""Are we on Mac?"""
return 'darwin' == sys.platform
@@ -1383,6 +1393,9 @@
}
return self._GetResultFromJSONRequest(cmd_dict)
+ def GetNTPModel(self):
+ """Returns the NTPModel."""
+ return ntp_model.NTPModel(self)
class PyUITestSuite(pyautolib.PyUITestSuiteBase, unittest.TestSuite):
"""Base TestSuite for PyAuto UI tests."""
« no previous file with comments | « chrome/test/pyautolib/ntp_model.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698