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

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

Issue 8302022: Fix pyauto functional tests on chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/netflix.py
diff --git a/chrome/test/functional/netflix.py b/chrome/test/functional/netflix.py
index 6ef720fa6fc6a2e7bed1748cfc369e3eb15ec450..ca57b2a24703ac82fbec95788289f1e5a6672993 100644
--- a/chrome/test/functional/netflix.py
+++ b/chrome/test/functional/netflix.py
@@ -13,12 +13,12 @@ class NetflixTest(pyauto.PyUITest):
"""Test case for Netflix player"""
# Netflix player states
- is_playing = '4'
+ _is_playing = '4'
- title_homepage = 'http://movies.netflix.com/WiHome'
- signout_page = 'https://account.netflix.com/Logout'
+ _title_homepage = 'http://movies.netflix.com/WiHome'
+ _signout_page = 'https://account.netflix.com/Logout'
# 30 Rock
- test_title = 'http://movies.netflix.com/WiPlayer?'+ \
+ _test_title = 'http://movies.netflix.com/WiPlayer?'+ \
'movieid=70136124&trkid=2361637&t=30+Rock'
def tearDown(self):
@@ -72,7 +72,7 @@ class NetflixTest(pyauto.PyUITest):
def _SignOut(self):
"""Sing out from Netflix Login"""
- self.NavigateToURL(self.signout_page)
+ self.NavigateToURL(self._signout_page)
def _LoginAndStartPlaying(self):
"""Login and start playing the video"""
@@ -81,15 +81,15 @@ class NetflixTest(pyauto.PyUITest):
self._LoginToNetflix()
self.assertTrue(self.WaitUntil(
lambda:self.GetActiveTabURL().spec(),
- expect_retval=self.title_homepage),
+ expect_retval=self._title_homepage),
msg='Login to Netflix failed')
- self.NavigateToURL(self.test_title)
+ self.NavigateToURL(self._test_title)
self._HandleInfobars()
self.assertTrue(self.WaitUntil(
lambda: self.ExecuteJavascript("""
player_status = nrdp.video.readyState;
window.domAutomationController.send(player_status + '');
- """), expect_retval=self.is_playing),
+ """), expect_retval=self._is_playing),
msg='Player did not start playing the title')
def testPlayerLoadsAndPlays(self):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698