| 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 88c2a09f04d0773e10fa5643d730557c2cf42975..fe7ab688d03c509e18958bc1870dfa061cf175b3 100755
|
| --- a/tools/json_schema_compiler/js_externs_generator_test.py
|
| +++ b/tools/json_schema_compiler/js_externs_generator_test.py
|
| @@ -63,6 +63,8 @@ namespace fakeApi {
|
|
|
| callback BazGreekCallback = void(Baz baz, Greek greek);
|
|
|
| + callback OptionalParamCallback = void(optional Qux qux);
|
| +
|
| interface Functions {
|
| // Does something exciting! And what's more, this is a multiline function
|
| // comment! It goes onto multiple lines!
|
| @@ -75,6 +77,8 @@ namespace fakeApi {
|
| static void bazGreek(optional BazGreekCallback callback);
|
|
|
| [deprecated="Use a new method."] static DOMString returnString();
|
| +
|
| + static void optionalParam(optional OptionalParamCallback callback);
|
| };
|
|
|
| interface Events {
|
| @@ -205,6 +209,12 @@ chrome.fakeApi.bazGreek = function(callback) {};
|
| chrome.fakeApi.returnString = function() {};
|
|
|
| /**
|
| + * @param {function(!chrome.fakeApi.Qux|undefined):void=} callback
|
| + * @see https://developer.chrome.com/extensions/fakeApi#method-optionalParam
|
| + */
|
| +chrome.fakeApi.optionalParam = function(callback) {};
|
| +
|
| +/**
|
| * Fired when we realize it's a trap!
|
| * @type {!ChromeEvent}
|
| * @see https://developer.chrome.com/extensions/fakeApi#event-onTrapDetected
|
|
|