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

Unified Diff: tools/json_schema_compiler/js_externs_generator_test.py

Issue 1731733003: [Externs] Support binary/ArrayBuffer type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | 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_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 7447ea74afd8679286d258ad0fcde30d4ee47948..917ce6379fb6db95b2973748096b55367282f66f 100755
--- a/tools/json_schema_compiler/js_externs_generator_test.py
+++ b/tools/json_schema_compiler/js_externs_generator_test.py
@@ -44,6 +44,7 @@ namespace fakeApi {
long? maybe;
(DOMString or Greek or long[]) choice;
object plainObj;
+ ArrayBuffer arrayBuff;
};
callback VoidCallback = void();
@@ -123,7 +124,8 @@ chrome.fakeApi.Bar;
* obj: !chrome.fakeApi.Bar,
* maybe: (number|undefined),
* choice: (string|!chrome.fakeApi.Greek|!Array<number>),
- * plainObj: Object
+ * plainObj: Object,
+ * arrayBuff: ArrayBuffer
* }}
* @see https://developer.chrome.com/extensions/fakeApi#type-Baz
*/
@@ -202,6 +204,10 @@ fake_json = """// Copyright 2014 The Chromium Authors. All rights reserved.
"type": "integer"
}
}
+ },
+ "quu": {
+ "type": "binary",
+ "description": "The array buffer"
}
}
},
@@ -266,7 +272,8 @@ chrome.fakeJson.CrazyEnum = {
* bar: number,
* baz: {
* depth: number
- * }
+ * },
+ * quu: ArrayBuffer
* }} inlineObj Evil inline object! With a super duper duper long string
* description that causes problems!
* @param {function({
« no previous file with comments | « no previous file | tools/json_schema_compiler/js_util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698