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

Unified Diff: tools/json_schema_compiler/js_externs_generator_test.py

Issue 2601333002: Update json_schema_compiler to handle the Automation extension API (Closed)
Patch Set: Address lots of feedback Created 3 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: tools/json_schema_compiler/js_externs_generator_test.py
diff --git a/tools/json_schema_compiler/js_externs_generator_test.py b/tools/json_schema_compiler/js_externs_generator_test.py
index 917ce6379fb6db95b2973748096b55367282f66f..20c6bc110c31a0bb977be90dfba2611bc9ed1214 100755
--- a/tools/json_schema_compiler/js_externs_generator_test.py
+++ b/tools/json_schema_compiler/js_externs_generator_test.py
@@ -47,6 +47,12 @@ namespace fakeApi {
ArrayBuffer arrayBuff;
};
+ dictionary Qux {
+ long num;
+ static void go();
+ static void stop();
+ };
+
callback VoidCallback = void();
callback BazGreekCallback = void(Baz baz, Greek greek);
@@ -132,6 +138,30 @@ chrome.fakeApi.Bar;
chrome.fakeApi.Baz;
/**
+ * @constructor
+ * @private
+ * @see https://developer.chrome.com/extensions/fakeApi#type-Qux
+ */
+chrome.fakeApi.Qux = function() {};
+
+/**
+ * @type {number}
+ * @see https://developer.chrome.com/extensions/fakeApi#type-num
+ */
+chrome.fakeApi.Qux.prototype.num;
+
+/**
+ * @see https://developer.chrome.com/extensions/fakeApi#method-go
+ */
+chrome.fakeApi.Qux.prototype.go = function() {};
+
+/**
+ * @see https://developer.chrome.com/extensions/fakeApi#method-stop
+ */
+chrome.fakeApi.Qux.prototype.stop = function() {};
+
+
+/**
* Does something exciting! And what's more, this is a multiline function
* comment! It goes onto multiple lines!
* @param {!chrome.fakeApi.Baz} baz The baz to use.

Powered by Google App Engine
This is Rietveld 408576698