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

Unified Diff: chrome/test/data/extensions/api_test/events/background.js

Issue 15091002: Lazily load API schemas from resource files and convert all APIs to features (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos tests Created 7 years, 6 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
Index: chrome/test/data/extensions/api_test/events/background.js
diff --git a/chrome/test/data/extensions/api_test/events/background.js b/chrome/test/data/extensions/api_test/events/background.js
index dee47d8d9f03ff472dbb0d9c76df91ce23dfb14c..3d903782d16e277b159eec0f3287aaf0bb51347b 100644
--- a/chrome/test/data/extensions/api_test/events/background.js
+++ b/chrome/test/data/extensions/api_test/events/background.js
@@ -3,24 +3,6 @@
// found in the LICENSE file.
chrome.test.runTests([
- // Tests that attaching and detaching to an event for which we don't have
- // permission acts as expected (e.g. we don't DCHECK!).
- function attachAndDetachNoPermisssions() {
- function dummy() {};
- try {
- chrome.management.onEnabled.addListener(dummy);
- chrome.test.fail();
- } catch (e) {
- chrome.test.assertTrue(
- e.message.search("You do not have permission") >= 0,
- e.message);
- }
- chrome.test.assertFalse(chrome.management.onEnabled.hasListeners());
- // Browser should not DCHECK.
- chrome.management.onEnabled.removeListener(dummy);
- chrome.test.succeed();
- },
-
// Tests that attaching a named event twice will fail.
function doubleAttach() {
function dummy() {};

Powered by Google App Engine
This is Rietveld 408576698