@@ -18,7 +18,7 @@
1818#
1919
2020from unity8.shell.tests import UnityTestCase, _get_device_emulation_scenarios
21−
21+from autopilot.introspection.types import Rectangle
2222from testtools.matchers import Equals
2323
2424class TestGreeter(UnityTestCase):
@@ -28,11 +28,11 @@ class TestGreeter(UnityTestCase):
2828 scenarios = _get_device_emulation_scenarios()
2929
3030 def test_greeter_background(self):
31− """Test that the background of the greeter and the background of the shell are placed correctly
31+ """Test that the background of the greeter is placed correctly
3232
3333 """
34− self.launch_unity()
35− self.main_window.get_greeter()
34+ self.launch_greeter()
3635 greeter_background = self.main_window.get_greeter_background()
37− shell_background = self.main_window.get_shell_background()
38− self.assertThat(greeter_background.globalRect, Equals(shell_background.globalRect))
36+ winRect = Rectangle(self.main_window.x, self.main_window.y,
37+ self.main_window.width, self.main_window.height)
38+ self.assertThat(greeter_background.globalRect, Equals(winRect))