Bug 964366 - Session capabilities missing browserVersion. r=mdas

This commit is contained in:
Andreas Tolfsen 2014-02-20 15:36:56 -05:00
parent 408416b203
commit bd9a63ae17
2 changed files with 3 additions and 0 deletions

View File

@ -41,10 +41,12 @@ class TestCapabilities(marionette_test.MarionetteTestCase):
def test_mandates_capabilities(self):
self.assertIn("browserName", self.caps)
self.assertIn("browserVersion", self.caps)
self.assertIn("platformName", self.caps)
self.assertIn("platformVersion", self.caps)
self.assertEqual(self.caps["browserName"], self.appinfo["name"])
self.assertEqual(self.caps["browserVersion"], self.appinfo["version"])
self.assertEqual(self.caps["platformName"], self.appinfo["OS"].upper())
self.assertEqual(self.caps["platformVersion"],
self.appinfo["platformVersion"])

View File

@ -555,6 +555,7 @@ MarionetteServerConnection.prototype = {
let caps = {
// Mandated capabilities
"browserName": appName,
"browserVersion": Services.appinfo.version,
"platformName": platformName,
"platformVersion": Services.appinfo.platformVersion,