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

Unified Diff: tools/telemetry/telemetry/core/extension_unittest.py

Issue 165693006: [Telemetry] Factor out common logic between inspector backend lists. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comments Created 6 years, 10 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 | « tools/telemetry/telemetry/core/extension_page.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/extension_unittest.py
diff --git a/tools/telemetry/telemetry/core/extension_unittest.py b/tools/telemetry/telemetry/core/extension_unittest.py
index bc5fd78ded9ab7e69a92fe78338af99f014f7bf7..f17d029a0549294ad8de4326ce8f54263397759e 100644
--- a/tools/telemetry/telemetry/core/extension_unittest.py
+++ b/tools/telemetry/telemetry/core/extension_unittest.py
@@ -11,7 +11,6 @@ import unittest
from telemetry.core import browser_finder
from telemetry.core import extension_to_load
from telemetry.core import util
-from telemetry.core.backends.chrome import extension_dict_backend
from telemetry.unittest import options_for_unittests
@@ -69,8 +68,7 @@ class NonExistentExtensionTest(unittest.TestCase):
browser_to_create = browser_finder.FindBrowser(options)
with browser_to_create.Create() as b:
if b.supports_extensions:
- self.assertRaises(extension_dict_backend.ExtensionNotFoundException,
- lambda: b.extensions[load_extension])
+ self.assertRaises(KeyError, lambda: b.extensions[load_extension])
class MultipleExtensionTest(unittest.TestCase):
def setUp(self):
« no previous file with comments | « tools/telemetry/telemetry/core/extension_page.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698