summaryrefslogtreecommitdiff
path: root/test/JsDeepConstructorTest.thrift
diff options
context:
space:
mode:
authorHenrique Mendonça <henrique@apache.org>2015-06-25 22:31:41 +1000
committerHenrique Mendonça <henrique@apache.org>2015-06-25 22:31:41 +1000
commit15d904240e8ee446ce5b9549c1082ea078389774 (patch)
treeda0955adac92f525b67273fbe4c96c14dc54304d /test/JsDeepConstructorTest.thrift
parent0b8132d20ea691c56f0fe973072a58086999a4d8 (diff)
downloadthrift-15d904240e8ee446ce5b9549c1082ea078389774.tar.gz
THRIFT-3122 Javascript struct constructor should properly initialize struct and container members from plain js arguments
Patch: Igor Tkach This closes #519
Diffstat (limited to 'test/JsDeepConstructorTest.thrift')
-rw-r--r--test/JsDeepConstructorTest.thrift12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/JsDeepConstructorTest.thrift b/test/JsDeepConstructorTest.thrift
new file mode 100644
index 000000000..9150854b2
--- /dev/null
+++ b/test/JsDeepConstructorTest.thrift
@@ -0,0 +1,12 @@
+struct Simple {
+ 1: string value
+}
+
+struct Complex {
+ 1: Simple struct_field
+ 2: list<Simple> struct_list_field
+ 3: set<Simple> struct_set_field
+ 4: map<string,Simple> struct_map_field
+ 5: list<set<map<string,list<Simple>>>> struct_nested_containers_field
+ 6: map<string, list<map<string,Simple>> > struct_nested_containers_field2
+}