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

Side by Side Diff: test/mjsunit/es7/typed-array-includes.js

Issue 1513843006: Remove --harmony-array-includes flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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
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-array-includes
6
7 // Largely ported from 5 // Largely ported from
8 // https://github.com/tc39/Array.prototype.includes/tree/master/test/built-ins/T ypedArray/prototype/includes 6 // https://github.com/tc39/Array.prototype.includes/tree/master/test/built-ins/T ypedArray/prototype/includes
9 // using https://www.npmjs.org/package/test262-to-mjsunit with further edits 7 // using https://www.npmjs.org/package/test262-to-mjsunit with further edits
10 8
11 9
12 function testTypedArrays(callback) { 10 function testTypedArrays(callback) {
13 [ 11 [
14 Uint8Array, 12 Uint8Array,
15 Int8Array, 13 Int8Array,
16 Uint16Array, 14 Uint16Array,
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 assertTrue(new FloatArrayConstructor([1, 2, -0]).includes(+0)); 192 assertTrue(new FloatArrayConstructor([1, 2, -0]).includes(+0));
195 assertTrue(new FloatArrayConstructor([1, 2, -0]).includes(-0)); 193 assertTrue(new FloatArrayConstructor([1, 2, -0]).includes(-0));
196 assertTrue(new FloatArrayConstructor([1, 2, +0]).includes(-0)); 194 assertTrue(new FloatArrayConstructor([1, 2, +0]).includes(-0));
197 assertTrue(new FloatArrayConstructor([1, 2, +0]).includes(+0)); 195 assertTrue(new FloatArrayConstructor([1, 2, +0]).includes(+0));
198 assertFalse(new FloatArrayConstructor([1, 2, -Infinity]).includes(+Infinity) ); 196 assertFalse(new FloatArrayConstructor([1, 2, -Infinity]).includes(+Infinity) );
199 assertTrue(new FloatArrayConstructor([1, 2, -Infinity]).includes(-Infinity)) ; 197 assertTrue(new FloatArrayConstructor([1, 2, -Infinity]).includes(-Infinity)) ;
200 assertFalse(new FloatArrayConstructor([1, 2, +Infinity]).includes(-Infinity) ); 198 assertFalse(new FloatArrayConstructor([1, 2, +Infinity]).includes(-Infinity) );
201 assertTrue(new FloatArrayConstructor([1, 2, +Infinity]).includes(+Infinity)) ; 199 assertTrue(new FloatArrayConstructor([1, 2, +Infinity]).includes(+Infinity)) ;
202 }); 200 });
203 })(); 201 })();
OLDNEW
« no previous file with comments | « test/mjsunit/es7/array-includes-to-object-strict.js ('k') | test/mjsunit/harmony/array-includes.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698