Closed Bug 843455 Opened 12 years ago Closed 11 years ago

B2G STK: Import scripts for marionette tests

Categories

(Firefox OS Graveyard :: RIL, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: allstars.chh, Assigned: gwang)

References

Details

Attachments

(1 file, 3 obsolete files)

In Bug 797296 we add many test case for STK marionete tests, however there are many code duplicated so once Bug 805838 is landed we'd use import script to avoid the duplicated code.
Component: DOM: Device Interfaces → RIL
Product: Core → Boot2Gecko
Assignee: nobody → gwang
Update attachment for the missing file. try: https://tbpl.mozilla.org/?tree=Try&rev=f90c1d3a3c41
Attachment #822183 - Attachment is obsolete: true
Attachment #823220 - Flags: review?(allstars.chh)
Comment on attachment 823220 [details] [diff] [review] B2G STK Import scripts for marionette tests. v1 Review of attachment 823220 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/icc/tests/marionette/test_stk_display_text.js @@ +1,4 @@ > /* Any copyright is dedicated to the Public Domain. > http://creativecommons.org/publicdomain/zero/1.0/ */ > > +MARIONETTE_HEAD_JS = 'stk_helper.js'; nit, we use double quotes '"' here. Same for other files. ::: dom/icc/tests/marionette/test_stk_get_input.js @@ +169,5 @@ > maxLength: 10}}, > ]; > > // TODO - Bug 843455: Import scripts for marionette tests. > +/* ?? @@ +204,5 @@ > > SpecialPowers.removePermission("mobileconnection", document); > finish(); > } > +*/ ?? ::: dom/icc/tests/marionette/test_stk_proactive_command.js @@ +1,5 @@ > /* Any copyright is dedicated to the Public Domain. > http://creativecommons.org/publicdomain/zero/1.0/ */ > > +MARIONETTE_HEAD_JS = 'stk_helper.js'; > +/* ?? @@ +8,5 @@ > SpecialPowers.addPermission("mobileconnection", true, document); > > let icc = navigator.mozIccManager; > ok(icc instanceof MozIccManager, "icc is instanceof " + icc.constructor); > +*/ ?? @@ +109,5 @@ > func: testTimerManagementDeactivate}, > {command: "d00c810301270282028182a40108", > func: testTimerManagementGetCurrentValue}, > ]; > +/* ?? @@ +144,5 @@ > > SpecialPowers.removePermission("mobileconnection", document); > finish(); > } > +*/ ??
Attachment #823220 - Flags: review?(allstars.chh) → review-
Attachment #823789 - Flags: review?(allstars.chh)
Comment on attachment 823789 [details] [diff] [review] B2G STK Import scripts for marionette tests. v2 Review of attachment 823789 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/icc/tests/marionette/stk_helper.js @@ +33,5 @@ > + return; > + } > + > + let command = "stk pdu " + test.command; > + sendStkPduToEmulator(command, test.func, test.expect) missing ; at the end.
Attachment #823789 - Flags: review?(allstars.chh) → review+
Add ; (after sendStkPduToEmulator(command, test.func, test.expect);)
Attachment #823789 - Attachment is obsolete: true
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: