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

Unified Diff: chrome/test/data/extensions/api_test/bindings/nocompile/page.js

Issue 850603003: Add a 'nocompile' option to Extension feature files, and annotate all Devtools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oops Created 5 years, 11 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/bindings/nocompile/page.js
diff --git a/chrome/test/data/extensions/api_test/bindings/nocompile/page.js b/chrome/test/data/extensions/api_test/bindings/nocompile/page.js
new file mode 100644
index 0000000000000000000000000000000000000000..137af7099446391f46085dc17f43d1ebac3a85f9
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/bindings/nocompile/page.js
@@ -0,0 +1,9 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Devtools APIs are all marked nocompile, so they shouldn't exist.
+chrome.test.assertEq(undefined, chrome.devtools);
+chrome.test.assertEq('undefined', typeof chrome.devtools);
+chrome.test.assertFalse(chrome.hasOwnProperty('devtools'));
+chrome.test.succeed();
« no previous file with comments | « chrome/test/data/extensions/api_test/bindings/nocompile/page.html ('k') | extensions/common/features/base_feature_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698