зеркало из https://github.com/mozilla/gecko-dev.git
Bug 751406 - Update tests which expect calling Components.classes to fail, a=test-only, DONTBUILD because NPOTB
This commit is contained in:
Родитель
64c3e08170
Коммит
e1c45aba50
|
@ -98,7 +98,8 @@ class TestExecuteAsyncContent(MarionetteTestCase):
|
|||
|
||||
def test_execute_permission(self):
|
||||
self.assertRaises(JavascriptException, self.marionette.execute_async_script, """
|
||||
var c = Components.classes;
|
||||
let prefs = Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefBranch);
|
||||
marionetteScriptFinished(1);
|
||||
""")
|
||||
|
||||
|
|
|
@ -53,7 +53,10 @@ class TestExecuteContent(MarionetteTestCase):
|
|||
def test_execute_permission(self):
|
||||
self.assertRaises(JavascriptException,
|
||||
self.marionette.execute_script,
|
||||
"return Components.classes;")
|
||||
"""
|
||||
let prefs = Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefBranch);
|
||||
""")
|
||||
|
||||
def test_complex_return_values(self):
|
||||
self.assertEqual(self.marionette.execute_script("return [1, 2];"), [1, 2])
|
||||
|
|
Загрузка…
Ссылка в новой задаче