Commit 376bbd63 authored by Alex Catarineu's avatar Alex Catarineu
Browse files

Fix fp_navigator and fp_useragent tests

parent aa420c44
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -421,8 +421,6 @@ our @tests = (
        name            => 'fp_navigator',
        type            => 'marionette',
        descr           => 'Check that navigator properties are as expected',
        # Bug 28665: temporarily disable test
        enable          => sub { undef },
    },
    {
        name            => 'play_videos',
+3 −6
Original line number Diff line number Diff line
@@ -15,9 +15,9 @@ nav_props = {"appCodeName": "Mozilla",
"product": "Gecko",
"productSub": "20100101",
"plugins": "[object PluginArray]",
"cookieEnabled": "true",
"cookieEnabled": "false",
"onLine": "true",
"buildID": "20100101",
"buildID": "20181001000000",
"doNotTrack": "unspecified",
"javaEnabled": """function javaEnabled() {
    [native code]
@@ -28,9 +28,6 @@ nav_props = {"appCodeName": "Mozilla",
"vibrate": """function vibrate() {
    [native code]
}""",
"registerContentHandler": """function registerContentHandler() {
    [native code]
}""",
"registerProtocolHandler": """function registerProtocolHandler() {
    [native code]
}""",
@@ -63,7 +60,7 @@ class Test(MarionetteTestCase):
            app_version = "5.0 (Macintosh)"
            platform = "MacIntel"
            oscpu = "Intel Mac OS X 10.13"
        nav_props["userAgent"] = "Mozilla/5.0 (" + ua_os + "; rv:60.0) Gecko/20100101 Firefox/60.0"
        nav_props["userAgent"] = "Mozilla/5.0 (" + ua_os + "; rv:78.0) Gecko/20100101 Firefox/78.0"
        nav_props["appVersion"] = app_version
        nav_props["platform"] = platform
        nav_props["oscpu"] = oscpu
+1 −1
Original line number Diff line number Diff line
@@ -19,5 +19,5 @@ class Test(MarionetteTestCase):
                ua_os = 'Windows NT 6.1; Win64; x64'
            if osname == 'MacOSX':
                ua_os = 'Macintosh; Intel Mac OS X 10.13'
            self.assertEqual("Mozilla/5.0 (" + ua_os + "; rv:60.0) Gecko/20100101 Firefox/60.0",
            self.assertEqual("Mozilla/5.0 (" + ua_os + "; rv:78.0) Gecko/20100101 Firefox/78.0",
                              js("return navigator.userAgent"))