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

Unified Diff: functional/extensions.py

Issue 7794011: Add new test for top extension adblock crash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/test/
Patch Set: '' Created 9 years, 4 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « data/extensions/adblock.crx ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: functional/extensions.py
===================================================================
--- functional/extensions.py (revision 98435)
+++ functional/extensions.py (working copy)
@@ -185,6 +185,20 @@
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.
+ """
+ crx_file_path = os.path.abspath(
+ os.path.join(self.DataDir(), 'extensions', 'adblock.crx'))
+ ext_id = self.InstallExtension(crx_file_path, False);
+ self.assertTrue(ext_id, msg='Failed to install extension.')
+
+ 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()
« no previous file with comments | « data/extensions/adblock.crx ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698