Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 |
| OLD | NEW |