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

Side by Side Diff: chrome/test/functional/gtalk/gtalk_base_test.py

Issue 10285003: Do not run gtalk tests with sandbox disabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium 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 """Base GTalk tests. 5 """Base GTalk tests.
6 6
7 This module contains a set of common utilities for querying 7 This module contains a set of common utilities for querying
8 and manipulating the Google Talk Chrome Extension. 8 and manipulating the Google Talk Chrome Extension.
9 """ 9 """
10 10
11 import logging 11 import logging
12 import re 12 import re
13 import os 13 import os
14 14
15 import pyauto_gtalk 15 import pyauto_gtalk
16 import pyauto 16 import pyauto
17 import pyauto_errors 17 import pyauto_errors
18 18
19 19
20 class GTalkBaseTest(pyauto.PyUITest): 20 class GTalkBaseTest(pyauto.PyUITest):
21 """Base test class for testing GTalk.""" 21 """Base test class for testing GTalk."""
22 22
23 _injected_js = None 23 _injected_js = None
24 24
25 def ExtraChromeFlags(self):
26 return pyauto.PyUITest.ExtraChromeFlags(self) + ['--no-sandbox']
27
28 def Prompt(self, text): 25 def Prompt(self, text):
29 """Pause execution with debug output. 26 """Pause execution with debug output.
30 27
31 Args: 28 Args:
32 text: The debug output. 29 text: The debug output.
33 """ 30 """
34 text = str(text) 31 text = str(text)
35 raw_input('--------------------> ' + text) 32 raw_input('--------------------> ' + text)
36 33
37 def InstallGTalkExtension(self, gtalk_version): 34 def InstallGTalkExtension(self, gtalk_version):
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 return tab 254 return tab
258 i = i + 1 255 i = i + 1
259 return None 256 return None
260 257
261 def _GetInjectedJs(self): 258 def _GetInjectedJs(self):
262 """Get the javascript to inject in the execution environment.""" 259 """Get the javascript to inject in the execution environment."""
263 if self._injected_js is None: 260 if self._injected_js is None:
264 self._injected_js = open( 261 self._injected_js = open(
265 os.path.join(os.path.dirname(__file__), 'jsutils.js')).read() 262 os.path.join(os.path.dirname(__file__), 'jsutils.js')).read()
266 return self._injected_js 263 return self._injected_js
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698