Closed
Bug 1120805
Opened 9 years ago
Closed 9 years ago
[B2G][RIL] Remove deprecated xpcshell test functions used in RIL test code
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(tracking-b2g:backlog, firefox39 fixed)
People
(Reporter: jdai, Assigned: jdai)
Details
Attachments
(1 file, 3 obsolete files)
Base on [1], many of xpcshell test case assertions are deprecated since Gecko 32.0. We need to rename all of them. [1] https://developer.mozilla.org/en-US/docs/Mozilla/QA/Writing_xpcshell-based_unit_tests
Updated•9 years ago
|
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Summary: [B2G][RIL] Rename deprecated RIL test cases function. → [B2G][RIL] Remove deprecated xpcshell test functions used in RIL test code
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8551639 -
Flags: review?(echen)
Assignee | ||
Comment 2•9 years ago
|
||
Remove some modified code which are unintended to be.
Attachment #8551639 -
Attachment is obsolete: true
Attachment #8551639 -
Flags: review?(echen)
Attachment #8551650 -
Flags: review?(echen)
Comment 3•9 years ago
|
||
Comment on attachment 8551650 [details] [diff] [review] Remove deprecated xpcshell test functions used in RIL test code.(V2) Review of attachment 8551650 [details] [diff] [review]: ----------------------------------------------------------------- Sorry for the late review, I was busy in other things with higher priority. Please see my comments below, thank you. `do_throws` is also deprecated [1], please also help to replace it by [2]. And I got conflict when applying this patch into latest m-c, please help to provide a rebased version. [1] https://dxr.mozilla.org/mozilla-central/source/dom/system/gonk/tests/header_helpers.js#218-219,223-224 [2] https://dxr.mozilla.org/mozilla-central/source/testing/modules/Assert.jsm#411-448 ::: dom/system/gonk/tests/test_ril_worker_icc_SimRecordHelper.js @@ +1346,5 @@ > recordHelper.readCphsInfo(() => { onsuccess = true; }, > () => { onerror = true; }); > > + ok((cphsSt) ? onsuccess : onerror); > + ok(!(cphsSt) ? onerror : onsuccess); Should this be `ok(!((cphsSt) ? onerror : onsuccess));`?
Attachment #8551650 -
Flags: review?(echen)
Assignee | ||
Comment 4•9 years ago
|
||
1. Updating relative testcase to address comment 3. 2. Providing a rebased version patch to the latest m-c.
Attachment #8551650 -
Attachment is obsolete: true
Attachment #8561802 -
Flags: review?(echen)
Comment 5•9 years ago
|
||
Comment on attachment 8561802 [details] [diff] [review] Remove deprecated xpcshell test functions used in RIL test code.(V3) Review of attachment 8561802 [details] [diff] [review]: ----------------------------------------------------------------- r=me with comments addressed, thank you. ::: dom/system/gonk/tests/test_ril_worker_buf.js @@ +56,5 @@ > self.context.Buf.readInt32(); > + } catch (e) { > + ex = e; > + } > + ok(!ex); try { .... } catch (e) { ok(false, "Got exception: " + e); } @@ +71,5 @@ > self.context.Buf.readUint16(); > + } catch (e) { > + ex = e; > + } > + ok(!ex); Ditto @@ -77,5 @@ > while (buf.readAvailable > 0) { > buf.readUint8(); > } > > - do_check_throws(function over_read_handler() { Please also removes the `do_check_throws()` defined in header_helpers.js.
Attachment #8561802 -
Flags: review?(echen) → review+
Updated•9 years ago
|
blocking-b2g: --- → backlog
Assignee | ||
Comment 6•9 years ago
|
||
Thanks Edgar! Try looks good: https://treeherder.mozilla.org/#/jobs?repo=try&revision=fc9280ffcc63
Assignee | ||
Comment 7•9 years ago
|
||
Attachment #8561802 -
Attachment is obsolete: true
Comment 8•9 years ago
|
||
b2g-inbound is closed now, I will try pushing later.
Updated•9 years ago
|
blocking-b2g: backlog → ---
tracking-b2g:
--- → backlog
You need to log in
before you can comment on or make changes to this bug.
Description
•