зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
79eec2ca30
Коммит
92a55cd4e1
|
@ -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(
|
||||
|
|
Загрузка…
Ссылка в новой задаче