Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / webgl / array-constructor.html
blob026e693f935e72a17e5e0b1fc9884ac5ce7ccbbc
1 <html>
2 <head>
3 <script src="../../../resources/js-test.js"></script>
4 <script src="resources/webgl-test.js"></script>
5 </head>
6 <body>
7 <div id="description"></div>
8 <div id="console"></div>
10 <script>
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());
31 </script>
33 </body>
34 </html>