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

Unified Diff: mojo/public/bindings/sample/sample_service_unittests.js

Issue 141893004: Support default values for arrays of POD data types in mojom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | « mojo/public/bindings/pylib/parse/mojo_parser.py ('k') | mojo/public/tests/bindings/sample_service.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/bindings/sample/sample_service_unittests.js
diff --git a/mojo/public/bindings/sample/sample_service_unittests.js b/mojo/public/bindings/sample/sample_service_unittests.js
index 1a8400a3652f976217511c7eb4400a3898140d09..9b9165df64e06a1351a85b7b71732ecc3369d111 100644
--- a/mojo/public/bindings/sample/sample_service_unittests.js
+++ b/mojo/public/bindings/sample/sample_service_unittests.js
@@ -93,6 +93,11 @@ define([
var foo = new sample.Foo();
expect(foo.name).toBe("Fooby");
expect(foo.a).toBeTruthy();
+
+ expect(foo.data.length).toBe(3);
+ expect(foo.data[0]).toBe(1);
+ expect(foo.data[1]).toBe(2);
+ expect(foo.data[2]).toBe(3);
}
function ServiceImpl() {
« no previous file with comments | « mojo/public/bindings/pylib/parse/mojo_parser.py ('k') | mojo/public/tests/bindings/sample_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698