| 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 os | 7 import os |
| 7 import re | 8 import re |
| 8 import types | 9 import types |
| 9 | 10 |
| 10 import pyauto_functional # Must be imported before pyauto | 11 import pyauto_functional # Must be imported before pyauto |
| 11 import pyauto | 12 import pyauto |
| 12 | 13 |
| 13 | 14 |
| 14 class BrowserTest(pyauto.PyUITest): | 15 class BrowserTest(pyauto.PyUITest): |
| 15 """TestCase for Browser info.""" | 16 """TestCase for Browser info.""" |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 # Check if both are sharing a process id. | 203 # Check if both are sharing a process id. |
| 203 self.assertEquals( | 204 self.assertEquals( |
| 204 self.GetBrowserInfo()['windows'][0]['tabs'][0]['renderer_pid'], | 205 self.GetBrowserInfo()['windows'][0]['tabs'][0]['renderer_pid'], |
| 205 self.GetBrowserInfo()['windows'][1]['tabs'][0]['renderer_pid']) | 206 self.GetBrowserInfo()['windows'][1]['tabs'][0]['renderer_pid']) |
| 206 # The shared process id should be different from the previous one. | 207 # The shared process id should be different from the previous one. |
| 207 self.assertNotEqual(shared_pid, | 208 self.assertNotEqual(shared_pid, |
| 208 self.GetBrowserInfo()['windows'][0]['tabs'][0]['renderer_pid']) | 209 self.GetBrowserInfo()['windows'][0]['tabs'][0]['renderer_pid']) |
| 209 | 210 |
| 210 if __name__ == '__main__': | 211 if __name__ == '__main__': |
| 211 pyauto_functional.Main() | 212 pyauto_functional.Main() |
| OLD | NEW |