Charlie Mooney has posted comments on this change.
Change subject: firmware_TouchpadMTB: add robot control for two-finger gestures
......................................................................
Patch Set 1: I would prefer that you didn't submit this
(5 inline comments)
Looks good, so nice to see how easy it is to add new tests. Great design
....................................................
File client/site_tests/firmware_TouchpadMTB/robot_wrapper.py
Line 110: # test with different tap locations instead for convenience.
I'm not entirely sure what you mean here. It looks like you're just testing 2-finger taps in a couple spots on the touchpad, so what's the comment before about how the fingers are aligned?
Line 112: GV.VERTICAL: (START, CENTER),
It's likely that one of the fingers will be off the touchpad for this test. The location is specified by the first finger (the one that's always in the down position) and it it the finger on the right. So if both fingers are down, and you get too close to the left side of the touchpad, the second (left) finger may not be on it anymore. I would suggest changing this to (END, CENTER) if possible, so you can guarantee that you'll actually get 2 fingers on the pad.
....................................................
File client/site_tests/firmware_TouchpadMTB/test_conf.py
Line 123: # Define those gestures that the robot needs to pause so that a user
"pause after so the user"
....................................................
File client/site_tests/firmware_TouchpadMTB/test_flow.py
Line 396: def _robot_pause(self):
I looks like the only place this is called, it's result is immediately put into _get_prompt_robot_pause(). Could these just be merged into one function that either returns None or the nicely formatted prompt message?
Line 419: print '\n\n' + prompt_msg
Thanks for adding the console output too!
Could you add a comment though to explain why you're displaying the prompt in two places? That might be a little confusing once we've been looking at other stuff for a while
Gerrit-MessageType: comment
Gerrit-Change-Id: I5e4172c8480f1eba3099406e8247dc1d4b41ad13
Gerrit-PatchSet: 1
Gerrit-Project: chromiumos/third_party/autotest
Gerrit-Branch: master
Gerrit-Owner: Joseph Shyh-In Hwang <
jose...@chromium.org>
Gerrit-Reviewer: Charlie Mooney <
charli...@chromium.org>
Gerrit-Reviewer: Gerrit <
chrom...@google.com>