@@ -4,8 +4,8 @@ module("Generated Element interface tests", {
4
4
} ) ;
5
5
6
6
test ( "<xml3d> interface test" , function ( ) {
7
- var e = document . createElementNS ( XML3D . xml3dNS , "xml3d" ) ;
8
- ok ( e , "xml3d exits " ) ;
7
+ var e = document . createElement ( "xml3d" ) ;
8
+ ok ( e , "xml3d exists " ) ;
9
9
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
10
10
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
11
11
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
@@ -30,8 +30,8 @@ test("<xml3d> interface test", function() {
30
30
equal ( typeof e . view , "string" , "view is of type 'string'" ) ;
31
31
} ) ;
32
32
test ( "<data> interface test" , function ( ) {
33
- var e = document . createElementNS ( XML3D . xml3dNS , "data" ) ;
34
- ok ( e , "data exits " ) ;
33
+ var e = document . createElement ( "data" ) ;
34
+ ok ( e , "data exists " ) ;
35
35
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
36
36
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
37
37
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
@@ -43,15 +43,15 @@ test("<data> interface test", function() {
43
43
equal ( typeof e . src , "string" , "src is of type 'string'" ) ;
44
44
} ) ;
45
45
test ( "<defs> interface test" , function ( ) {
46
- var e = document . createElementNS ( XML3D . xml3dNS , "defs" ) ;
47
- ok ( e , "defs exits " ) ;
46
+ var e = document . createElement ( "defs" ) ;
47
+ ok ( e , "defs exists " ) ;
48
48
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
49
49
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
50
50
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
51
51
} ) ;
52
52
test ( "<group> interface test" , function ( ) {
53
- var e = document . createElementNS ( XML3D . xml3dNS , "group" ) ;
54
- ok ( e , "group exits " ) ;
53
+ var e = document . createElement ( "group" ) ;
54
+ ok ( e , "group exists " ) ;
55
55
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
56
56
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
57
57
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
@@ -73,8 +73,8 @@ test("<group> interface test", function() {
73
73
equal ( typeof e . material , "string" , "material is of type 'string'" ) ;
74
74
} ) ;
75
75
test ( "<mesh> interface test" , function ( ) {
76
- var e = document . createElementNS ( XML3D . xml3dNS , "mesh" ) ;
77
- ok ( e , "mesh exits " ) ;
76
+ var e = document . createElement ( "mesh" ) ;
77
+ ok ( e , "mesh exists " ) ;
78
78
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
79
79
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
80
80
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
@@ -91,6 +91,7 @@ test("<mesh> interface test", function() {
91
91
equal ( typeof e . type , "string" , "type is of type 'string'" ) ;
92
92
equal ( typeof e . compute , "string" , "compute is of type 'string'" ) ;
93
93
equal ( typeof e . getWorldMatrix , "function" , "getWorldMatrix is of type 'function'" ) ;
94
+ equal ( typeof e . getLocalMatrix , "function" , "getLocalMatrix is of type 'function'" ) ;
94
95
equal ( typeof e . getLocalBoundingBox , "function" , "getLocalBoundingBox is of type 'function'" ) ;
95
96
equal ( typeof e . getWorldBoundingBox , "function" , "getWorldBoundingBox is of type 'function'" ) ;
96
97
equal ( typeof e . getOutputNames , "function" , "getOutputNames is of type 'function'" ) ;
@@ -99,8 +100,8 @@ test("<mesh> interface test", function() {
99
100
equal ( typeof e . src , "string" , "src is of type 'string'" ) ;
100
101
} ) ;
101
102
test ( "<transform> interface test" , function ( ) {
102
- var e = document . createElementNS ( XML3D . xml3dNS , "transform" ) ;
103
- ok ( e , "transform exits " ) ;
103
+ var e = document . createElement ( "transform" ) ;
104
+ ok ( e , "transform exists " ) ;
104
105
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
105
106
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
106
107
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
@@ -111,8 +112,8 @@ test("<transform> interface test", function() {
111
112
equal ( typeof e . scaleOrientation , "object" , "scaleOrientation is of type 'object'" ) ;
112
113
} ) ;
113
114
test ( "<material> interface test" , function ( ) {
114
- var e = document . createElementNS ( XML3D . xml3dNS , "material" ) ;
115
- ok ( e , "material exits " ) ;
115
+ var e = document . createElement ( "material" ) ;
116
+ ok ( e , "material exists " ) ;
116
117
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
117
118
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
118
119
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
@@ -124,8 +125,8 @@ test("<material> interface test", function() {
124
125
equal ( typeof e . src , "string" , "src is of type 'string'" ) ;
125
126
} ) ;
126
127
test ( "<light> interface test" , function ( ) {
127
- var e = document . createElementNS ( XML3D . xml3dNS , "light" ) ;
128
- ok ( e , "light exits " ) ;
128
+ var e = document . createElement ( "light" ) ;
129
+ ok ( e , "light exists " ) ;
129
130
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
130
131
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
131
132
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
@@ -141,21 +142,22 @@ test("<light> interface test", function() {
141
142
equal ( typeof e . onkeyup , "object" , "onkeyup is of type 'object'" ) ;
142
143
equal ( typeof e . global , "boolean" , "global is of type 'boolean'" ) ;
143
144
equal ( typeof e . getWorldMatrix , "function" , "getWorldMatrix is of type 'function'" ) ;
145
+ equal ( typeof e . getLocalMatrix , "function" , "getLocalMatrix is of type 'function'" ) ;
144
146
equal ( typeof e . model , "string" , "model is of type 'string'" ) ;
145
147
} ) ;
146
148
147
149
test ( "<script> interface test" , function ( ) {
148
- var e = document . createElementNS ( XML3D . xml3dNS , "script" ) ;
149
- ok ( e , "script exits " ) ;
150
+ var e = document . createElement ( "script" ) ;
151
+ ok ( e , "script exists " ) ;
150
152
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
151
153
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
152
154
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
153
155
equal ( typeof e . src , "string" , "src is of type 'string'" ) ;
154
156
equal ( typeof e . type , "string" , "type is of type 'string'" ) ;
155
157
} ) ;
156
158
test ( "<float> interface test" , function ( ) {
157
- var e = document . createElementNS ( XML3D . xml3dNS , "float" ) ;
158
- ok ( e , "float exits " ) ;
159
+ var e = document . createElement ( "float" ) ;
160
+ ok ( e , "float exists " ) ;
159
161
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
160
162
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
161
163
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
@@ -165,8 +167,8 @@ test("<float> interface test", function() {
165
167
equal ( typeof e . setScriptValue , "function" , "setScriptValue is of type 'function'" ) ;
166
168
} ) ;
167
169
test ( "<float2> interface test" , function ( ) {
168
- var e = document . createElementNS ( XML3D . xml3dNS , "float2" ) ;
169
- ok ( e , "float2 exits " ) ;
170
+ var e = document . createElement ( "float2" ) ;
171
+ ok ( e , "float2 exists " ) ;
170
172
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
171
173
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
172
174
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
@@ -176,8 +178,8 @@ test("<float2> interface test", function() {
176
178
equal ( typeof e . setScriptValue , "function" , "setScriptValue is of type 'function'" ) ;
177
179
} ) ;
178
180
test ( "<float3> interface test" , function ( ) {
179
- var e = document . createElementNS ( XML3D . xml3dNS , "float3" ) ;
180
- ok ( e , "float3 exits " ) ;
181
+ var e = document . createElement ( "float3" ) ;
182
+ ok ( e , "float3 exists " ) ;
181
183
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
182
184
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
183
185
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
@@ -187,8 +189,8 @@ test("<float3> interface test", function() {
187
189
equal ( typeof e . setScriptValue , "function" , "setScriptValue is of type 'function'" ) ;
188
190
} ) ;
189
191
test ( "<float4> interface test" , function ( ) {
190
- var e = document . createElementNS ( XML3D . xml3dNS , "float4" ) ;
191
- ok ( e , "float4 exits " ) ;
192
+ var e = document . createElement ( "float4" ) ;
193
+ ok ( e , "float4 exists " ) ;
192
194
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
193
195
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
194
196
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
@@ -198,8 +200,8 @@ test("<float4> interface test", function() {
198
200
equal ( typeof e . setScriptValue , "function" , "setScriptValue is of type 'function'" ) ;
199
201
} ) ;
200
202
test ( "<float4x4> interface test" , function ( ) {
201
- var e = document . createElementNS ( XML3D . xml3dNS , "float4x4" ) ;
202
- ok ( e , "float4x4 exits " ) ;
203
+ var e = document . createElement ( "float4x4" ) ;
204
+ ok ( e , "float4x4 exists " ) ;
203
205
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
204
206
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
205
207
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
@@ -209,8 +211,8 @@ test("<float4x4> interface test", function() {
209
211
equal ( typeof e . setScriptValue , "function" , "setScriptValue is of type 'function'" ) ;
210
212
} ) ;
211
213
test ( "<int> interface test" , function ( ) {
212
- var e = document . createElementNS ( XML3D . xml3dNS , "int" ) ;
213
- ok ( e , "int exits " ) ;
214
+ var e = document . createElement ( "int" ) ;
215
+ ok ( e , "int exists " ) ;
214
216
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
215
217
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
216
218
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
@@ -220,8 +222,8 @@ test("<int> interface test", function() {
220
222
equal ( typeof e . setScriptValue , "function" , "setScriptValue is of type 'function'" ) ;
221
223
} ) ;
222
224
test ( "<int4> interface test" , function ( ) {
223
- var e = document . createElementNS ( XML3D . xml3dNS , "int4" ) ;
224
- ok ( e , "int4 exits " ) ;
225
+ var e = document . createElement ( "int4" ) ;
226
+ ok ( e , "int4 exists " ) ;
225
227
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
226
228
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
227
229
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
@@ -231,8 +233,8 @@ test("<int4> interface test", function() {
231
233
equal ( typeof e . setScriptValue , "function" , "setScriptValue is of type 'function'" ) ;
232
234
} ) ;
233
235
test ( "<bool> interface test" , function ( ) {
234
- var e = document . createElementNS ( XML3D . xml3dNS , "bool" ) ;
235
- ok ( e , "bool exits " ) ;
236
+ var e = document . createElement ( "bool" ) ;
237
+ ok ( e , "bool exists " ) ;
236
238
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
237
239
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
238
240
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
@@ -242,8 +244,8 @@ test("<bool> interface test", function() {
242
244
equal ( typeof e . setScriptValue , "function" , "setScriptValue is of type 'function'" ) ;
243
245
} ) ;
244
246
test ( "<texture> interface test" , function ( ) {
245
- var e = document . createElementNS ( XML3D . xml3dNS , "texture" ) ;
246
- ok ( e , "texture exits " ) ;
247
+ var e = document . createElement ( "texture" ) ;
248
+ ok ( e , "texture exists " ) ;
247
249
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
248
250
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
249
251
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
@@ -256,16 +258,16 @@ test("<texture> interface test", function() {
256
258
equal ( typeof e . anisotropy , "string" , "anisotropy is of type 'string'" ) ;
257
259
} ) ;
258
260
test ( "<img> interface test" , function ( ) {
259
- var e = document . createElementNS ( XML3D . xml3dNS , "img" ) ;
260
- ok ( e , "img exits " ) ;
261
+ var e = document . createElement ( "img" ) ;
262
+ ok ( e , "img exists " ) ;
261
263
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
262
264
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
263
265
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
264
266
equal ( typeof e . src , "string" , "src is of type 'string'" ) ;
265
267
} ) ;
266
268
test ( "<video> interface test" , function ( ) {
267
- var e = document . createElementNS ( XML3D . xml3dNS , "video" ) ;
268
- ok ( e , "video exits " ) ;
269
+ var e = document . createElement ( "video" ) ;
270
+ ok ( e , "video exists " ) ;
269
271
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
270
272
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
271
273
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
@@ -275,8 +277,8 @@ test("<video> interface test", function() {
275
277
equal ( typeof e . pause , "function" , "pause is of type 'function'" ) ;
276
278
} ) ;
277
279
test ( "<view> interface test" , function ( ) {
278
- var e = document . createElementNS ( XML3D . xml3dNS , "view" ) ;
279
- ok ( e , "view exits " ) ;
280
+ var e = document . createElement ( "view" ) ;
281
+ ok ( e , "view exists " ) ;
280
282
equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
281
283
equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
282
284
equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
@@ -291,5 +293,56 @@ test("<view> interface test", function() {
291
293
equal ( typeof e . onkeydown , "object" , "onkeydown is of type 'object'" ) ;
292
294
equal ( typeof e . onkeyup , "object" , "onkeyup is of type 'object'" ) ;
293
295
equal ( typeof e . getWorldMatrix , "function" , "getWorldMatrix is of type 'function'" ) ;
296
+ equal ( typeof e . getLocalMatrix , "function" , "getLocalMatrix is of type 'function'" ) ;
294
297
equal ( typeof e . getViewMatrix , "function" , "getViewMatrix is of type 'function'" ) ;
295
298
} ) ;
299
+ test ( "<model> interface test" , function ( ) {
300
+ var e = document . createElement ( "model" ) ;
301
+ ok ( e , "model exists" ) ;
302
+ equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
303
+ equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
304
+ equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
305
+ equal ( typeof e . onclick , "object" , "onclick is of type 'object'" ) ;
306
+ equal ( typeof e . ondblclick , "object" , "ondblclick is of type 'object'" ) ;
307
+ equal ( typeof e . onmousedown , "object" , "onmousedown is of type 'object'" ) ;
308
+ equal ( typeof e . onmouseup , "object" , "onmouseup is of type 'object'" ) ;
309
+ equal ( typeof e . onmouseover , "object" , "onmouseover is of type 'object'" ) ;
310
+ equal ( typeof e . onmousemove , "object" , "onmousemove is of type 'object'" ) ;
311
+ equal ( typeof e . onmouseout , "object" , "onmouseout is of type 'object'" ) ;
312
+ equal ( typeof e . onkeypress , "object" , "onkeypress is of type 'object'" ) ;
313
+ equal ( typeof e . onkeydown , "object" , "onkeydown is of type 'object'" ) ;
314
+ equal ( typeof e . onkeyup , "object" , "onkeyup is of type 'object'" ) ;
315
+ equal ( typeof e . getWorldMatrix , "function" , "getWorldMatrix is of type 'function'" ) ;
316
+ equal ( typeof e . getLocalMatrix , "function" , "getLocalMatrix is of type 'function'" ) ;
317
+ equal ( typeof e . getLocalBoundingBox , "function" , "getLocalBoundingBox is of type 'function'" ) ;
318
+ equal ( typeof e . getWorldBoundingBox , "function" , "getWorldBoundingBox is of type 'function'" ) ;
319
+ } ) ;
320
+ test ( "<asset> interface test" , function ( ) {
321
+ var e = document . createElement ( "asset" ) ;
322
+ ok ( e , "asset exists" ) ;
323
+ equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
324
+ equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
325
+ equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
326
+ equal ( typeof e . src , "string" , "src is of type 'string'" ) ;
327
+ } ) ;
328
+ test ( "<assetdata> interface test" , function ( ) {
329
+ var e = document . createElement ( "assetdata" ) ;
330
+ ok ( e , "assetdata exists" ) ;
331
+ equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
332
+ equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
333
+ equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
334
+ equal ( typeof e . name , "string" , "name is of type 'string'" ) ;
335
+ equal ( typeof e . includes , "string" , "includes is of type 'string'" ) ;
336
+ } ) ;
337
+ test ( "<assetmesh> interface test" , function ( ) {
338
+ var e = document . createElement ( "assetmesh" ) ;
339
+ ok ( e , "assetmesh exists" ) ;
340
+ equal ( typeof e . className , "string" , "className is of type 'string'" ) ;
341
+ equal ( typeof e . style , "object" , "style is of type 'object'" ) ;
342
+ equal ( typeof e . id , "string" , "id is of type 'string'" ) ;
343
+ equal ( typeof e . name , "string" , "name is of type 'string'" ) ;
344
+ equal ( typeof e . includes , "string" , "includes is of type 'string'" ) ;
345
+ equal ( typeof e . type , "string" , "type is of type 'string'" ) ;
346
+ equal ( typeof e . material , "string" , "material is of type 'string'" ) ;
347
+ equal ( typeof e . transform , "string" , "transform is of type 'string'" ) ;
348
+ } ) ;
0 commit comments