Bug 1317462 - Add test for processId capability. r=automatedtester, a=test-only
authorAndreas Tolfsen <ato@mozilla.com>
Tue, 15 Nov 2016 10:51:53 +0000
changeset 449144 5dc1f6e2e083afa300538d6e3c8e1dd772ba85a8
parent 449143 a352f96c3acb8e9770841df27bf1508e33635d60
child 449145 c282ad416a40a47603ad4fa16f6bca5ab8589ae6
push id38516
push usermconley@mozilla.com
push dateTue, 13 Dec 2016 16:16:03 +0000
reviewersautomatedtester, test-only
bugs1317462
milestone52.0a2
Bug 1317462 - Add test for processId capability. r=automatedtester, a=test-only MozReview-Commit-ID: 34SUFLf3F6
testing/marionette/harness/marionette/tests/unit/test_capabilities.py
--- a/testing/marionette/harness/marionette/tests/unit/test_capabilities.py
+++ b/testing/marionette/harness/marionette/tests/unit/test_capabilities.py
@@ -33,16 +33,20 @@ class TestCapabilities(MarionetteTestCas
         self.assertEqual(self.caps["specificationLevel"], 0)
 
     def test_supported_features(self):
         self.assertIn("rotatable", self.caps)
         self.assertIn("acceptSslCerts", self.caps)
 
         self.assertFalse(self.caps["acceptSslCerts"])
 
+    def test_additional_capabilities(self):
+        self.assertIn("processId", self.caps)
+        self.assertEqual(self.caps["processId"], self.appinfo["processID"])
+
     def test_we_can_pass_in_capabilities_on_session_start(self):
         self.marionette.delete_session()
         capabilities = {"desiredCapabilities": {"somethingAwesome": "cake"}}
         self.marionette.start_session(capabilities)
         caps = self.marionette.session_capabilities
         self.assertIn("somethingAwesome", caps)
 
     def test_set_specification_level(self):