Commit Graph

1365 Commits

Author SHA1 Message Date
Janice Collins 51cc9689b3 Remove corelib and corelib_strong and migrate last two remaining tests.
This includes a migration of linked_hash_map_from_iterable_test and
stacktrace_current_test, which were migrated without changes.

BUG=
R=rnystrom@google.com, whesse@google.com

Review-Url: https://codereview.chromium.org/3004073002 .
2017-09-01 08:11:15 -07:00
Stephen Adams 043708d48c Avoid Element-only assertions in generateParameterStubs
TBR=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/3008753002 .
2017-08-28 21:23:19 -07:00
Stephen Adams 3021706f87 More dart2js status duplicate removal
TBR=sigmund@google.com

BUG=

Review-Url: https://codereview.chromium.org/2996203002 .
2017-08-17 19:17:41 -07:00
Emily Fortuna 09b215a2fd Fix the local variable lookup in the locals handler.
BUG=
R=sra@google.com

Review-Url: https://codereview.chromium.org/2994363002 .
2017-08-16 16:08:21 -07:00
Janice Collins e89d0d2e14 Migrate test block 11 to Dart 2.0.
Interesting items in this block:
- Manually merged iterable_generate_test changes from both trees and
dropped some typeAssertionsEnabled/checked mode checking.

BUG=
R=bkonyi@google.com

Review-Url: https://codereview.chromium.org/3000543002 .
2017-08-16 10:16:42 -07:00
Janice Collins e6b3fb5b05 Migrate test block 10 to Dart 2.0.
Special bits in this block:

int_parse_radix_test: Converted to a check only on TypeError (since this is raised at runtime based on user data)
iterable_element_at_test.dart: Split into multitest with compile errors.
iterable_fold_test.dart: add4 and a couple of other cases here cause problems for some compilers, split out into multitests and annotated in
status file.

BUG=
R=bkonyi@google.com

Review-Url: https://codereview.chromium.org/2997533002 .
2017-08-09 08:47:48 -07:00
Stephen Adams e606525894 dedup tests/corelib_2/corelib_2.status dart2js entries
TBR=sigmund@google.com

BUG=

Review-Url: https://codereview.chromium.org/2993893002 .
2017-08-07 16:27:11 -07:00
Sigmund Cherem 352dc54191 Update status files to make bots green, minor changes to the script
R=efortuna@google.com

Review-Url: https://codereview.chromium.org/2990303002 .
2017-08-04 14:04:37 -07:00
Ben Konyi 234de19b22 Removed tests that have already been migrated as part of block 13.
TBR=jcollins@google.com, rnystrom@google.com
BUG=

Review-Url: https://codereview.chromium.org/2996553002 .
2017-08-04 13:52:21 -07:00
Ben Konyi df3238ef2d Migrated test block 12 to Dart 2.0.
Modified json_map_test to not expect the maps to be of type Map<int,
dynamic>, and marked iterable_to_list_test and iterable_to_set_test as
failing on DDC in the status files.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2996513002 .
2017-08-04 13:34:48 -07:00
Ben Konyi 5241f37143 Fixed test failures caused by overly aggressive merging of test block 13.
TBR=rnystrom@google.com,jcollins@google.com
BUG=

Review-Url: https://codereview.chromium.org/2993103002 .
2017-08-04 12:56:13 -07:00
Ben Konyi b1bca14dab Migrated test block 13 to Dart 2.0.
Removed list_index_of2_test as it shouldn't be valid in Dart 2.0.

BUG=
R=jcollins@google.com, rnystrom@google.com

Review-Url: https://codereview.chromium.org/2994543002 .
2017-08-04 11:21:22 -07:00
Sigmund Cherem edc1054ae1 Normalize status files for dart2js_with_kernel
This is only moving status lines around to ensure we only have 2 sections for
$dart2js_with_kernel per file: minified and host-checked.  Some entries are now
duplicated because we no longer have the $dart2js_with_kernel (non-checked)
section.

R=efortuna@google.com

Review-Url: https://codereview.chromium.org/2993083002 .
2017-08-04 09:41:08 -07:00
Florian Loitsch 33f1fc8059 Update status files for double_round tests.
Review-Url: https://codereview.chromium.org/2999443002 .
2017-08-04 12:08:31 +02:00
Emily Fortuna 4929f282b3 Make minification Entity-friendly.
BUG=
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2996463002 .
2017-08-03 19:19:21 -07:00
Ben Konyi d7891cf587 Migrated test block 14 to Dart 2.0.
BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2991363002 .
2017-08-03 13:46:54 -07:00
Ben Konyi ce197702e4 Migrated test block 15 to Dart 2.0.
list_unmodifiable_test required some modifications so callbacks matched
the correct types. list_unmodifiable_test and list_test also needed to
be disabled on dartdevc due to some issue with List<int> not mapping to
JSArray.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2992833002 .
2017-08-03 11:12:26 -07:00
Janice Collins 28a856828b Migrate test block 7 to Dart 2.0.
duration2_test.dart converted to a static-only test and skipped where appropriate for non-strong.  error_stack_trace_test converted to a multitest and error_stack_trace1_test modified to use more modern catch convention for stack traces.

