Commit d5017848 authored by Fei Ling's avatar Fei Ling Committed by Commit Bot

Simplify test FullscreenAllowedTest.

To enter full screen mode, use keyboard shortcut instead of finding and clicking
the full screen button.

Change-Id: I762952ed04d73d9be6a45ea3757a6212b59cff14
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1992693Reviewed-by: default avatarJulian Pastarmov <pastarmovj@chromium.org>
Commit-Queue: Fei Ling <feiling@chromium.org>
Cr-Commit-Position: refs/heads/master@{#731686}
parent 20a3cdfb
...@@ -21,10 +21,8 @@ def main(argv): ...@@ -21,10 +21,8 @@ def main(argv):
container = w.child_window(best_match="Infobar Container") container = w.child_window(best_match="Infobar Container")
container.child_window(best_match="Close").click_input() container.child_window(best_match="Close").click_input()
print "Clicking on the Fullscreen button." print "press F11 to enter full screen mode."
button = w.child_window(title_re="^Chrom(e|ium)$", control_type="Button") w.type_keys('{F11}')
button.click_input()
w.child_window(best_match="Full screen").click_input()
window_rect = w.rectangle() window_rect = w.rectangle()
window_width = window_rect.width() window_width = window_rect.width()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment