Ubuntu Pastebin

Paste from ahayzen at Mon, 4 May 2015 13:52:34 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
=== modified file tests/autopilot/music_app/__init__.py
--- tests/autopilot/music_app/__init__.py	2015-05-03 16:00:47 +0000
+++ tests/autopilot/music_app/__init__.py	2015-05-04 13:51:29 +0000
@@ -48,8 +48,7 @@
 
     def __init__(self, app_proxy):
         self.app = app_proxy
-        self.main_view = self.app.wait_select_single(MainView12,
-                                                     objectName="music")
+        self.main_view = self.app.wait_select_single(objectName="music")
         self.player = self.app.select_single(Player, objectName='player')
 
     def get_add_to_playlist_page(self):
@@ -138,7 +137,7 @@
         super(Page, self).__init__(*args)
         # XXX we need a better way to keep reference to the main view.
         # --elopio - 2014-01-31
-        self.main_view = self.get_root_instance().select_single(MainView12)
+        self.main_view = self.get_root_instance().select_single(objectName="music")
 
 
 class MusicPage(Page):
@@ -433,19 +432,15 @@
             "Button", objectName="removePlaylistDialogRemoveButton")
 
 
-class MainView12(MainView):
+class MainView(MainView):
     """Autopilot custom proxy object for the MainView."""
     retry_delay = 0.2
 
     def __init__(self, *args):
-        super(MainView12, self).__init__(*args)
+        super(MainView, self).__init__(*args)
         self.visible.wait_for(True)
 
         # wait for activity indicator to stop spinning
         spinner = self.wait_select_single("ActivityIndicator",
                                           objectName="LoadingSpinner")
         spinner.running.wait_for(False)
-
-    @classmethod
-    def validate_dbus_object(cls, path, state):
-        return False
Download as text