R=bkonyi@google.com, rnystrom@google.com

Review-Url: https://codereview.chromium.org/2987793002 .
2017-08-03 08:55:30 -07:00
Janice Collins 328c30324c Migrate test block 8 to Dart 2.0.
This was a hairy test block, please review carefully.  Special circumstances:
file_resource_test.dart: deleted, depends on Resource class which was moved outside the SDK
from_environment_const_type_undefined_test.dart, from_environment_const_type_test: change to expect compile-time errors for all error cases.
Hacked up status files to enable non-strong/checked/non-checked modes to work in all cases.
format_exception_test.dart: corelib is newer, has updated tests
growable_list_test.dart: corelib is newer, with updated comments.  Stripped runtime checking of checked mode.  Also, this doesn't work, but should, with dartdevc, so added to exclusion list
hash_map2_test.dart: corelib_strong version seems to be newer, has VM option comments

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2989643002 .
2017-08-03 08:37:46 -07:00
Ben Konyi 4d6f6a8bbd Migrated test block 19 to Dart 2.0.
Added 'toString()' to lines 63 and 99 of regexp/global_test.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2989863002 .
2017-08-01 12:24:23 -07:00
Ben Konyi f50a306875 Migrated test block 16 to Dart 2.0.
Lots of issues in map_test caused by the use of conflicting key types.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2990903002 .
2017-07-31 15:08:23 -07:00
Ben Konyi 8b36c83a10 Migrated test block 17 to Dart 2.0.
Fairly minor changes to print_test, and num_clamp_test was split into
two tests to isolate compile time errors.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2987203002 .
2017-07-31 15:04:00 -07:00
Ben Konyi 011c9b0f75 Migrated test block 19 to Dart 2.0.
BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2985233002 .
2017-07-31 09:49:08 -07:00
Emily Fortuna b514995d69 Update status file after https://codereview.chromium.org/2989003002/.
It looks like one test was left off the status file, especially since it's mentioned in the comment of the CL description.
BUG=

Review-Url: https://codereview.chromium.org/2989973002 .
2017-07-28 15:30:32 -07:00
Ben Konyi 4f33acda8a Migrated test block 21 to Dart 2.0.
No changes made to tests.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2989843002 .
2017-07-28 13:10:40 -07:00
Ben Konyi 814edbe896 Migrated test block 20 to Dart 2.0.
No changes to tests, just the following status file updates:

Entries for status file /usr/local/google/home/bkonyi/sdk/tests/corelib/corelib.status:
[ (($compiler == dart2js) && (bool $dart2js_with_kernel)) ]
regexp/invalid-range-in-class_test: Crash
regexp/issue_19193_test: Crash
regexp/lastindex_test: Crash
regexp/lookahead_test: Crash
regexp/multiline_test: Crash
regexp/negative-special-characters_test: Crash
regexp/no-extensions_test: Crash
regexp/non-capturing-groups_test: Crash

[ ((($compiler == dart2js) && (bool $dart2js_with_kernel)) && (bool $minified)) ]
regexp/bol-with-multiline_test: Crash
regexp/look-ahead_test: Crash
regexp/loop-capture_test: Crash
regexp/malformed-escapes_test: Crash
regexp/many-brackets_test: Crash
regexp/non-bmp_test: Crash
regexp/non-capturing-backtracking_test: Crash
regexp/non-character_test: Crash
regexp/non-greedy-parentheses_test: Crash

