Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Issue 1371003: test: Add desktopui_WindowManagerFocusNewWindows. (Closed)

Created:
10 years, 9 months ago by Daniel Erat
Modified:
9 years, 7 months ago
Reviewers:
Chris Masone, kmixter1
CC:
chromium-os-reviews_chromium.org, petkov, seano, ericli, sosa, scheib
Visibility:
Public.

Description

test: Add desktopui_WindowManagerFocusNewWindows. This uses the new Python version of autox to open a few windows and check that the window manager moves them onscreen and focuses them. Note that it doesn't actually check what gets composited, though (although that should soon be pretty straightforward to add). BUG=chromium-os:2041, chromium-os:2229 TEST=ran it on x86-generic

Patch Set 1 #

Total comments: 2

Patch Set 2 : (sort of) handle the case where we need to log in #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -1 line) Patch
M client/bin/chromeos_constants.py View 1 chunk +2 lines, -0 lines 0 comments Download
M client/bin/site_login.py View 1 chunk +10 lines, -0 lines 0 comments Download
A client/site_tests/desktopui_WindowManagerFocusNewWindows/control View 1 chunk +18 lines, -0 lines 0 comments Download
A client/site_tests/desktopui_WindowManagerFocusNewWindows/desktopui_WindowManagerFocusNewWindows.py View 1 1 chunk +92 lines, -0 lines 3 comments Download
M client/site_tests/login_ChromeProfileSanitary/login_ChromeProfileSanitary.py View 1 chunk +1 line, -1 line 1 comment Download
M server/site_tests/suite_BuildVerify/control View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Daniel Erat
I also need to deal with the possibility of not being logged in initially, I ...
10 years, 9 months ago (2010-03-25 23:25:05 UTC) #1
Daniel Erat
Okay, this is ready now. http://codereview.chromium.org/1371003/diff/4001/1007 File client/site_tests/desktopui_WindowManagerFocusNewWindows/desktopui_WindowManagerFocusNewWindows.py (right): http://codereview.chromium.org/1371003/diff/4001/1007#newcode61 client/site_tests/desktopui_WindowManagerFocusNewWindows/desktopui_WindowManagerFocusNewWindows.py:61: # For now, we ...
10 years, 9 months ago (2010-03-26 01:27:00 UTC) #2
kmixter1
http://codereview.chromium.org/1371003/diff/4001/1007 File client/site_tests/desktopui_WindowManagerFocusNewWindows/desktopui_WindowManagerFocusNewWindows.py (right): http://codereview.chromium.org/1371003/diff/4001/1007#newcode61 client/site_tests/desktopui_WindowManagerFocusNewWindows/desktopui_WindowManagerFocusNewWindows.py:61: # For now, we just sleep a really long ...
10 years, 9 months ago (2010-03-26 02:30:08 UTC) #3
Daniel Erat
It's not just the WM starting (I already watch for its process); it's Chrome starting ...
10 years, 9 months ago (2010-03-26 02:37:28 UTC) #4
Chris Masone
10 years, 9 months ago (2010-03-26 07:03:43 UTC) #5
lgtm

http://codereview.chromium.org/1371003/diff/4001/1007
File
client/site_tests/desktopui_WindowManagerFocusNewWindows/desktopui_WindowManagerFocusNewWindows.py
(right):

http://codereview.chromium.org/1371003/diff/4001/1007#newcode64
client/site_tests/desktopui_WindowManagerFocusNewWindows/desktopui_WindowManagerFocusNewWindows.py:64:
# TODO: Set these in a single, standard place for all tests.
Perhaps autox.AutoX() can do it, and take params for these values.  The ones
used here could be the default?  We can store them in chromeos_constants.

http://codereview.chromium.org/1371003/diff/4001/1008
File
client/site_tests/login_ChromeProfileSanitary/login_ChromeProfileSanitary.py
(right):

http://codereview.chromium.org/1371003/diff/4001/1008#newcode59
client/site_tests/login_ChromeProfileSanitary/login_ChromeProfileSanitary.py:59:
raise error.TestError('Could not login')
Thank you for fixing this

Powered by Google App Engine
This is Rietveld 408576698