Closed
Bug 1052243
Opened 10 years ago
Closed 10 years ago
jshangul.js need unit tests
Categories
(Firefox OS Graveyard :: Gaia::Keyboard, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: timdream, Assigned: sangpire)
References
Details
Attachments
(1 file)
+++ This bug was initially created as a clone of Bug #994495 +++ The Korean IME script does not comes with unit tests -- we should spend time to create one so that new features (in both the keyboard app and the IME) will not break it and stop people from typing Korean.
Comment 1•10 years ago
|
||
I've never written an unit test before and neither do i know Korean. Is this bug going to be hard to pick and give a shot ?
Reporter | ||
Comment 2•10 years ago
|
||
Hi :ShellHacker, The said code can be found here: https://github.com/mozilla-b2g/gaia/blob/master/apps/keyboard/js/imes/jshangul/jshangul.js I think it's possible to write unit tests without knowing Korean. The information about writing and running Unit Tests can be found here: https://github.com/mozilla-b2g/gaia#unit-tests We use Mocha and Sinon in our test running environment. Please take the bug and set to ASSIGNED if you want to work on it!
Comment 3•10 years ago
|
||
Sangpire has made some of unit test codes for his jshangule. Please add unit test code as a patch.
Reporter | ||
Comment 4•10 years ago
|
||
(In reply to Channy Yun [:channy] from comment #3) > Sangpire has made some of unit test codes for his jshangule. > Please add unit test code as a patch. You mean https://github.com/sangpire/jangmiIME/blob/master/test/test.coffee ? In this case, do you think we should migrate these test cases to Gaia code base?
Reporter | ||
Comment 5•10 years ago
|
||
I, for example, did not migrate JSZhuyin test cases from https://github.com/timdream/jszhuyin/tree/master/test to Gaia.
Assignee | ||
Comment 6•10 years ago
|
||
Sorry for my late reply. I had made test codes for korean keyboard. https://github.com/sangpire/gaia/blob/Bug994495/apps/keyboard/test/unit/jshangul_test.js But, It needs a check. I guess I could finish it by next weekends.
Reporter | ||
Comment 7•10 years ago
|
||
Assign to you then.
Assignee: nobody → sangpire
Status: NEW → ASSIGNED
Assignee | ||
Comment 8•10 years ago
|
||
I write unit tests for 'jshangul.js'. Sorry, this patch include a bug fix. Which is can't type JUNG SUNG and CHO SUNG without First CHO SUNG. For example, when I type 'ㅏ' and 'ㄱ' then text should be like 'ㅏㄱ'. The only input 'ㅏ', now. This is found when I made unit tests.
Attachment #8475976 -
Flags: review?(timdream)
Reporter | ||
Comment 9•10 years ago
|
||
Comment on attachment 8475976 [details] [review] GitHub Pull Request URI. Thank you very much for the tests! Please address the Github comment, amend the comment, force push and I will merge it for you.
Attachment #8475976 -
Flags: review?(timdream) → review+
Assignee | ||
Comment 10•10 years ago
|
||
Hi :timdream. I changed it. :)
Reporter | ||
Comment 11•10 years ago
|
||
master: https://github.com/mozilla-b2g/gaia/commit/d9efe6251b8dcbb90c02ee8f6b21e54a24745624 Thanks for the contribution!
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Mentor: timdream
Comment 13•10 years ago
|
||
Tim, Would you estimate when Korean IME can push to flame phone?
Reporter | ||
Comment 14•10 years ago
|
||
(In reply to Channy Yun [:channy] from comment #13) > Tim, Would you estimate when Korean IME can push to flame phone? We only ship a few layouts out of disk space concern. Given the fact there isn't a dictionary in the build for Korean IME, I think we could ship it by default in Nightly builds. Let's me file a bug to turn that on. For the rest of the layouts it's being tracked in bug 1050574.
Reporter | ||
Comment 15•10 years ago
|
||
Filed bug 1058374 and patch submitted.
You need to log in
before you can comment on or make changes to this bug.
Description
•