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

Side by Side Diff: chrome/test/functional/prefs.py

Issue 8431014: Update LocalState pyauto calls to work without first browser window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import logging 6 import logging
7 import os 7 import os
8 import shutil 8 import shutil
9 import sys 9 import sys
10 10
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 url = self.GetFileURLForDataPath( 181 url = self.GetFileURLForDataPath(
182 os.path.join('javaScriptTitle.html')) 182 os.path.join('javaScriptTitle.html'))
183 title1 = 'Title from script javascript enabled' 183 title1 = 'Title from script javascript enabled'
184 self.NavigateToURL(url) 184 self.NavigateToURL(url)
185 self.assertEqual(title1, self.GetActiveTabTitle()) 185 self.assertEqual(title1, self.GetActiveTabTitle())
186 self.SetPrefs('webkit.webprefs.javascript_enabled', False) 186 self.SetPrefs('webkit.webprefs.javascript_enabled', False)
187 title = 'This is html title' 187 title = 'This is html title'
188 self.NavigateToURL(url) 188 self.NavigateToURL(url)
189 self.assertEqual(title, self.GetActiveTabTitle()) 189 self.assertEqual(title, self.GetActiveTabTitle())
190 190
191 def testHaveLocalStatePrefs(self):
192 """Verify that we have some Local State prefs."""
193 self.assertTrue(self.GetLocalStatePrefsInfo())
dennis_jeffrey 2011/10/31 22:32:22 nit: indent the above 2 lines by 2 fewer spaces ea
Nirnimesh 2011/10/31 23:29:49 Ah.. autotest python indent system has damaged my
194
191 195
192 if __name__ == '__main__': 196 if __name__ == '__main__':
193 pyauto_functional.Main() 197 pyauto_functional.Main()
194 198
OLDNEW
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/test/pyautolib/pyauto.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698