Bug 1008626 - Removed javaScriptEnabled and cssSelectors capabilities ( no longer needed); updated tests accordingly. r=automatedtester

This commit is contained in:
Shashank Sabniveesu 2014-05-29 18:53:00 +02:00
parent 4e78fd0ee5
commit 5370603de4
3 changed files with 0 additions and 8 deletions

View File

@ -25,18 +25,14 @@ class TestCapabilities(MarionetteTestCase):
self.appinfo["platformVersion"])
def test_supported_features(self):
self.assertIn("cssSelectorsEnabled", self.caps)
self.assertIn("handlesAlerts", self.caps)
self.assertIn("javascriptEnabled", self.caps)
self.assertIn("nativeEvents", self.caps)
self.assertIn("rotatable", self.caps)
self.assertIn("secureSsl", self.caps)
self.assertIn("takesElementScreenshot", self.caps)
self.assertIn("takesScreenshot", self.caps)
self.assertTrue(self.caps["cssSelectorsEnabled"])
self.assertFalse(self.caps["handlesAlerts"])
self.assertTrue(self.caps["javascriptEnabled"])
self.assertFalse(self.caps["nativeEvents"])
self.assertEqual(self.caps["rotatable"], self.appinfo["name"] == "B2G")
self.assertFalse(self.caps["secureSsl"])

View File

@ -23,10 +23,8 @@ class TestSession(marionette_test.MarionetteTestCase):
self.assertIn("platformVersion", caps)
# Optional capabilities we want Marionette to support
self.assertIn("cssSelectorsEnabled", caps)
self.assertIn("device", caps)
self.assertIn("handlesAlerts", caps)
self.assertIn("javascriptEnabled", caps)
self.assertIn("rotatable", caps)
self.assertIn("takesScreenshot", caps)
self.assertIn("version", caps)

View File

@ -571,9 +571,7 @@ MarionetteServerConnection.prototype = {
"platformVersion": Services.appinfo.platformVersion,
// Supported features
"cssSelectorsEnabled": true,
"handlesAlerts": false,
"javascriptEnabled": true,
"nativeEvents": false,
"rotatable": isB2G,
"secureSsl": false,