mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 1370857 - Remove Marionette.clear_imported_scripts API; r=automatedtester
The import script functionality was removed in https://bugzilla.mozilla.org/show_bug.cgi?id=1368648, but the Marionette.clear_imported_script API was not removed from the client. We are currently making calls after every test to the clearImportedScripts command in the server, but we are apparently ignoring the ‘unknown command’ error that is being returned. MozReview-Commit-ID: KVjh2IfhuUY --HG-- extra : rebase_source : ebc8faf8746e7e3e91b395ec488aeea014747848
This commit is contained in:
parent
0708c99101
commit
76f413411c
@ -1908,14 +1908,6 @@ class Marionette(object):
|
||||
body = {"script": js}
|
||||
self._send_message("importScript", body)
|
||||
|
||||
def clear_imported_scripts(self):
|
||||
"""Clears all imported scripts in this context, ie: calling
|
||||
clear_imported_scripts in chrome context will clear only scripts
|
||||
you imported in chrome, and will leave the scripts you imported
|
||||
in content context.
|
||||
"""
|
||||
self._send_message("clearImportedScripts")
|
||||
|
||||
def add_cookie(self, cookie):
|
||||
"""Adds a cookie to your current session.
|
||||
|
||||
|
@ -346,7 +346,6 @@ class MarionetteTestCase(CommonTestCase):
|
||||
|
||||
if not self.marionette.crashed:
|
||||
try:
|
||||
self.marionette.clear_imported_scripts()
|
||||
self.marionette.execute_script("log('TEST-END: {0}')"
|
||||
.format(self.test_name),
|
||||
sandbox="simpletest")
|
||||
|
Loading…
Reference in New Issue
Block a user