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

Side by Side Diff: test/mjsunit/es6/typedarray-proto.js

Issue 1215863003: Include Harmony Array/TypedArray methods unconditionally (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove the flag and move the tests Created 5 years, 5 months 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
« no previous file with comments | « test/mjsunit/es6/typedarray-of.js ('k') | test/mjsunit/es6/typedarray-reduce.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --harmony-arrays
6
7 // Test that the methods for different TypedArray types have the same 5 // Test that the methods for different TypedArray types have the same
8 // identity. 6 // identity.
9 // TODO(dehrenberg): Test that the TypedArray proto hierarchy is set 7 // TODO(dehrenberg): Test that the TypedArray proto hierarchy is set
10 // up properly. 8 // up properly.
11 // TODO(dehrenberg): subarray is currently left out because that still 9 // TODO(dehrenberg): subarray is currently left out because that still
12 // uses per-type methods. When that's fixed, stop leaving it out. 10 // uses per-type methods. When that's fixed, stop leaving it out.
13 11
14 var typedArrayConstructors = [ 12 var typedArrayConstructors = [
15 Uint8Array, 13 Uint8Array,
16 Int8Array, 14 Int8Array,
(...skipping 18 matching lines...) Expand all
35 33
36 for (var constructor of typedArrayConstructors) { 34 for (var constructor of typedArrayConstructors) {
37 for (var method of typedArrayMethods) { 35 for (var method of typedArrayMethods) {
38 assertEquals(constructor.prototype[method], 36 assertEquals(constructor.prototype[method],
39 Uint8Array.prototype[method], method); 37 Uint8Array.prototype[method], method);
40 } 38 }
41 for (var classMethod of typedArrayClassMethods) { 39 for (var classMethod of typedArrayClassMethods) {
42 assertEquals(constructor[method], Uint8Array[method], classMethod); 40 assertEquals(constructor[method], Uint8Array[method], classMethod);
43 } 41 }
44 } 42 }
OLDNEW
« no previous file with comments | « test/mjsunit/es6/typedarray-of.js ('k') | test/mjsunit/es6/typedarray-reduce.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698