Closed
Bug 776724
Opened 13 years ago
Closed 13 years ago
test_voicemail_statuschanged.py loads ril_consts.js from arbitrary in-tree location
Categories
(Core :: DOM: Device Interfaces, defect)
Core
DOM: Device Interfaces
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: jgriffin, Assigned: marshall)
References
Details
Attachments
(1 file)
7.27 KB,
patch
|
philikon
:
review+
|
Details | Diff | Splinter Review |
The Marionette test test_voicemail_statuschanged.py loads the file 'ril_consts.js' from the relative path '../../../system/gonk'.
This works fine when running the test in-tree, but in continuous integration, we don't run tests that way...we will run them via packaged tests, and that file will not be available.
We should update this test to include the needed constants within the test's .js file.
![]() |
Assignee | |
Comment 1•13 years ago
|
||
There is a large chunk of constants needed by this test (specifically the language tables for translating the PDUs). Maybe the test could import the ril_consts module from Components.utils instead..
![]() |
Assignee | |
Updated•13 years ago
|
Assignee: nobody → marshall
![]() |
||
Comment 2•13 years ago
|
||
There should be no need for test_voicemail_statuschanged.py. If the test needs to load a file that ships with Gecko, it can do something like:
var Cu = SpecialPowers.unwrap(Components).utils;
var RIL = {};
Cu.import("resource://gre/modules/ril_consts.js, RIL);
I'm not 100% sure what we can for loading pdu_builder.js. We could have Marionette map the current test's location to a resource alias, or we could provide a file:/// URI as a global variable in the test scope. jgriffin?
![]() |
Reporter | |
Comment 3•13 years ago
|
||
(In reply to Philipp von Weitershausen [:philikon] from comment #2)
> There should be no need for test_voicemail_statuschanged.py. If the test
> needs to load a file that ships with Gecko, it can do something like:
>
> var Cu = SpecialPowers.unwrap(Components).utils;
> var RIL = {};
> Cu.import("resource://gre/modules/ril_consts.js, RIL);
>
> I'm not 100% sure what we can for loading pdu_builder.js. We could have
> Marionette map the current test's location to a resource alias, or we could
> provide a file:/// URI as a global variable in the test scope. jgriffin?
It's probably a good idea to add dyanmic resource url mappings for cases like this. I'll file another bug for that.
![]() |
Assignee | |
Comment 4•13 years ago
|
||
Attachment #645801 -
Flags: review?(philipp)
![]() |
||
Updated•13 years ago
|
Attachment #645801 -
Flags: review?(philipp) → review+
![]() |
Assignee | |
Comment 5•13 years ago
|
||
![]() |
||
Comment 6•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in
before you can comment on or make changes to this bug.
Description
•