3 <script src=
"../../../resources/js-test.js"></script>
4 <script src=
"resources/webgl-test.js"></script>
7 <div id=
"description"></div>
8 <div id=
"console"></div>
12 description("Verifies that when constructing WebGLArray with nan values, it results in a 0");
14 var source
, target
, idx
;
16 source
= new Array(10);
18 target
= new Uint8Array(source
);
19 shouldBe(target
.length
.toString(), source
.length
.toString())
20 for (idx
= 0; idx
< target
.length
; idx
++) {
21 shouldBeZero(target
[idx
].toString());
24 source
= {length
: 10};
25 target
= new Uint8Array(source
);
26 shouldBe(target
.length
.toString(), source
.length
.toString())
27 for (idx
= 0; idx
< target
.length
; idx
++) {
28 shouldBeZero(target
[idx
].toString());