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: tools/json_schema_compiler/js_interface_generator_test.py

Issue 1513573012: Fix line wrapping in json_schema_compiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Generate -> Append Created 4 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
« no previous file with comments | « tools/json_schema_compiler/js_interface_generator.py ('k') | tools/json_schema_compiler/js_util.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/js_interface_generator_test.py
diff --git a/tools/json_schema_compiler/js_interface_generator_test.py b/tools/json_schema_compiler/js_interface_generator_test.py
index 2a5e492d906ce6b62f98e593b28e760d658f16b5..6821ac4c45398d77b189a589826bd55d2421153a 100755
--- a/tools/json_schema_compiler/js_interface_generator_test.py
+++ b/tools/json_schema_compiler/js_interface_generator_test.py
@@ -19,7 +19,7 @@ fake_idl = """
// A totally fake API.
namespace fakeApi {
- enum Grk {
+ enum Greek {
ALPHA,
BETA,
GAMMA,
@@ -34,21 +34,21 @@ namespace fakeApi {
DOMString str;
long num;
boolean b;
- Grk letter;
- Grk? optionalLetter;
+ Greek letter;
+ Greek? optionalLetter;
long[] arr;
Bar[]? optionalObjArr;
- Grk[] enumArr;
+ Greek[] enumArr;
any[] anythingGoes;
Bar obj;
long? maybe;
- (DOMString or Grk or long[]) choice;
+ (DOMString or Greek or long[]) choice;
object plainObj;
};
callback VoidCallback = void();
- callback BazGrkCallback = void(Baz baz, Grk greek);
+ callback BazGreekCallback = void(Baz baz, Greek greek);
interface Functions {
// Does something exciting! And what's more, this is a multiline function
@@ -59,7 +59,7 @@ namespace fakeApi {
// |callback| : The callback which will most assuredly in all cases be
// called; that is, of course, iff such a callback was provided and is
// not at all null.
- static void bazGrk(optional BazGrkCallback callback);
+ static void bazGreek(optional BazGreekCallback callback);
[deprecated="Use a new method."] static DOMString returnString();
};
@@ -97,12 +97,13 @@ FakeApi.prototype = {
doSomething: assertNotReached,
/**
- * @param {function(!chrome.fakeApi.Baz, !chrome.fakeApi.Grk):void=} callback
- * The callback which will most assuredly in all cases be called; that is,
- * of course, iff such a callback was provided and is not at all null.
- * @see https://developer.chrome.com/extensions/fakeApi#method-bazGrk
+ * @param {function(!chrome.fakeApi.Baz, !chrome.fakeApi.Greek):void=}
+ * callback The callback which will most assuredly in all cases be called;
+ * that is, of course, iff such a callback was provided and is not at all
+ * null.
+ * @see https://developer.chrome.com/extensions/fakeApi#method-bazGreek
*/
- bazGrk: assertNotReached,
+ bazGreek: assertNotReached,
/**
* Fired when we realize it's a trap!
« no previous file with comments | « tools/json_schema_compiler/js_interface_generator.py ('k') | tools/json_schema_compiler/js_util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698