Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/webgl/array-constructor.html

Issue 2447493002: Removed some duplicate layout tests under fast/canvas/webgl (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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>
9
10 <script>
11
12 description("Verifies that when constructing WebGLArray with nan values, it resu lts in a 0");
13
14 var source, target, idx;
15
16 source = new Array(10);
17
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());
22 }
23
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());
29 }
30
31 </script>
32
33 </body>
34 </html>
35
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698