Closed
Bug 932145
Opened 13 years ago
Closed 12 years ago
Mochitest support for Keyboard/IME API
Categories
(Firefox OS Graveyard :: Gaia::Keyboard, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: xyuan, Assigned: xyuan)
References
Details
Attachments
(1 file, 4 obsolete files)
|
14.19 KB,
patch
|
xyuan
:
review+
|
Details | Diff | Splinter Review |
We have implemented the Keyboard/IME API in gecko. To ensure it works properly and not isn't broken by future patches, we need set up mochitest for it.
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → xyuan
| Assignee | ||
Comment 1•12 years ago
|
||
| Assignee | ||
Comment 2•12 years ago
|
||
| Assignee | ||
Comment 3•12 years ago
|
||
Comment on attachment 8344592 [details] [diff] [review]
add mochitest v1.patch
Review of attachment 8344592 [details] [diff] [review]:
-----------------------------------------------------------------
Basic tests for mozInputMethod.
Attachment #8344592 -
Flags: review?(fabrice)
Comment 4•12 years ago
|
||
Comment on attachment 8344592 [details] [diff] [review]
add mochitest v1.patch
Review of attachment 8344592 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for starting that. It's pretty good, but you can simplify somewhat!
::: dom/inputmethod/mochitest/inputmethod_common.js
@@ +26,5 @@
> + // Backup the old pref values.
> + prefs.forEach(function(v) {
> + let name = v[0];
> + this._boolPrefs.push([name, this._getBoolPref(name)]);
> + }.bind(this));
You don't need to save old values when using pushPrefEnv
@@ +34,5 @@
> + addPermissions: function(permissions) {
> + this._permissions.push(permissions);
> + permissions.forEach(function(v) {
> + SpecialPowers.addPermission(v, true, document);
> + });
Please use pushPermissions() instead of addPermission()
@@ +42,5 @@
> + this._permissions.forEach(function(v) {
> + SpecialPowers.removePermission(v, document);
> + });
> + SpecialPowers.pushPrefEnv({set: this._boolPrefs}, callback);
> + },
You don't need this function.
Attachment #8344592 -
Flags: review?(fabrice) → feedback+
| Assignee | ||
Comment 5•12 years ago
|
||
The patch fixed the issue in inputmethod_common.js of comment 4.
When running test on Firefox without gaia helper addon, there is a "browser.shell" undefined error in the console, as browser.shell is
not available. The patch also fixed this problem.
Attachment #8344592 -
Attachment is obsolete: true
Attachment #8346055 -
Flags: review?(fabrice)
Comment 6•12 years ago
|
||
Comment on attachment 8346055 [details] [diff] [review]
add mochitest v2.patch
Review of attachment 8346055 [details] [diff] [review]:
-----------------------------------------------------------------
thanks!
Attachment #8346055 -
Flags: review?(fabrice) → review+
| Assignee | ||
Comment 7•12 years ago
|
||
@Fabrice, thanks for helping with a load of reviews from me :-)
Status: NEW → ASSIGNED
Keywords: checkin-needed
Comment 8•12 years ago
|
||
Flags: in-testsuite+
Keywords: checkin-needed
Comment 9•12 years ago
|
||
Disable these tests on Android:
https://hg.mozilla.org/integration/b2g-inbound/rev/ab5feb665350
Comment 10•12 years ago
|
||
Backed out for B2G mochitest-4 orange. Please verify that this passes on all affected platforms and include the Android fix from comment 9 before re-landing.
https://hg.mozilla.org/integration/b2g-inbound/rev/e3fe8a0517fe
https://tbpl.mozilla.org/php/getParsedLog.php?id=32098407&tree=B2g-Inbound
| Assignee | ||
Comment 11•12 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=22560c43d713
The above try server results show that the composition methods of the input method API are broken. The patch marked the corresponding test as TODO and disable it.
Attachment #8346055 -
Attachment is obsolete: true
Attachment #8350002 -
Flags: review+
| Assignee | ||
Comment 12•12 years ago
|
||
Let's wait for the try server result before check-in.
https://tbpl.mozilla.org/?tree=Try&rev=2f60924327c1
Attachment #8350002 -
Attachment is obsolete: true
Attachment #8350005 -
Flags: review+
Comment 14•12 years ago
|
||
Keywords: checkin-needed
Comment 15•12 years ago
|
||
Backed out for desktop B2G mochitest orange.
https://hg.mozilla.org/integration/b2g-inbound/rev/3ce6af03ee93
https://tbpl.mozilla.org/php/getParsedLog.php?id=32223839&tree=B2g-Inbound
Please give this a full Try run before requesting checkin again.
| Assignee | ||
Comment 17•12 years ago
|
||
@Ryan, thank you. I should have a full try run.
| Assignee | ||
Comment 18•12 years ago
|
||
Attachment #8350005 -
Attachment is obsolete: true
| Assignee | ||
Comment 19•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Attachment #8350151 -
Flags: review+
| Assignee | ||
Comment 20•12 years ago
|
||
All input method mochitest tests passed finally.
Keywords: checkin-needed
Comment 21•12 years ago
|
||
Keywords: checkin-needed
Comment 22•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•