| 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."""
|
|
|