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

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

Issue 10050016: Removes pinning code from TopSites as we no longer need it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove printfs Created 8 years, 8 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/ntp.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
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py
index ff7523289d9f0ea45c60558247dedae565fcb035..007fd38390acc00f285cdd1de70d965c41635db2 100755
--- a/chrome/test/pyautolib/pyauto.py
+++ b/chrome/test/pyautolib/pyauto.py
@@ -3331,12 +3331,10 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
"""Return a list of info about the sites in the NTP most visited section.
SAMPLE:
[{ u'title': u'Google',
- u'url': u'http://www.google.com',
- u'is_pinned': False},
+ u'url': u'http://www.google.com'},
{
u'title': u'Yahoo',
- u'url': u'http://www.yahoo.com',
- u'is_pinned': True}]
+ u'url': u'http://www.yahoo.com'}]
"""
return self._GetNTPInfo()['most_visited']
@@ -3358,8 +3356,6 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
0 1 2 3
4 5 6 7
- When a thumbnail is moved, it is automatically pinned.
-
Args:
thumbnail: a thumbnail dict received from |GetNTPThumbnails|
new_index: the index to be moved to in the Most Visited sites section
@@ -3391,38 +3387,6 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
}
self._GetResultFromJSONRequest(cmd_dict)
- def PinNTPThumbnail(self, thumbnail):
- """Pins the NTP thumbnail.
-
- Args:
- thumbnail: a thumbnail dict received from |GetNTPThumbnails|
- """
- self._CheckNTPThumbnailShown(thumbnail)
- self.MoveNTPThumbnail(thumbnail, self.GetNTPThumbnailIndex(thumbnail))
-
- def UnpinNTPThumbnail(self, thumbnail):
- """Unpins the NTP thumbnail and returns true on success.
-
- Args:
- thumbnail: a thumbnail dict received from |GetNTPThumbnails|
- """
- self._CheckNTPThumbnailShown(thumbnail)
- cmd_dict = {
- 'command': 'UnpinNTPMostVisitedThumbnail',
- 'url': thumbnail['url']
- }
- self._GetResultFromJSONRequest(cmd_dict)
-
- def IsNTPThumbnailPinned(self, thumbnail):
- """Returns whether the NTP thumbnail is pinned.
-
- Args:
- thumbnail: a thumbnail dict received from |GetNTPThumbnails|
- """
- self._CheckNTPThumbnailShown(thumbnail)
- index = self.GetNTPThumbnailIndex(thumbnail)
- return self.GetNTPThumbnails()[index]['is_pinned']
-
def RestoreAllNTPThumbnails(self):
"""Restores all the removed NTP thumbnails.
Note:
« no previous file with comments | « chrome/test/functional/ntp.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698