summaryrefslogtreecommitdiff
path: root/src/tests/eolian_js/test_object.eo
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2016-03-14 13:14:37 -0300
committerVitor Sousa <vitorsousasilva@gmail.com>2016-03-18 17:46:38 -0300
commita85348b70bdae9672ed2017d9a0c16fa315edcfa (patch)
tree75da634dbd86e26ed5133077239f7d76d9ff6eaa /src/tests/eolian_js/test_object.eo
parentbd200cefc44cb8b03ef465791b4dfc6b6cec85be (diff)
efl js: Update Javascript binding to compile with new Eolian API
Reword test method names to check naming convention.
Diffstat (limited to '')
-rw-r--r--src/tests/eolian_js/test_object.eo94
1 files changed, 47 insertions, 47 deletions
diff --git a/src/tests/eolian_js/test_object.eo b/src/tests/eolian_js/test_object.eo
index c292c24..81043fe 100644
--- a/src/tests/eolian_js/test_object.eo
+++ b/src/tests/eolian_js/test_object.eo
@@ -13,23 +13,23 @@ struct Test.Struct_Ex {
13class Test.Object (Eo.Base) { 13class Test.Object (Eo.Base) {
14 legacy_prefix: null; 14 legacy_prefix: null;
15 methods { 15 methods {
16 method_integral_in_a { 16 method_integral_in_a_check {
17 [[ tests integral in ]] 17 [[ tests integral in ]]
18 params { a: int; } 18 params { a: int; }
19 } 19 }
20 method_integral_out_a { 20 method_integral_out_a_check {
21 [[ tests integral out ]] 21 [[ tests integral out ]]
22 params { @out a: int; } 22 params { @out a: int; }
23 } 23 }
24 method_integral_inout { 24 method_integral_inout_check {
25 [[ tests integral inout ]] 25 [[ tests integral inout ]]
26 params { @inout a: int; } 26 params { @inout a: int; }
27 } 27 }
28 method_integral_return_a { 28 method_integral_return_a_check {
29 [[ tests integral result ]] 29 [[ tests integral result ]]
30 return: int; 30 return: int;
31 } 31 }
32 method_div_mod { 32 method_div_mod_check {
33 [[ tests mixed in, outs and result ]] 33 [[ tests mixed in, outs and result ]]
34 params { 34 params {
35 a: int; 35 a: int;
@@ -39,7 +39,7 @@ class Test.Object (Eo.Base) {
39 } 39 }
40 return: bool; 40 return: bool;
41 } 41 }
42 method_and { 42 method_and_check {
43 [[ tests boolean ]] 43 [[ tests boolean ]]
44 params { 44 params {
45 a: bool; 45 a: bool;
@@ -47,7 +47,7 @@ class Test.Object (Eo.Base) {
47 } 47 }
48 return: bool; 48 return: bool;
49 } 49 }
50 method_modf { 50 method_modf_check {
51 [[ tests floating point ]] 51 [[ tests floating point ]]
52 params { 52 params {
53 a: double; 53 a: double;
@@ -55,38 +55,38 @@ class Test.Object (Eo.Base) {
55 } 55 }
56 return: double; 56 return: double;
57 } 57 }
58 method_uppercase { 58 method_uppercase_check {
59 [[ tests string ]] 59 [[ tests string ]]
60 params { 60 params {
61 @inout str: char*; 61 @inout str: char*;
62 } 62 }
63 } 63 }
64 method_in_null { 64 method_in_null_check {
65 [[ tests null input ]] 65 [[ tests null input ]]
66 params { 66 params {
67 a: char*; 67 a: char*;
68 } 68 }
69 return: bool; 69 return: bool;
70 } 70 }
71 method_out_null { 71 method_out_null_check {
72 [[ tests null output ]] 72 [[ tests null output ]]
73 params { 73 params {
74 @out a: char*; 74 @out a: char*;
75 } 75 }
76 return: bool; 76 return: bool;
77 } 77 }
78 method_inout_null { 78 method_inout_null_check {
79 [[ tests null output ]] 79 [[ tests null output ]]
80 params { 80 params {
81 @inout a: char*; 81 @inout a: char*;
82 } 82 }
83 return: bool; 83 return: bool;
84 } 84 }
85 method_return_null { 85 method_return_null_check {
86 [[ tests null return ]] 86 [[ tests null return ]]
87 return: char*; 87 return: char*;
88 } 88 }
89 method_null { 89 method_null_check {
90 [[ tests null values ]] 90 [[ tests null values ]]
91 params { 91 params {
92 in: char*; 92 in: char*;
@@ -95,7 +95,7 @@ class Test.Object (Eo.Base) {
95 } 95 }
96 return: char*; 96 return: char*;
97 } 97 }
98 method_array_at { 98 method_array_at_check {
99 [[ tests array ]] 99 [[ tests array ]]
100 params { 100 params {
101 array: array<int>*; 101 array: array<int>*;
@@ -103,190 +103,190 @@ class Test.Object (Eo.Base) {
103 } 103 }
104 return: int; 104 return: int;
105 } 105 }
106 method_array_with_42 { 106 method_array_with_42_check {
107 [[ tests parameters ]] 107 [[ tests parameters ]]
108 return: free(own(array<int> *), eina_array_free) @warn_unused; 108 return: free(own(array<int> *), eina_array_free) @warn_unused;
109 } 109 }
110 method_array_in_array_out { 110 method_array_in_array_out_check {
111 [[ tests parameters ]] 111 [[ tests parameters ]]
112 params { 112 params {
113 @in a_in: array<int> *; 113 @in a_in: array<int> *;
114 @out a_out: array<int> *; 114 @out a_out: array<int> *;
115 } 115 }
116 } 116 }
117 method_array_of_objects { 117 method_array_of_objects_check {
118 params { 118 params {
119 @in a_in: array<Test.Object *> *; 119 @in a_in: array<Test.Object *> *;
120 } 120 }
121 return: array<Test.Object *> *; 121 return: array<Test.Object *> *;
122 } 122 }
123 method_array_of_strings { 123 method_array_of_strings_check {
124 params { 124 params {
125 @in a_in: array<const(char) *> *; 125 @in a_in: array<const(char) *> *;
126 } 126 }
127 return: array<const(char) *> *; 127 return: array<const(char) *> *;
128 } 128 }
129 method_array_of_ints { 129 method_array_of_ints_check {
130 params { 130 params {
131 @in a_in: array<int> *; 131 @in a_in: array<int> *;
132 } 132 }
133 return: array<int> *; 133 return: array<int> *;
134 } 134 }
135 method_array_of_bools { 135 method_array_of_bools_check {
136 params { 136 params {
137 @in a_in: array<bool> *; 137 @in a_in: array<bool> *;
138 } 138 }
139 return: array<bool> *; 139 return: array<bool> *;
140 } 140 }
141 method_array_of_doubles { 141 method_array_of_doubles_check {
142 params { 142 params {
143 @in a_in: array<double> *; 143 @in a_in: array<double> *;
144 } 144 }
145 return: array<double> *; 145 return: array<double> *;
146 } 146 }
147 method_array_of_enums { 147 method_array_of_enums_check {
148 params { 148 params {
149 @in a_in: array<Test.Enum_Ex> *; 149 @in a_in: array<Test.Enum_Ex> *;
150 } 150 }
151 return: array<Test.Enum_Ex> *; 151 return: array<Test.Enum_Ex> *;
152 } 152 }
153 method_array_of_structs { 153 method_array_of_structs_check {
154 params { 154 params {
155 @in a_in: array<Test.Struct_Ex> *; 155 @in a_in: array<Test.Struct_Ex> *;
156 } 156 }
157 return: array<Test.Struct_Ex> *; 157 return: array<Test.Struct_Ex> *;
158 } 158 }
159 method_list_with_42 { 159 method_list_with_42_check {
160 [[ tests parameters ]] 160 [[ tests parameters ]]
161 return: free(own(list<int> *), eina_list_free) @warn_unused; 161 return: free(own(list<int> *), eina_list_free) @warn_unused;
162 } 162 }
163 method_list_in_list_out { 163 method_list_in_list_out_check {
164 [[ tests parameters ]] 164 [[ tests parameters ]]
165 params { 165 params {
166 @in l_in: list<int> *; 166 @in l_in: list<int> *;
167 @out l_out: list<int> *; 167 @out l_out: list<int> *;
168 } 168 }
169 } 169 }
170 method_list_of_objects { 170 method_list_of_objects_check {
171 params { 171 params {
172 @in l_in: list<Test.Object *> *; 172 @in l_in: list<Test.Object *> *;
173 } 173 }
174 return: list<Test.Object *> *; 174 return: list<Test.Object *> *;
175 } 175 }
176 method_list_of_strings { 176 method_list_of_strings_check {
177 params { 177 params {
178 @in l_in: list<const(char) *> *; 178 @in l_in: list<const(char) *> *;
179 } 179 }
180 return: list<const(char) *> *; 180 return: list<const(char) *> *;
181 } 181 }
182 method_list_of_ints { 182 method_list_of_ints_check {
183 params { 183 params {
184 @in l_in: list<int> *; 184 @in l_in: list<int> *;
185 } 185 }
186 return: list<int> *; 186 return: list<int> *;
187 } 187 }
188 method_list_of_bools { 188 method_list_of_bools_check {
189 params { 189 params {
190 @in l_in: list<bool> *; 190 @in l_in: list<bool> *;
191 } 191 }
192 return: list<bool> *; 192 return: list<bool> *;
193 } 193 }
194 method_list_of_doubles { 194 method_list_of_doubles_check {
195 params { 195 params {
196 @in l_in: list<double> *; 196 @in l_in: list<double> *;
197 } 197 }
198 return: list<double> *; 198 return: list<double> *;
199 } 199 }
200 method_list_of_enums { 200 method_list_of_enums_check {
201 params { 201 params {
202 @in l_in: list<Test.Enum_Ex> *; 202 @in l_in: list<Test.Enum_Ex> *;
203 } 203 }
204 return: list<Test.Enum_Ex> *; 204 return: list<Test.Enum_Ex> *;
205 } 205 }
206 method_list_of_structs { 206 method_list_of_structs_check {
207 params { 207 params {
208 @in l_in: list<Test.Struct_Ex> *; 208 @in l_in: list<Test.Struct_Ex> *;
209 } 209 }
210 return: list<Test.Struct_Ex> *; 210 return: list<Test.Struct_Ex> *;
211 } 211 }
212 method_accessor_of_objects { 212 method_accessor_of_objects_check {
213 params { 213 params {
214 @in a_in: accessor<Test.Object *> *; 214 @in a_in: accessor<Test.Object *> *;
215 } 215 }
216 return: accessor<Test.Object *> *; 216 return: accessor<Test.Object *> *;
217 } 217 }
218 method_accessor_of_strings { 218 method_accessor_of_strings_check {
219 params { 219 params {
220 @in a_in: accessor<const(char) *> *; 220 @in a_in: accessor<const(char) *> *;
221 } 221 }
222 return: accessor<const(char) *> *; 222 return: accessor<const(char) *> *;
223 } 223 }
224 method_accessor_of_ints { 224 method_accessor_of_ints_check {
225 params { 225 params {
226 @in a_in: accessor<int> *; 226 @in a_in: accessor<int> *;
227 } 227 }
228 return: accessor<int> *; 228 return: accessor<int> *;
229 } 229 }
230 method_accessor_of_bools { 230 method_accessor_of_bools_check {
231 params { 231 params {
232 @in a_in: accessor<bool> *; 232 @in a_in: accessor<bool> *;
233 } 233 }
234 return: accessor<bool> *; 234 return: accessor<bool> *;
235 } 235 }
236 method_accessor_of_doubles { 236 method_accessor_of_doubles_check {
237 params { 237 params {
238 @in a_in: accessor<double> *; 238 @in a_in: accessor<double> *;
239 } 239 }
240 return: accessor<double> *; 240 return: accessor<double> *;
241 } 241 }
242 method_accessor_of_enums { 242 method_accessor_of_enums_check {
243 params { 243 params {
244 @in a_in: accessor<Test.Enum_Ex> *; 244 @in a_in: accessor<Test.Enum_Ex> *;
245 } 245 }
246 return: accessor<Test.Enum_Ex> *; 246 return: accessor<Test.Enum_Ex> *;
247 } 247 }
248 method_accessor_of_structs { 248 method_accessor_of_structs_check {
249 params { 249 params {
250 @in a_in: accessor<Test.Struct_Ex> *; 250 @in a_in: accessor<Test.Struct_Ex> *;
251 } 251 }
252 return: accessor<Test.Struct_Ex> *; 252 return: accessor<Test.Struct_Ex> *;
253 } 253 }
254 method_array_of_arrays_of_ints { 254 method_array_of_arrays_of_ints_check {
255 params { 255 params {
256 @in a_in: array<array<int> *> *; 256 @in a_in: array<array<int> *> *;
257 } 257 }
258 return: array<array<int> *> *; 258 return: array<array<int> *> *;
259 } 259 }
260 method_list_of_lists_of_ints { 260 method_list_of_lists_of_ints_check {
261 params { 261 params {
262 @in l_in: list<list<int> *> *; 262 @in l_in: list<list<int> *> *;
263 } 263 }
264 return: list<list<int> *> *; 264 return: list<list<int> *> *;
265 } 265 }
266 method_array_of_lists_of_ints { 266 method_array_of_lists_of_ints_check {
267 params { 267 params {
268 @in a_in: array<list<int> *> *; 268 @in a_in: array<list<int> *> *;
269 } 269 }
270 return: array<list<int> *> *; 270 return: array<list<int> *> *;
271 } 271 }
272 method_list_of_arrays_of_ints { 272 method_list_of_arrays_of_ints_check {
273 params { 273 params {
274 @in l_in: list<array<int> *> *; 274 @in l_in: list<array<int> *> *;
275 } 275 }
276 return: list<array<int> *> *; 276 return: list<array<int> *> *;
277 } 277 }
278 method_list_with_opaque_elements { 278 method_list_with_opaque_elements_check {
279 return: const(list<Elm.Calendar.Mark*>)*; 279 return: const(list<Elm.Calendar.Mark*>)*;
280 } 280 }
281 method_in_enum_return_enum { 281 method_in_enum_return_enum_check {
282 params { e: Test.Enum_Ex; } 282 params { e: Test.Enum_Ex; }
283 return: Test.Enum_Ex; 283 return: Test.Enum_Ex;
284 } 284 }
285 method_in_struct_return_struct { 285 method_in_struct_return_struct_check {
286 params { e: Test.Struct_Ex *; } 286 params { e: Test.Struct_Ex *; }
287 return: Test.Struct_Ex *; 287 return: Test.Struct_Ex *;
288 } 288 }
289 call_event { 289 event_emit {
290 } 290 }
291 event_repeated_event_name { 291 event_repeated_event_name {
292 } 292 }