OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import os, time | 5 import os, time |
6 | 6 |
7 from autotest_lib.client.bin import test, utils | 7 from autotest_lib.client.bin import test, utils |
8 from autotest_lib.client.common_lib import error, site_ui | 8 from autotest_lib.client.common_lib import error, site_ui |
9 | 9 |
10 class realtimecomm_GTalkPlayground(test.test): | 10 class realtimecomm_GTalkPlayground(test.test): |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 def run_once(self): | 69 def run_once(self): |
70 self.run_cleanup() | 70 self.run_cleanup() |
71 self.run_setup() | 71 self.run_setup() |
72 | 72 |
73 # Launch Playground | 73 # Launch Playground |
74 path = os.path.join(self.playground, | 74 path = os.path.join(self.playground, |
75 'buzz/javascript/media/examples') | 75 'buzz/javascript/media/examples') |
76 page = 'videoplayground.html' | 76 page = 'videoplayground.html' |
77 para = 'callType=v' | 77 para = 'callType=v' |
78 playground_url = "%s/%s?%s" % (path, page, para) | 78 playground_url = "%s/%s?%s" % (path, page, para) |
79 session = site_ui.ChromeSession(playground_url) | 79 utils.run('su chronos -c \'DISPLAY=:0 \ |
80 time.sleep(60) | 80 XAUTHORITY=/home/chronos/.Xauthority \ |
81 session.close() | 81 /opt/google/chrome/chrome \ |
| 82 --no-first-run %s\' &' % playground_url) |
| 83 time.sleep(120) |
82 | 84 |
83 # Verify log | 85 # Verify log |
84 self.run_verification() | 86 self.run_verification() |
85 self.run_cleanup() | 87 self.run_cleanup() |
OLD | NEW |