Chromium Code Reviews| Index: functional/extensions.py |
| =================================================================== |
| --- functional/extensions.py (revision 98435) |
| +++ functional/extensions.py (working copy) |
| @@ -185,6 +185,21 @@ |
| extension = self._GetExtensionInfoById(self.GetExtensionsInfo(), ext_id) |
| self.assertFalse(extension['allowed_in_incognito']) |
| + def testAdblockExtensionCrash(self): |
| + """Test AdBlock extension successfully installed and enabled, and do not |
| + cause browser crash. |
| + """ |
| + # TODO: need to make pyauto test accept arguments. |
|
Nirnimesh
2011/08/31 08:28:55
Remove the TODO. The test looks fine without it.
vivianz
2011/08/31 21:20:16
Done.
|
| + crx_file_path = os.path.abspath( |
| + os.path.join(self.DataDir(), 'extensions', 'adblock.crx')) |
| + ext_id = self.InstallExtension(pyauto.FilePath(crx_file_path), False); |
| + self.assertTrue(ext_id, 'Failed to install extension.') |
|
Nirnimesh
2011/08/31 08:28:55
msg='Failed to install extension'
vivianz
2011/08/31 21:20:16
Done.
|
| + |
| + self.RestartBrowser(clear_profile=False) |
| + extension = self._GetExtensionInfoById(self.GetExtensionsInfo(), ext_id) |
| + self.assertTrue(extension['is_enabled']) |
| + self.assertFalse(extension['allowed_in_incognito']) |
| + |
| if __name__ == '__main__': |
| pyauto_functional.Main() |