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

Side by Side Diff: test/mjsunit/harmony/typesystem/object-types.js

Issue 1817093002: Add parsing for object types (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@types-1810943002-tuple
Patch Set: Created 4 years, 9 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
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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-types 5 // Flags: --harmony-types
6 6
7 7
8 load("test/mjsunit/harmony/typesystem/typegen.js"); 8 load("test/mjsunit/harmony/typesystem/typegen.js");
9 9
10 10
11 // In all the following functions, the size parameter (positive integer) 11 // In all the following functions, the size parameter (positive integer)
12 // denotes how many test cases will be tried. The variable test_size 12 // denotes how many test cases will be tried. The variable test_size
13 // controls execution time of this test. It should not be too high. 13 // controls execution time of this test. It should not be too high.
14 let test_size = 1000; 14 let test_size = 1000;
15 15
16 16
17 (function TestTupleTypes(size) { 17 (function TestObjectTypes(size) {
18 Test(size, [ 18 Test(size, [
19 new TestGen(4, ValidTupleTypes, [CheckValid]), 19 new TestGen(4, ValidObjectTypes, [CheckValid]),
20 new TestGen(1, InvalidTupleTypes, [CheckInvalid]) 20 new TestGen(1, InvalidObjectTypes, [CheckInvalid])
21 ]); 21 ]);
22 })(test_size); 22 })(test_size);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698