Entries for status file /usr/local/google/home/bkonyi/sdk/tests/corelib_strong/corelib_strong.status:
[ ($compiler == dartdevc) ]
regexp/bol-with-multiline_test: RuntimeError # Issue 29921
regexp/invalid-range-in-class_test: RuntimeError # Issue 29921
regexp/look-ahead_test: RuntimeError # Issue 29921
regexp/loop-capture_test: RuntimeError # Issue 29921
regexp/malformed-escapes_test: RuntimeError # Issue 29921
regexp/many-brackets_test: RuntimeError # Issue 29921
regexp/negative-special-characters_test: RuntimeError # Issue 29921
regexp/no-extensions_test: RuntimeError # Issue 29921
regexp/non-bmp_test: RuntimeError # Issue 29921
regexp/non-capturing-backtracking_test: RuntimeError # Issue 29921
regexp/non-capturing-groups_test: RuntimeError # Issue 29921
regexp/non-character_test: RuntimeError # Issue 29921
regexp/non-greedy-parentheses_test: RuntimeError # Issue 29921

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2989003002 .
2017-07-28 12:52:08 -07:00
Ben Konyi 26c8479729 Migrated test block 22 to Dart 2.0
No updates made to tests.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2989723002 .
2017-07-28 11:28:08 -07:00
Sigmund Cherem b1065335cd Use dart2js_plaform.dill from the sdk.
This will enable --use-kernel tests in the dart2js bots.

After this change, running our tests will change a little bit, either of these
would work:

Option A: --use-sdk (host-checked not allowed)

python tools/test.py -m release \
   -c dart2js -r d8 --dart2js-batch --report \
   --dart2js-with-kernel --use-sdk \
   language corelib library_2 corelib_2 \
   dart2js_native dart2js_extra

Option B: pass --library-root, --host-check works here.
python tools/test.py -m release \
   -c dart2js -r d8 --dart2js-batch --report \
   --dart2js-with-kernel --host-checked \
   --dart2js_options="--library-root=out/ReleaseX64/dart-sdk/" \
   language corelib library_2 corelib_2 \
   dart2js_native dart2js_extra

In the future, when fasta supports compiling sdk with @patch files, we will
be able to remove the --library-root option and simply compile the SDK from
sources at that point.

BUG=
R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/2988063002 .
2017-07-28 10:07:08 -07:00
Ben Konyi 4479a89467 Migrated test block 23 to Dart 2.0.
No major changes. Updated regexp_test.dart to not use the same variable
for Strings and Regexps.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2990603003 .
2017-07-27 12:10:01 -07:00
William Hesse cbaaceca2f Update checked-in d8 shell to version 6.2.0
BUG=https://github.com/dart-lang/sdk/issues/29794
R=rnystrom@google.com, sra@google.com

Review-Url: https://codereview.chromium.org/2979403002 .
2017-07-27 10:36:19 +02:00
Siva Annamalai 8751f704d5 Remove references to 'dartium' and 'drt' in status files.
R=bkonyi@google.com

Review-Url: https://codereview.chromium.org/2986693002 .
2017-07-26 15:59:38 -07:00
Ben Konyi b5caf1f5a0 Migrated test block 25 to Dart 2.0.
Simple block, no real changes.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2987773002 .
2017-07-25 17:00:21 -07:00
Kevin Moore c347b0ed16 Migrate test block 9 to Dart 2.0
Deleted http_resource_test – the associated classes no longer exist
Deleted int_fromEnvironment3 - validated type semantics
Tweaked hash_set_type_check – made it very simple.

Also tweaked some analyzer hints

R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2990623002 .
2017-07-25 16:43:08 -07:00
Ben Konyi edfb6d02bf Migrated test block 26 to Dart 2.0.
Simple block. Updated two lines in splay_tree_test to expect
compile-time errors and updated status files accordingly.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2983383002 .
2017-07-25 16:36:40 -07:00
Ben Konyi 5d2881ce09 Readded files that were accidentally removed.
TBR=jcollins@google.com
BUG=

Review-Url: https://codereview.chromium.org/2990683003 .
2017-07-25 15:43:09 -07:00
Ben Konyi 64785f0614 Migrated test block 24 to Dart 2.0.
Another fairly simple block. regress-standalone required the
introduction of two seperate result variables as result was having two
different types assigned to it at different times.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2985823002 .
2017-07-25 15:22:33 -07:00
Sigmund Cherem d212ecc27b Temporarily skip tests with --use-sdk (at this time, tests are being run in bots that are not building the sdk from scratch)
TBR=sra@google.com

Review-Url: https://codereview.chromium.org/2989663002 .
2017-07-25 13:54:00 -07:00
Alexander Markov 277f22329f Adjust some tests for limited 64-bit integers
In preparation for limiting Dart integers to 64 bits, certain tests
are corrected to avoid large integer literal or computations with
overflow.

R=zra@google.com

Issue: https://github.com/dart-lang/sdk/issues/30103
Review-Url: https://codereview.chromium.org/2988803002 .
2017-07-25 13:19:30 -07:00
Sigmund Cherem 09009ad6e9 Fix bots: partial support for --use-sdk (assumes
out/ReleaseX64/patched_dart2js_sdk exists), add .status entries for 'minified'

R=sra@google.com

