Bug 1319692 - Fix test_page_info_window.py to use lowercase platform name. r=ato a=test-only
authorHenrik Skupin <mail@hskupin.info>
Fri, 25 Nov 2016 12:46:33 +0100
changeset 352838 d87cb6c123a8e42eb27bf6129f09874590f7feee
parent 352837 15a86e8b45cc6840917edb57f259f6fb4f94c1fa
child 352839 3343d88f45c3ea4ad1ae7877e5791539570ab583
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato, test-only
bugs1319692
milestone52.0a2
Bug 1319692 - Fix test_page_info_window.py to use lowercase platform name. r=ato a=test-only MozReview-Commit-ID: BwYUT88Pz4q
testing/marionette/puppeteer/firefox/firefox_puppeteer/ui/browser/window.py
--- a/testing/marionette/puppeteer/firefox/firefox_puppeteer/ui/browser/window.py
+++ b/testing/marionette/puppeteer/firefox/firefox_puppeteer/ui/browser/window.py
@@ -238,17 +238,17 @@ class BrowserWindow(BaseWindow):
         """
         def callback(win):
             # Prepare action which triggers the opening of the browser window
             if callable(trigger):
                 trigger(win)
             elif trigger == 'menu':
                 self.menubar.select_by_id('tools-menu', 'menu_pageInfo')
             elif trigger == 'shortcut':
-                if win.marionette.session_capabilities['platformName'] == 'WINDOWS_NT':
+                if win.marionette.session_capabilities['platformName'] == 'windows_nt':
                     raise ValueError('Page info shortcut not available on Windows.')
                 win.send_shortcut(win.get_entity('pageInfoCmd.commandkey'),
                                   accel=True)
             elif trigger == 'context_menu':
                 # TODO: Add once we can do right clicks
                 pass
             else:
                 raise ValueError('Unknown opening method: "%s"' % trigger)