Closed Bug 915999 Opened 11 years ago Closed 11 years ago

[Marionette] Marionette import_js is trying to do strange behavior

Categories

(Remote Protocol :: Marionette, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 909129

People

(Reporter: wachen, Unassigned)

Details

when you import javascript file, marionette server just keeps pushing javascript into one single js file. marionette server should establish a certain mechanism for server to check if the js is appended or not.

Suggested solution:
1) eastablish different js files and check if the newly imported file hash duplicated
2) some ways to check if the functions in a file is imported and try to remove or substitute them
For gaia_ui_test
Also, setUp() in gaia_test.py needed to be modified, too.
There are GaiaApp, GaiaDataLayer, and LockScreen scripts to be imported everytime a test case started to run. They should be moved to __init__ function so that it will only be imported once in gaia_test
the file is "marionettescriptchrome"  and located in /data/local/tmp/
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.