Bug 1353074 - Components ctor test should not throw; r=maja_zf

Testing the return value is misleading in this case.  What we want to
test is that it does not throw due to a permissions issue.

MozReview-Commit-ID: 2Wbwou9opyF

--HG--
extra : rebase_source : f2a95ba66999ee430f58b7aa9de70742a209defd
This commit is contained in:
Andreas Tolfsen 2017-04-03 19:20:19 +01:00
Родитель ee6b3f2172
Коммит 56c5b0dc4b
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -343,8 +343,8 @@ class TestExecuteChrome(WindowManagerMixin, TestExecuteContent):
super(TestExecuteChrome, self).tearDown()
def test_permission(self):
self.assertEqual(1, self.marionette.execute_script("""
var c = Components.classes["@mozilla.org/preferences-service;1"]; return 1;"""))
self.marionette.execute_script(
"Components.classes['@mozilla.org/preferences-service;1']")
@skip_if_mobile("New windows not supported in Fennec")
def test_unmarshal_element_collection(self):