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

Unified Diff: client/site_tests/desktopui_WindowManagerHotkeys/desktopui_WindowManagerHotkeys.py

Issue 1534001: switch to autox.py and robustify login/logout code (Closed)
Patch Set: merge with head Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/site_tests/desktopui_WindowManagerHotkeys/desktopui_WindowManagerHotkeys.py
diff --git a/client/site_tests/desktopui_WindowManagerHotkeys/desktopui_WindowManagerHotkeys.py b/client/site_tests/desktopui_WindowManagerHotkeys/desktopui_WindowManagerHotkeys.py
index 0048b150ae71f6d16cf080398901c47459e4f28d..08edd8a4e682d6a071e0b41a03f6925cb3e13266 100644
--- a/client/site_tests/desktopui_WindowManagerHotkeys/desktopui_WindowManagerHotkeys.py
+++ b/client/site_tests/desktopui_WindowManagerHotkeys/desktopui_WindowManagerHotkeys.py
@@ -10,12 +10,7 @@ class desktopui_WindowManagerHotkeys(site_ui_test.UITest):
version = 1
def run_once(self):
- import autox
-
- # TODO: Set these in a single, standard place for all tests.
- os.environ['DISPLAY'] = ':0'
- os.environ['XAUTHORITY'] = '/home/chronos/.Xauthority'
- ax = autox.AutoX()
+ ax = self.get_autox()
# Start a terminal and wait for it to get the focus.
# TODO: This is a bit of a hack. To watch for the terminal getting

Powered by Google App Engine
This is Rietveld 408576698