Closed Bug 947124 Opened 11 years ago Closed 9 years ago

Build keyboard-helper in gaia to handle "send key" and other keyboard functions

Categories

(Firefox OS Graveyard :: Gaia::Keyboard, defect)

x86
macOS
defect
Not set
normal

Tracking

(tracking-b2g:backlog)

RESOLVED FIXED
tracking-b2g backlog

People

(Reporter: evanxd, Assigned: rudyl)

References

Details

Attachments

(2 files)

Hi all,

We should have marionette-keyboard plugin to handle keyboard things.

After we have marionette-keyboard, we could write tests to deal with some app and keyboard app at same time very easily.

For example, we could do the below script to operate the keyboard app in browser app test.
```
test('Test the address bar', function() {
  // Click the address bar, then the keyboard app will show up.
  client.keyboard.input('http://mozilla.org');
  // Click go.
  // Assert some thing.
});
```
Summary: [marionette-keyboard] Marionette plugin to handle keyboard things. → Build keyboard-helper in gaia to handle keyboard things.
After the discuss with Gary and Alive, the marionette-keyboard plugin is not good enough.

We could just build a keyboard-help to do those things in gaia.

Thanks for Gary and Alive.
Component: JSMarionette → Gaia::Keyboard
Product: Testing → Firefox OS
Assignee: nobody → gchen
Hi Gary,

Cool!
We could start to work on marionette tests for Keyboard app.
If you need any help, please let me know. :)
Hi Evan,
   Please help to review this patch in next year. 
   
   Merry X'mas And Happy new year!!! ;)
Attachment #8351340 - Flags: review?(evanxd)
Comment on attachment 8351340 [details]
pull request: https://github.com/mozilla-b2g/gaia/pull/14951/files

Hi Gary,

Sorry for the late reply.

There is a new rule for review process of marionette test:

Please make sure the `marionette_js_stable_check` action of the patch is passed on Travis
(https://travis-ci.org/mozilla-b2g/gaia/jobs/18937817), then you set r? for your patch.

As you know marionette test of settings app is higher priority than this, so we will review the settings test first.

Thanks.
Attachment #8351340 - Flags: review?(evanxd)
We already have the following file in keyboard's marionette-js test,
https://github.com/mozilla-b2g/gaia/blob/master/apps/keyboard/test/marionette/lib/keyboard.js

I think we need to add other Keyboard app related functions here, like send keys, so modify the title.
Summary: Build keyboard-helper in gaia to handle keyboard things. → Build keyboard-helper in gaia to handle "send key" and other keyboard functions
blocking-b2g: --- → backlog
Assignee: gchen → nobody
Assignee: nobody → rlu
Status: NEW → ASSIGNED
blocking-b2g: backlog → ---
Comment on attachment 8590188 [details] [review]
[gaia] RudyLu:keyboard/Bug947124-_keyboard_library_sendKey > mozilla-b2g:master

Tried to run this for more than 10 times, and it seems stable enough.
https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=bed1131748481f027c2344aa2d84bcfa7a54875d
(Gij7)


Tim,

Could you please help review this?
Thanks.
Attachment #8590188 - Flags: review?(timdream)
Attachment #8590188 - Flags: review?(timdream) → review+
Thanks for the review.

Mark to land it.
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: