Bug 1353074 - Test arguments in all sandboxes; r=maja_zf

We were previously missing a test for the arguments variable that is
implicitly exposed to functions.

MozReview-Commit-ID: IC6aJcUsyhd

--HG--
extra : rebase_source : d94cdf0a0f4c74b0bb3240b32ad53da107931183
This commit is contained in:
Andreas Tolfsen 2017-04-03 19:15:13 +01:00
Родитель 79eec2ca30
Коммит 92a55cd4e1
1 изменённых файлов: 12 добавлений и 1 удалений

Просмотреть файл

@ -92,7 +92,18 @@ class TestExecuteContent(MarionetteTestCase):
self.assertIsNone(self.marionette.execute_script("true"))
def test_argument_null(self):
self.assertIsNone(self.marionette.execute_script("return arguments[0]", [None]))
self.assertIsNone(self.marionette.execute_script(
"return arguments[0]",
script_args=(None,),
sandbox="default"))
self.assertIsNone(self.marionette.execute_script(
"return arguments[0]",
script_args=(None,),
sandbox="system"))
self.assertIsNone(self.marionette.execute_script(
"return arguments[0]",
script_args=(None,),
sandbox=None))
def test_argument_number(self):
self.assertEqual(