Review-Url: https://codereview.chromium.org/2991683002 .
2017-07-25 09:13:19 -07:00
Janice Collins 7fdc6eb128 Migrate test block 6 to Dart 2.0.
Unusual things in this block:
- This is my first attempt to fix a multitest with various errors in it,
double_parse_test.dart.  Most of them revolve around multitest #01 and
the conflict it has with the new multitest #04.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2988573002 .
2017-07-25 08:13:41 -07:00
Sigmund Cherem 09ff1b56f7 Add support for compiling Dart via the FE in dart2js.
This also:
 - replaces --use-kernel with --use-kernel-in-ssa
 - replaces --load-dill with --use-kernel
 - makes --use-kernel support both: compiling from .dill or from .dart
 - change the default of other options that are currently disabled when --use-kernel is on.
 - adds .status lines for all tests in language/corelib/dart2js_extra/dart2js_native

R=efortuna@google.com

 Note: this CL is built on top of another change
 (https://codereview.chromium.org/2981403002/) that adds preview_dart_2 to
 test.dart
Review-Url: https://codereview.chromium.org/2989453002 .
2017-07-24 17:10:11 -07:00
Janice Collins 998dd24dcc Migrate test block 5 to Dart 2.0.
Unusual things in this block:
- date_time10_test.dart had no strong mode fork, and reveals what looks
like a legit DDC bug at first glance.  Excluded it for now in the status file.
- date_time_test.dart had small differences between the two forks that looked
like an error.  Fixed.

BUG=
R=bkonyi@google.com, rnystrom@google.com

Review-Url: https://codereview.chromium.org/2984063002 .
2017-07-24 14:18:58 -07:00
Ben Konyi c3eb965720 Migrated test block 27 to Dart 2.0.
Relatively simple block. Split string_base_vm_test into
string_base_vm_static_test and string_base_vm_test, updated status
files.

BUG=
R=jcollins@google.com, rnystrom@google.com

Review-Url: https://codereview.chromium.org/2989473002 .
2017-07-24 12:43:29 -07:00
Ben Konyi 370938c4c2 Migrated test block 28 to Dart 2.0.
Relatively simple block. Split string_replace_test into
string_replace_test and string_replace_static test and updated status
file to expect MissingCompileTimeError for vm + dart2js

BUG=
R=jcollins@google.com, rnystrom@google.com

Review-Url: https://codereview.chromium.org/2983273002 .
2017-07-24 12:10:15 -07:00
Ben Konyi 8247191e28 Removed files that were missed during migration and fixed status file.
Migrated test block 29 to Dart 2.0

-Spit string_test into string_test and string_static_test
-Added various MissingCompileTimeError entries in status files for
tests which throw exceptions on configurations that haven't implemented Dart 2.0
-Switched var -> dynamic in symbol_operator_test

TBR=jcollins@google.com
BUG=

Review-Url: https://codereview.chromium.org/2984893002 .
2017-07-22 20:43:57 -07:00
Ben Konyi 3867d84ca5 Migrated test block 29 to Dart 2.0
-Spit string_test into string_test and string_static_test
-Added various MissingCompileTimeError entries in status files for
tests which throw exceptions on configurations that haven't implemented Dart 2.0
-Switched var -> dynamic in symbol_operator_test

BUG=
R=jcollins@google.com, rnystrom@google.com

Review-Url: https://codereview.chromium.org/2983253002 .
2017-07-22 20:16:43 -07:00
Janice Collins b1da48a29d Migrate test block 4 to Dart 2.0.
Unusual things in this block:
- corelib_strong/data_uri_test.dart was behind corelib, so migrated
that file from corelib.
- core_runtime_types_test was split per the document into static
and non-static versions
- data_resource_test.dart is now pointless since class Resource
was moved from dart:core to http://github.com/dart-lang/resource,
so deleted.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2986503002 .
2017-07-21 08:24:26 -07:00
Janice Collins dc12eeeedc Migrate test block 2 to Dart 2.0.
No test changes needed, status-files only.

BUG=
R=bkonyi@google.com, rnystrom@google.com

Review-Url: https://codereview.chromium.org/2982253002 .
2017-07-21 08:07:34 -07:00
Stephen Adams 4790e3c842 Revert "D8 roll with 'Avoid using D8 Worker'"
This reverts commit 487a9048fd.

Failed on Golem, all benchmarks show "Run Failed".
Perhaps there are missing .so files on the runners.

TBR=whesse@google.com

Review-Url: https://codereview.chromium.org/2989433002 .
2017-07-20 16:05:09 -07:00
Stephen Adams 487a9048fd Avoid using D8 Worker
BUG=
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2987563003 .
2017-07-20 14:58:51 -07:00