Closed Bug 956761 Opened 11 years ago Closed 11 years ago

Marionette interprets keyboard size incorrectly when multiple keyboards enabled

Categories

(Remote Protocol :: Marionette, defect)

Other
Gonk (Firefox OS)
defect
Not set
major

Tracking

(Not tracked)

VERIFIED WORKSFORME

People

(Reporter: zcampbell, Unassigned)

References

Details

Attachments

(1 file)

STR 1. Open the keyboard (I used Contacts, +Add contact) and poll its size: > keyb = m.find_element('css selector', '#keyboards iframe') > keyb.size {u'width': 320, u'height': 480} keyb.is_displayed() True 2. Go into Settings app 3. Choose Keyboards > Selected Keyboard > Add more keyboards 4. Select espanol (or some other) 5. Return to contacts and poll its size: > keyb = m.find_element('css selector', '#keyboards iframe') > keyb.size {u'width': 0, u'height': 0} keyb.is_displayed() False By watching in app manager it appears the html is torn down and re-generated which may be a factor. This must be done on device where OOP keyboard is enabled. Device Hamachi Gaia 711d8bf4efde6b1aaaf1f61bd422312c17435810 Gecko http://hg.mozilla.org/mozilla-central/rev/cf80c0d4f46e BuildID 20140105040201 Version 29.0a1 ro.build.version.incremental=eng.archermind.20131114.105818 ro.build.date=Thu Nov 14 10:58:33 CST 2013
Are we certain the keyboards are still inside the #keyboards iframe when multiple keyboards are enabled?
Yes the keyboards and its HTML content is there and facing the user. I prodded it with the App Manager and it all looked fine. What I am querying here is the iframe itself. This just seemed to pop up (sorry) when they turned on the OOP Keyboard.
It's also functional to the user.
Whiteboard: [xfail]
Attached file logcat.log
Buri Gaia 9f30198a420632359b271de7e680abde92ccbcd6 Gecko http://hg.mozilla.org/mozilla-central/rev/e7a366c1036c BuildID 20140107040206 Version 29.0a1 ro.build.version.incremental=eng.archermind.20131114.105818 ro.build.date=Thu Nov 14 10:58:33 CST 2013 I can reproduce. 1. tap text feild to enable keyboard. > (Pdb) self.marionette.switch_to_frame() True > (Pdb) keyb = self.marionette.find_element('css selector', '#keyboards iframe') > (Pdb) keyb.size {u'width': 320, u'height': 480} > (Pdb) keyb.is_displayed() True 2. add "Espanol" keyboard in settings app. 3. tap text feild to enable keyboard. > (Pdb) keyb.size {u'width': 0, u'height': 0} > (Pdb) keyb.is_displayed() False
(In reply to Askeing Yen[:askeing] from comment #4) > Created attachment 8356941 [details] > logcat.log > > Buri > Gaia 9f30198a420632359b271de7e680abde92ccbcd6 > Gecko http://hg.mozilla.org/mozilla-central/rev/e7a366c1036c > BuildID 20140107040206 > Version 29.0a1 > ro.build.version.incremental=eng.archermind.20131114.105818 > ro.build.date=Thu Nov 14 10:58:33 CST 2013 > > I can reproduce. > > 1. tap text feild to enable keyboard. > > (Pdb) self.marionette.switch_to_frame() > True > > (Pdb) keyb = self.marionette.find_element('css selector', '#keyboards iframe') > > (Pdb) keyb.size > {u'width': 320, u'height': 480} > > (Pdb) keyb.is_displayed() > True > 2. add "Espanol" keyboard in settings app. > 3. tap text feild to enable keyboard. > > (Pdb) keyb.size > {u'width': 0, u'height': 0} > > (Pdb) keyb.is_displayed() > False Can you try find the keyboard again instead of reusing the ID to see if that makes a difference
The test in question is now passing and I can no longer reproduce this issue. Marking it as fixed.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [xfail]
(In reply to Bob Silverberg [:bsilverberg] from comment #6) > The test in question is now passing and I can no longer reproduce this > issue. Marking it as fixed. Since we can't point to a changeset, I think we should probably mark this as INVALID or WORKSFORME, no?
Good point Stephen. Updated.
Resolution: FIXED → WORKSFORME
(In reply to Bob Silverberg [:bsilverberg] from comment #8) > Good point Stephen. Updated. Thanks, Bob. Didn't mean to be so passive-aggressive; I could've marked it myself, too :-)
Status: RESOLVED → VERIFIED
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: