mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 991242: Remove Marionette unit test as this is covered by Gaia testing; r=jgriffin
This commit is contained in:
parent
a29aab4e41
commit
08d7ee7fbe
@ -1,31 +0,0 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import *
|
||||
|
||||
class TestGaiaLaunch(MarionetteTestCase):
|
||||
"""Trivial example of launching a Gaia app, entering its context and performing some test on it.
|
||||
"""
|
||||
|
||||
def test_launch_app(self):
|
||||
# Launch a Gaia app; see CommonTestCase.launch_gaia_app in
|
||||
# marionette.py for implementation. This returns an HTMLElement
|
||||
# object representing the iframe the app was loaded in.
|
||||
app_frame = self.launch_gaia_app('../sms/sms.html')
|
||||
|
||||
# Verify that the <title> element of the content loaded in the
|
||||
# iframe contains the text 'Messages'.
|
||||
page_title = self.marionette.execute_script("""
|
||||
var frame = arguments[0];
|
||||
return frame.contentWindow.document.getElementsByTagName('title')[0].innerHTML;
|
||||
""", [app_frame])
|
||||
self.assertEqual(page_title, 'Messages')
|
||||
|
||||
self.marionette.switch_to_frame(0)
|
||||
self.assertEqual(self.marionette.execute_script("return window.document.getElementsByTagName('title')[0].innerHTML;"), 'Messages')
|
||||
self.assertTrue("sms" in self.marionette.execute_script("return document.location.href;"))
|
||||
self.marionette.switch_to_frame()
|
||||
self.assertTrue("homescreen" in self.marionette.execute_script("return document.location.href;"))
|
||||
|
Loading…
Reference in New Issue
Block a user