forked from xml3d/xml3d.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelements-generated.js
More file actions
359 lines (357 loc) · 22.2 KB
/
elements-generated.js
File metadata and controls
359 lines (357 loc) · 22.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
/* All tests in this module / file are generated from the spec. Do not edit them manually. */
module("Generated Element interface tests", {
});
test("<xml3d> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "xml3d");
ok(e, "xml3d exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.onclick, "object", "onclick is of type 'object'");
equal(typeof e.ondblclick, "object", "ondblclick is of type 'object'");
equal(typeof e.onmousedown, "object", "onmousedown is of type 'object'");
equal(typeof e.onmouseup, "object", "onmouseup is of type 'object'");
equal(typeof e.onmouseover, "object", "onmouseover is of type 'object'");
equal(typeof e.onmousemove, "object", "onmousemove is of type 'object'");
equal(typeof e.onmouseout, "object", "onmouseout is of type 'object'");
equal(typeof e.onkeypress, "object", "onkeypress is of type 'object'");
equal(typeof e.onkeydown, "object", "onkeydown is of type 'object'");
equal(typeof e.onkeyup, "object", "onkeyup is of type 'object'");
equal(typeof e.height, "number", "height is of type 'number'");
equal(typeof e.width, "number", "width is of type 'number'");
equal(typeof e.createXML3DVec3, "function", "createXML3DVec3 is of type 'function'");
equal(typeof e.createXML3DRotation, "function", "createXML3DRotation is of type 'function'");
equal(typeof e.createXML3DMatrix, "function", "createXML3DMatrix is of type 'function'");
equal(typeof e.createXML3DRay, "function", "createXML3DRay is of type 'function'");
equal(typeof e.getElementByPoint, "function", "getElementByPoint is of type 'function'");
equal(typeof e.generateRay, "function", "generateRay is of type 'function'");
equal(typeof e.getElementByRay, "function", "getElementByRay is of type 'function'");
equal(typeof e.getBoundingBox, "function", "getBoundingBox is of type 'function'");
equal(typeof e.activeView, "string", "activeView is of type 'string'");
});
test("<data> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "data");
ok(e, "data exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.compute, "string", "compute is of type 'string'");
equal(typeof e.filter, "string", "filter is of type 'string'");
equal(typeof e.getOutputNames, "function", "getOutputNames is of type 'function'");
equal(typeof e.getOutputChannelInfo, "function", "getOutputChannelInfo is of type 'function'");
equal(typeof e.getComputeInfo, "function", "getComputeInfo is of type 'function'");
equal(typeof e.getProtoInfo, "function", "getProtoInfo is of type 'function'");
equal(typeof e.isOutputConnected, "function", "isOutputConnected is of type 'function'");
equal(typeof e.getResult, "function", "getResult is of type 'function'");
equal(typeof e.src, "string", "src is of type 'string'");
equal(typeof e.proto, "string", "proto is of type 'string'");
});
test("<defs> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "defs");
ok(e, "defs exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
});
test("<group> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "group");
ok(e, "group exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.onclick, "object", "onclick is of type 'object'");
equal(typeof e.ondblclick, "object", "ondblclick is of type 'object'");
equal(typeof e.onmousedown, "object", "onmousedown is of type 'object'");
equal(typeof e.onmouseup, "object", "onmouseup is of type 'object'");
equal(typeof e.onmouseover, "object", "onmouseover is of type 'object'");
equal(typeof e.onmousemove, "object", "onmousemove is of type 'object'");
equal(typeof e.onmouseout, "object", "onmouseout is of type 'object'");
equal(typeof e.onkeypress, "object", "onkeypress is of type 'object'");
equal(typeof e.onkeydown, "object", "onkeydown is of type 'object'");
equal(typeof e.onkeyup, "object", "onkeyup is of type 'object'");
equal(typeof e.visible, "boolean", "visible is of type 'boolean'");
equal(typeof e.getWorldMatrix, "function", "getWorldMatrix is of type 'function'");
equal(typeof e.getLocalMatrix, "function", "getLocalMatrix is of type 'function'");
equal(typeof e.getBoundingBox, "function", "getBoundingBox is of type 'function'");
equal(typeof e.transform, "string", "transform is of type 'string'");
equal(typeof e.shader, "string", "shader is of type 'string'");
});
test("<mesh> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "mesh");
ok(e, "mesh exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.onclick, "object", "onclick is of type 'object'");
equal(typeof e.ondblclick, "object", "ondblclick is of type 'object'");
equal(typeof e.onmousedown, "object", "onmousedown is of type 'object'");
equal(typeof e.onmouseup, "object", "onmouseup is of type 'object'");
equal(typeof e.onmouseover, "object", "onmouseover is of type 'object'");
equal(typeof e.onmousemove, "object", "onmousemove is of type 'object'");
equal(typeof e.onmouseout, "object", "onmouseout is of type 'object'");
equal(typeof e.onkeypress, "object", "onkeypress is of type 'object'");
equal(typeof e.onkeydown, "object", "onkeydown is of type 'object'");
equal(typeof e.onkeyup, "object", "onkeyup is of type 'object'");
equal(typeof e.visible, "boolean", "visible is of type 'boolean'");
equal(typeof e.type, "string", "type is of type 'string'");
equal(typeof e.compute, "string", "compute is of type 'string'");
equal(typeof e.getWorldMatrix, "function", "getWorldMatrix is of type 'function'");
equal(typeof e.getBoundingBox, "function", "getBoundingBox is of type 'function'");
equal(typeof e.getOutputNames, "function", "getOutputNames is of type 'function'");
equal(typeof e.getOutputChannelInfo, "function", "getOutputChannelInfo is of type 'function'");
equal(typeof e.getComputeInfo, "function", "getComputeInfo is of type 'function'");
equal(typeof e.getProtoInfo, "function", "getProtoInfo is of type 'function'");
equal(typeof e.isOutputConnected, "function", "isOutputConnected is of type 'function'");
equal(typeof e.getResult, "function", "getResult is of type 'function'");
equal(typeof e.src, "string", "src is of type 'string'");
equal(typeof e.proto, "string", "proto is of type 'string'");
});
test("<transform> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "transform");
ok(e, "transform exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.translation, "object", "translation is of type 'object'");
equal(typeof e.scale, "object", "scale is of type 'object'");
equal(typeof e.rotation, "object", "rotation is of type 'object'");
equal(typeof e.center, "object", "center is of type 'object'");
equal(typeof e.scaleOrientation, "object", "scaleOrientation is of type 'object'");
});
test("<shader> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "shader");
ok(e, "shader exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.compute, "string", "compute is of type 'string'");
equal(typeof e.getOutputNames, "function", "getOutputNames is of type 'function'");
equal(typeof e.getOutputChannelInfo, "function", "getOutputChannelInfo is of type 'function'");
equal(typeof e.getComputeInfo, "function", "getComputeInfo is of type 'function'");
equal(typeof e.getProtoInfo, "function", "getProtoInfo is of type 'function'");
equal(typeof e.isOutputConnected, "function", "isOutputConnected is of type 'function'");
equal(typeof e.getResult, "function", "getResult is of type 'function'");
equal(typeof e.script, "string", "script is of type 'string'");
equal(typeof e.src, "string", "src is of type 'string'");
equal(typeof e.proto, "string", "proto is of type 'string'");
});
test("<light> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "light");
ok(e, "light exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.onclick, "object", "onclick is of type 'object'");
equal(typeof e.ondblclick, "object", "ondblclick is of type 'object'");
equal(typeof e.onmousedown, "object", "onmousedown is of type 'object'");
equal(typeof e.onmouseup, "object", "onmouseup is of type 'object'");
equal(typeof e.onmouseover, "object", "onmouseover is of type 'object'");
equal(typeof e.onmousemove, "object", "onmousemove is of type 'object'");
equal(typeof e.onmouseout, "object", "onmouseout is of type 'object'");
equal(typeof e.onkeypress, "object", "onkeypress is of type 'object'");
equal(typeof e.onkeydown, "object", "onkeydown is of type 'object'");
equal(typeof e.onkeyup, "object", "onkeyup is of type 'object'");
equal(typeof e.visible, "boolean", "visible is of type 'boolean'");
equal(typeof e.global, "boolean", "global is of type 'boolean'");
equal(typeof e.intensity, "number", "intensity is of type 'number'");
equal(typeof e.getWorldMatrix, "function", "getWorldMatrix is of type 'function'");
equal(typeof e.shader, "string", "shader is of type 'string'");
});
test("<lightshader> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "lightshader");
ok(e, "lightshader exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.compute, "string", "compute is of type 'string'");
equal(typeof e.getOutputNames, "function", "getOutputNames is of type 'function'");
equal(typeof e.getOutputChannelInfo, "function", "getOutputChannelInfo is of type 'function'");
equal(typeof e.getComputeInfo, "function", "getComputeInfo is of type 'function'");
equal(typeof e.getProtoInfo, "function", "getProtoInfo is of type 'function'");
equal(typeof e.isOutputConnected, "function", "isOutputConnected is of type 'function'");
equal(typeof e.getResult, "function", "getResult is of type 'function'");
equal(typeof e.script, "string", "script is of type 'string'");
equal(typeof e.src, "string", "src is of type 'string'");
equal(typeof e.proto, "string", "proto is of type 'string'");
});
test("<script> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "script");
ok(e, "script exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.src, "string", "src is of type 'string'");
equal(typeof e.type, "string", "type is of type 'string'");
});
test("<proto> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "proto");
ok(e, "proto exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.compute, "string", "compute is of type 'string'");
equal(typeof e.filter, "string", "filter is of type 'string'");
equal(typeof e.getOutputNames, "function", "getOutputNames is of type 'function'");
equal(typeof e.getOutputChannelInfo, "function", "getOutputChannelInfo is of type 'function'");
equal(typeof e.getComputeInfo, "function", "getComputeInfo is of type 'function'");
equal(typeof e.getProtoInfo, "function", "getProtoInfo is of type 'function'");
equal(typeof e.isOutputConnected, "function", "isOutputConnected is of type 'function'");
equal(typeof e.getResult, "function", "getResult is of type 'function'");
equal(typeof e.src, "string", "src is of type 'string'");
equal(typeof e.proto, "string", "proto is of type 'string'");
});
test("<float> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "float");
ok(e, "float exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.name, "string", "name is of type 'string'");
equal(typeof e.param, "boolean", "param is of type 'boolean'");
equal(typeof e.key, "number", "key is of type 'number'");
equal(typeof e.setScriptValue, "function", "setScriptValue is of type 'function'");
});
test("<float2> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "float2");
ok(e, "float2 exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.name, "string", "name is of type 'string'");
equal(typeof e.param, "boolean", "param is of type 'boolean'");
equal(typeof e.key, "number", "key is of type 'number'");
equal(typeof e.setScriptValue, "function", "setScriptValue is of type 'function'");
});
test("<float3> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "float3");
ok(e, "float3 exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.name, "string", "name is of type 'string'");
equal(typeof e.param, "boolean", "param is of type 'boolean'");
equal(typeof e.key, "number", "key is of type 'number'");
equal(typeof e.setScriptValue, "function", "setScriptValue is of type 'function'");
});
test("<float4> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "float4");
ok(e, "float4 exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.name, "string", "name is of type 'string'");
equal(typeof e.param, "boolean", "param is of type 'boolean'");
equal(typeof e.key, "number", "key is of type 'number'");
equal(typeof e.setScriptValue, "function", "setScriptValue is of type 'function'");
});
test("<float4x4> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "float4x4");
ok(e, "float4x4 exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.name, "string", "name is of type 'string'");
equal(typeof e.param, "boolean", "param is of type 'boolean'");
equal(typeof e.key, "number", "key is of type 'number'");
equal(typeof e.setScriptValue, "function", "setScriptValue is of type 'function'");
});
test("<int> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "int");
ok(e, "int exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.name, "string", "name is of type 'string'");
equal(typeof e.param, "boolean", "param is of type 'boolean'");
equal(typeof e.key, "number", "key is of type 'number'");
equal(typeof e.setScriptValue, "function", "setScriptValue is of type 'function'");
});
test("<int4> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "int4");
ok(e, "int4 exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.name, "string", "name is of type 'string'");
equal(typeof e.param, "boolean", "param is of type 'boolean'");
equal(typeof e.key, "number", "key is of type 'number'");
equal(typeof e.setScriptValue, "function", "setScriptValue is of type 'function'");
});
test("<bool> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "bool");
ok(e, "bool exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.name, "string", "name is of type 'string'");
equal(typeof e.param, "boolean", "param is of type 'boolean'");
equal(typeof e.key, "number", "key is of type 'number'");
equal(typeof e.setScriptValue, "function", "setScriptValue is of type 'function'");
});
test("<texture> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "texture");
ok(e, "texture exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.name, "string", "name is of type 'string'");
equal(typeof e.param, "boolean", "param is of type 'boolean'");
equal(typeof e.key, "number", "key is of type 'number'");
equal(typeof e.type, "string", "type is of type 'string'");
equal(typeof e.filterMin, "string", "filterMin is of type 'string'");
equal(typeof e.filterMag, "string", "filterMag is of type 'string'");
equal(typeof e.filterMip, "string", "filterMip is of type 'string'");
equal(typeof e.wrapS, "string", "wrapS is of type 'string'");
equal(typeof e.wrapT, "string", "wrapT is of type 'string'");
equal(typeof e.wrapU, "string", "wrapU is of type 'string'");
equal(typeof e.borderColor, "string", "borderColor is of type 'string'");
equal(typeof e.setScriptValue, "function", "setScriptValue is of type 'function'");
});
test("<img> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "img");
ok(e, "img exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.src, "string", "src is of type 'string'");
});
test("<video> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "video");
ok(e, "video exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.src, "string", "src is of type 'string'");
equal(typeof e.autoplay, "boolean", "autoplay is of type 'boolean'");
equal(typeof e.play, "function", "play is of type 'function'");
equal(typeof e.pause, "function", "pause is of type 'function'");
});
test("<view> interface test", function() {
var e = document.createElementNS(XML3D.xml3dNS, "view");
ok(e, "view exits");
equal(typeof e.className, "string", "className is of type 'string'");
equal(typeof e.style, "object", "style is of type 'object'");
equal(typeof e.id, "string", "id is of type 'string'");
equal(typeof e.onclick, "object", "onclick is of type 'object'");
equal(typeof e.ondblclick, "object", "ondblclick is of type 'object'");
equal(typeof e.onmousedown, "object", "onmousedown is of type 'object'");
equal(typeof e.onmouseup, "object", "onmouseup is of type 'object'");
equal(typeof e.onmouseover, "object", "onmouseover is of type 'object'");
equal(typeof e.onmousemove, "object", "onmousemove is of type 'object'");
equal(typeof e.onmouseout, "object", "onmouseout is of type 'object'");
equal(typeof e.onkeypress, "object", "onkeypress is of type 'object'");
equal(typeof e.onkeydown, "object", "onkeydown is of type 'object'");
equal(typeof e.onkeyup, "object", "onkeyup is of type 'object'");
equal(typeof e.visible, "boolean", "visible is of type 'boolean'");
equal(typeof e.position, "object", "position is of type 'object'");
equal(typeof e.orientation, "object", "orientation is of type 'object'");
equal(typeof e.fieldOfView, "number", "fieldOfView is of type 'number'");
equal(typeof e.getWorldMatrix, "function", "getWorldMatrix is of type 'function'");
equal(typeof e.setDirection, "function", "setDirection is of type 'function'");
equal(typeof e.setUpVector, "function", "setUpVector is of type 'function'");
equal(typeof e.lookAt, "function", "lookAt is of type 'function'");
equal(typeof e.getDirection, "function", "getDirection is of type 'function'");
equal(typeof e.getUpVector, "function", "getUpVector is of type 'function'");
equal(typeof e.getViewMatrix, "function", "getViewMatrix is of type 'function'");
equal(typeof e.perspective, "string", "perspective is of type 'string'");
});