Index: mojo/apps/js/bindings/sample_service_unittests.js |
diff --git a/mojo/apps/js/bindings/sample_service_unittests.js b/mojo/apps/js/bindings/sample_service_unittests.js |
index 9b9165df64e06a1351a85b7b71732ecc3369d111..6e438b3864703b5f8884c368791b2eb88a54654a 100644 |
--- a/mojo/apps/js/bindings/sample_service_unittests.js |
+++ b/mojo/apps/js/bindings/sample_service_unittests.js |
@@ -98,6 +98,19 @@ define([ |
expect(foo.data[0]).toBe(1); |
expect(foo.data[1]).toBe(2); |
expect(foo.data[2]).toBe(3); |
+ |
+ var inner = new sample.DefaultsTestInner(); |
+ expect(inner.names.length).toBe(1); |
+ expect(inner.names[0]).toBe("Jim"); |
+ expect(inner.height).toBe(6*12); |
+ |
+ var full = new sample.DefaultsTest(); |
+ expect(full.people.length).toBe(1); |
+ expect(full.people[0].age).toBe(32); |
+ expect(full.people[0].names.length).toBe(2); |
+ expect(full.people[0].names[0]).toBe("Bob"); |
+ expect(full.people[0].names[1]).toBe("Bobby"); |
+ expect(full.people[0].height).toBe(6*12); |
} |
function ServiceImpl() { |