OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 pyauto_functional | 6 import pyauto_functional |
7 import pyauto | 7 import pyauto |
8 import test_utils | 8 import test_utils |
9 | 9 |
10 | 10 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 self._WaitForAndAssertResult('setVersion(1) complete') | 94 self._WaitForAndAssertResult('setVersion(1) complete') |
95 | 95 |
96 # Start on a different URL to force a new renderer process. | 96 # Start on a different URL to force a new renderer process. |
97 self.AppendTab(pyauto.GURL('about:blank')) | 97 self.AppendTab(pyauto.GURL('about:blank')) |
98 self.NavigateToURL(url + '#tab2') | 98 self.NavigateToURL(url + '#tab2') |
99 self._WaitForAndAssertResult('setVersion(2) blocked', tab_index=1) | 99 self._WaitForAndAssertResult('setVersion(2) blocked', tab_index=1) |
100 self._ClearResult(tab_index=1) | 100 self._ClearResult(tab_index=1) |
101 | 101 |
102 self.KillRendererProcess(pid) | 102 self.KillRendererProcess(pid) |
103 self.assertEqual(self.GetTabCount(), 2) | 103 self.assertEqual(self.GetTabCount(), 2) |
104 self.GetBrowserWindow(0).GetTab(0).Close(True) | 104 self.CloseTab() |
105 | 105 |
106 self._WaitForAndAssertResult('setVersion(2) complete') | 106 self._WaitForAndAssertResult('setVersion(2) complete') |
107 | 107 |
108 | 108 |
109 if __name__ == '__main__': | 109 if __name__ == '__main__': |
110 pyauto_functional.Main() | 110 pyauto_functional.Main() |
OLD | NEW |