Closed Bug 830585 Opened 12 years ago Closed 12 years ago

Expose value of MOZ_WIDGET_GONK to marionette clients

Categories

(Remote Protocol :: Marionette, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jedp, Assigned: jgriffin)

Details

It would be helpful for some marionette tests to know whether they are running locally on b2g desktop or on the device. The symbol MOZ_WIDGET_GONK is defined when b2g is built for device. It would be super awesome to be able to get the value of MOZ_WIDGET_GONK from marionette.
Assignee: nobody → jgriffin
Looks like we can detect this indirectly, already. >>> import marionette >>> m = marionette.Marionette() >>> m.session_capabilities {u'rotatable': True, u'takesScreenshot': False, u'appBuildId': u'20130110064000', u'cssSelectorsEnabled': True, u'javascriptEnabled': True, u'XULappId': u'{3c2e2abc-06d4-11e1-ac3b-374f68613e61}', u'platform': u'Android', u'browserName': u'B2G', u'version': u'18.0', u'nativeEvents': False, u'handlesAlerts': False} For device builds (both emulator and physical devices), 'platform' == 'Android'. For B2G desktop builds, 'platform' == 'Linux' (or whatever). Let me know if this is enough for you.
That seems like it will be fine for my purposes! I'm happy to leave it at that. Thanks very much! j
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.