Commit graph

15815 commits

Author SHA1 Message Date
Sigmund Cherem 920d44c3d4 Include dart.io in dart2js platform
Change-Id: I7bd4356556023ff4a56d876684ea63bad1917b07
Reviewed-on: https://dart-review.googlesource.com/8341
Reviewed-by: Emily Fortuna <efortuna@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
2017-09-27 02:06:10 +00:00
Stephen Adams bc0a50e8ee dart2js kernel status
TBR=efortuna@google.com
Bug:
Change-Id: I8665b5730f734918d2f40f9d2fd72b7d18acfd51
Reviewed-on: https://dart-review.googlesource.com/8740
Reviewed-by: Stephen Adams <sra@google.com>
2017-09-27 00:58:05 +00:00
Stephen Adams 2ea83486e1 dart2js kernel: generate constants for default arguments in Function.apply
Change-Id: I5bd0a8deaf16069749a574eb2ed132738e2e0747
Reviewed-on: https://dart-review.googlesource.com/8280
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2017-09-27 00:35:53 +00:00
Emily Fortuna 614e4cc53f Add some fixes to getting JS-Interop compiling with angular apps.
Bug:
Change-Id: I9c5b068f33ee9cca75d95b9fb01ce19557267958
Reviewed-on: https://dart-review.googlesource.com/8400
Reviewed-by: Stephen Adams <sra@google.com>
2017-09-27 00:10:04 +00:00
Régis Crelier 708952b3b0 Do not conflate 2 issues into 1 test.
Passing the type argument vector <int> in the 'none' configuration is not
correct, but this is not what this test is supposed to check.

Change-Id: I2afd2987e572a6b4340a7d70ee92878abc67055e
Reviewed-on: https://dart-review.googlesource.com/8729
Reviewed-by: Ben Konyi <bkonyi@google.com>
2017-09-26 23:19:15 +00:00
Terry Lucas aa4e052c6d Test custom_elements_tests is buggy.
R=pquitslund@google.com

Change-Id: I49a16ec2a8da92e5a449026821065ea901fa9a0b
Reviewed-on: https://dart-review.googlesource.com/8735
Reviewed-by: Terry Lucas <terry@google.com>
2017-09-26 22:41:48 +00:00
Emily Fortuna fe9d02855b Add html tests for dart2js kernel testing.
Bug:
Change-Id: I4d28af58a655f76ea639c8f048e86738afb2e108
Reviewed-on: https://dart-review.googlesource.com/8720
Reviewed-by: Stephen Adams <sra@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-09-26 21:19:57 +00:00
Terry Lucas 4d6e20bb8d Move failure and fix failure type.
R=pquitslund@google.com

Change-Id: Id7b90c55a8b6912d04e85f3ddd3b2b6895f13b86
Reviewed-on: https://dart-review.googlesource.com/8725
Reviewed-by: Terry Lucas <terry@google.com>
2017-09-26 20:58:43 +00:00
pq 1ce26d9692 Fixed bad status migration [TBR].
Restoring non_const_super_negative_test (which was outside the migrated block) to strong tests.

Bug:
Change-Id: I012d1fc6ce3b0aa3dc070894699bb9a3ed8ab8ac
Reviewed-on: https://dart-review.googlesource.com/8724
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2017-09-26 20:33:25 +00:00
Terry Lucas 34b656894a Disabled HTML tests on VM and flag analyzer error too.
TBR=bkonyi@google.com

Change-Id: Ic452b345e7265db1a2c2a263e73802901302b2b0
Reviewed-on: https://dart-review.googlesource.com/8723
Reviewed-by: Terry Lucas <terry@google.com>
2017-09-26 20:22:24 +00:00
pq abbf6d9562 Restore deleted test helper file.
(Migration moved helper when it should have been copied.)

Bug:
Change-Id: I5bdb97ea2411b3882f4689e5b34316287eb5277c
Reviewed-on: https://dart-review.googlesource.com/8722
Reviewed-by: Ben Konyi <bkonyi@google.com>
2017-09-26 19:57:01 +00:00
Terry Lucas e61c567d7b Re-Migrate Block 192 and 193 to original unittest usage and re-run migration tool to move over *.html files too.
R=bkonyi@google.com

Change-Id: I7cb8019c7b6881b09b52333a0457744f877f7aa0
Reviewed-on: https://dart-review.googlesource.com/7780
Reviewed-by: Terry Lucas <terry@google.com>
Commit-Queue: Terry Lucas <terry@google.com>
2017-09-26 18:44:04 +00:00
pq a02ca2070f Migrate block 141 to Dart 2.0.
Bug:
Change-Id: If806f50a6254c187fc862fc7e5c19f45ccb9a8e8
Reviewed-on: https://dart-review.googlesource.com/8361
Reviewed-by: Ben Konyi <bkonyi@google.com>
2017-09-26 18:42:04 +00:00
pq 650a1159ff Migrate test block 65 to Dart 2.0.
Bug:
Change-Id: Ibf50302eb7a1cec7546f4ceb87f8c19808479568
Reviewed-on: https://dart-review.googlesource.com/8380
Reviewed-by: Janice Collins <jcollins@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2017-09-26 16:55:42 +00:00
Johnni Winther 9ff0a7ad55 Update dart2js_with_kernel status
Change-Id: If00388b939e5df667237ea4bcf91a25311b058e1
Reviewed-on: https://dart-review.googlesource.com/8520
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2017-09-26 10:08:31 +00:00
Johnni Winther c0c63bf16e Fix handling of function type parameters
Closes #30826

Change-Id: I804bff2a204aa210ba59f691c5d680d8a53aadeb
Reviewed-on: https://dart-review.googlesource.com/7553
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-09-26 08:23:34 +00:00
Johnni Winther 9914532f05 Handle logical and/or in inferrer
Change-Id: Ia26df587b936b7b1e48018d102adb95a293c68d6
Reviewed-on: https://dart-review.googlesource.com/7860
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-09-26 07:27:01 +00:00
Sigmund Cherem 4c893290e4 Reapply "Check whether type-arguments and type-parameters length match from the body builder."
This reverts commit 1ca12788c6.

Patchset 1 is the reverted CL, patchset 2 shows the changes.

Bug:
Change-Id: I4ffcb9ec20f2ac3c59d09adc3a6693f52c71601d
Reviewed-on: https://dart-review.googlesource.com/6360
Reviewed-by: Peter von der Ahé <ahe@google.com>
2017-09-26 04:09:37 +00:00
Ben Konyi a5d702c9c3 Status file fix for failures on dart2js-linux-d8-minified bot.
Bug:
Change-Id: Iae72cd315315ab1518e4d42f43a60a726dfc47cc
Reviewed-on: https://dart-review.googlesource.com/8101
Reviewed-by: Ben Konyi <bkonyi@google.com>
2017-09-25 14:59:39 +00:00
Ben Konyi 8253f51b64 Migrated test block 140 to Dart 2.0.
Bug:
Change-Id: I935b29026125e0318cc977a7d5c6fd45479a0d56
Reviewed-on: https://dart-review.googlesource.com/7853
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Leaf Petersen <leafp@google.com>
2017-09-25 14:53:02 +00:00
Ben Konyi c0364e372d Migrated test block 58 to Dart 2.0.
No major changes.

Bug:
Change-Id: I7092880088d0fd334d6d2b1f6d4f1dbc2cb03ed2
Reviewed-on: https://dart-review.googlesource.com/7487
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2017-09-25 13:51:22 +00:00
Aske Simon Christensen fab74715fe Report error if a member has the same name as the enclosing class
To recover properly from the error, change lookup priority in the Diet Listener from setter, field/getter/method, constructor to setter, constructor, field/method/getter.

Closes https://github.com/dart-lang/sdk/issues/29944
Change-Id: I3648501880e4e2059c386aa0032d37d0470aab96
Reviewed-on: https://dart-review.googlesource.com/7712
Commit-Queue: Aske Simon Christensen <askesc@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
2017-09-25 11:55:02 +00:00
Vyacheslav Egorov 9678113619 [VM] Fix incorrect range assignment for Uint32 ops.
When replacing 64bit signed operations with unsigned 32bit ones
IntegerInstructionSelector::Replace would simply copy 64bit operation's
range onto uint32 op. This however is only correct for positive range,
non-positive ranges must become [0, kMaxUint32]. 

Fixes https://github.com/dart-lang/sdk/issues/30853

Bug:
Change-Id: I896b7828c29fe8f04a844cfb984295cb47ddaaf2
Reviewed-on: https://dart-review.googlesource.com/8020
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2017-09-25 10:09:32 +00:00
Stephen Adams f35a0d59d3 dart2js status file fix
Merse several regions withe the same conditions.

TBR=bkonyi@google.com
Bug:
Change-Id: I2dbac75960a383359329d49a55b4c56495052ae0
Reviewed-on: https://dart-review.googlesource.com/7960
Reviewed-by: Stephen Adams <sra@google.com>
2017-09-23 12:23:34 +00:00
Ben Konyi 7e73bd790c Updated status file to fix failures on dart2js-d8-minified bot.
TBR=whesse@google.com,rnystrom@google.com

Bug:
Change-Id: Ie6a35836ef5345f551acd222439814d789481ca9
Reviewed-on: https://dart-review.googlesource.com/7944
Reviewed-by: Ben Konyi <bkonyi@google.com>
2017-09-23 03:16:05 +00:00
Ben Konyi 24e40a0f61 Migrated test block 139 to Dart 2.0.
Did not migrate null_bottom / null_is_bottom type tests. Modified
null_test to not run some mirrors related checks on platforms that don't
support mirrors.

Bug:
Change-Id: I7fce784f537cc298e2945a32073700083d9275f8
Reviewed-on: https://dart-review.googlesource.com/7848
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Leaf Petersen <leafp@google.com>
2017-09-23 00:06:38 +00:00
Ben Konyi 038c281a47 Migrated test block 131 to Dart 2.0.
Quite a few changes were made to method_override* tests.

Bug:
Change-Id: I554c83ae766010b55f17a86caee9418d0c34cbe7
Reviewed-on: https://dart-review.googlesource.com/7683
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2017-09-22 21:53:58 +00:00
Stephen Adams a8f2f24b20 Update dart2js kernel status
TBR=whesse@google.com
Bug:
Change-Id: Iad47a8c38625f1d21c3c8fa35397cea57ccea29d
Reviewed-on: https://dart-review.googlesource.com/7849
Reviewed-by: Stephen Adams <sra@google.com>
2017-09-22 21:19:33 +00:00
William Hesse e032124c4a Update statuses for new language_2 tests on dart2js with kernel.
This updates statuses for the tests landed in
https://dart-review.googlesource.com/c/sdk/+/7800
Bug:
Change-Id: I092e08066b3875bdceac6e369b259df4ac510d67
Reviewed-on: https://dart-review.googlesource.com/7880
Reviewed-by: Alan Knight <alanknight@google.com>
Commit-Queue: Alan Knight <alanknight@google.com>
2017-09-22 20:04:02 +00:00
Johnni Winther 772a0aff33 Handle and report erroneous compile time constants
Change-Id: I2ee86dbd714227e8e0894539ca64258fd11badfc
Reviewed-on: https://dart-review.googlesource.com/7820
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
2017-09-22 18:57:37 +00:00
William Hesse b3e7f6d299 Recommit "migrate function type tests""
This reverts commit ba09eb787c, which was
a revert of ca6bec3414.
New status lines have been added to tests/languge_2/language_2_dart.js.status.

Bug:
Change-Id: I9e5b344d67df1fb00d5a51078a3d2b6113223a3e
Reviewed-on: https://dart-review.googlesource.com/7800
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2017-09-22 17:52:27 +00:00
pq d9326f4ab3 Migrate test block 135 to Dart 2.0.
Bug:
Change-Id: Icda59de9bfad2e9b2683f019fb9c6fc54c12547c
Reviewed-on: https://dart-review.googlesource.com/7587
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2017-09-22 17:04:06 +00:00
William Hesse 01d4faae5c Update co19 status for flaky test on dart2js-d8
Bug: https://github.com/dart-lang/sdk/issues/30853
Change-Id: I9332f3d71046b47497ddddaa0a434d77430446c1
Reviewed-on: https://dart-review.googlesource.com/7760
Reviewed-by: William Hesse <whesse@google.com>
2017-09-22 16:30:50 +00:00
Dan Rubel 8fedf42184 fix out of order directive error codes
Change-Id: I903d3e5e59b9d836c7dbe23c5610286437731cb2
Reviewed-on: https://dart-review.googlesource.com/7500
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
2017-09-22 13:06:15 +00:00
Lasse R.H. Nielsen f625a721eb Make asyncstar_pause_test only call asyncEnd on success.
Fixes #30814.

Bug: http://dartbug.com/30814
Change-Id: I882a5a8185a5415fd08aa005607c3469d400ba29
Reviewed-on: https://dart-review.googlesource.com/7265
Reviewed-by: Peter von der Ahé <ahe@google.com>
2017-09-22 09:59:01 +00:00
Erik Ernst 9cffb6aa0f Gardening: Removed status entry for language_2/vm/type_vm_test
Change-Id: Ie9a6c0d22c672ebb291c98abb61b0634d0e485e4
Reviewed-on: https://dart-review.googlesource.com/7703
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2017-09-22 07:43:15 +00:00
Stephen Adams aa0d5a428e Hack to fix incorrect getMightBePassedToApply under --disable-type-inference
R=sigmund@google.com

Bug:
Change-Id: Ie0378a923473e2b5ff7eaabdff499ddb01050f3e
Reviewed-on: https://dart-review.googlesource.com/7489
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2017-09-22 02:47:23 +00:00
Stephen Adams ec19f432cf corelib.status fix for jsshell \xdf
TBR=rnystrom@google.com
Bug:
Change-Id: Ib69d7319333f04d856560e5ed12b3220f3ac2127
Reviewed-on: https://dart-review.googlesource.com/7684
Reviewed-by: Stephen Adams <sra@google.com>
2017-09-21 23:53:32 +00:00
Ben Konyi 2f0e925f56 Migrated test block 230 to Dart 2.0.
Bug:
Change-Id: I254b96ad69961c4ecf7fd567edabd6d584a0d757
Reviewed-on: https://dart-review.googlesource.com/7583
Reviewed-by: Leaf Petersen <leafp@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2017-09-21 23:39:49 +00:00
Stephen Adams fc48f21045 dart2js jsshell status
TBR=rnystrom@google.com

Change-Id: I911554cad36052ed46411c7db231e9b89adf4bac
Reviewed-on: https://dart-review.googlesource.com/7682
Reviewed-by: Stephen Adams <sra@google.com>
2017-09-21 23:38:20 +00:00
Stephen Adams 10f2f190c7 Update corelib dart2js kernel status
- Put all $dart2js_with_kernel results in two sections.
 - Moved these sections to the end so our scripts don't malfunction.

TBR=rnystrom@google.com

Change-Id: I0bedc1ce334a4ce30e3c976a3e880bd2022de865
Reviewed-on: https://dart-review.googlesource.com/7680
Reviewed-by: Stephen Adams <sra@google.com>
2017-09-21 22:57:28 +00:00
Jaime Wren ec431ffa39 Revert "Migrated test block 60 to Dart 2.0"
This reverts commit 9141047cd7.

Change-Id: I222dd72cabe4a69576e7f5d87e2ae61b96ac6b16
Reviewed-on: https://dart-review.googlesource.com/7636
Reviewed-by: Jaime Wren <jwren@google.com>
2017-09-21 21:34:32 +00:00
Harry Terkelsen f07c329f31 Mark failing cyclic constructor tests with issue
Change-Id: I11c03f0e3af84fd204d20493ddda9d2423b9368d
Reviewed-on: https://dart-review.googlesource.com/7634
Reviewed-by: Emily Fortuna <efortuna@google.com>
2017-09-21 21:02:24 +00:00
Bob Nystrom ca4f84fba1 An old corelib test is passing on Firefox now.
Change-Id: Ied24ff209e39fbd9fdac486d81b58d0580d23aba
Reviewed-on: https://dart-review.googlesource.com/7632
Reviewed-by: Stephen Adams <sra@google.com>
2017-09-21 20:53:51 +00:00
Alexander Thomas 55f98fef95 Change status for flaky tests
Bug:
Change-Id: I2544efc246ce285222aa569990f23106dcee4d09
Reviewed-on: https://dart-review.googlesource.com/7557
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2017-09-21 20:46:18 +00:00
Jaime Wren 9141047cd7 Migrated test block 60 to Dart 2.0
Change-Id: I3b9f5ea80001adf0017599c86db3be235fbf12e1
Reviewed-on: https://dart-review.googlesource.com/7160
Reviewed-by: Janice Collins <jcollins@google.com>
Reviewed-by: Jaime Wren <jwren@google.com>
2017-09-21 20:43:34 +00:00
Bob Nystrom 879e34c2f2 Fix up the corelib statuses for dart2js with kernel.
Change-Id: I3ad63aade17d2962859940839e0f5774346ca39c
Reviewed-on: https://dart-review.googlesource.com/7629
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2017-09-21 20:35:21 +00:00
Zachary Anderson 2948f8c1b7 Reland: [dart:io] Moves Http code into a separate library.
This moves Http code into dart:_http. dart:io then imports and
re-exports dart:_http. This is the first stage of moving
dart:_http into its own pub package.

This CL was reverted due to a failure in the Flutter engine build
which happened due to an incomplete change in gen_snapshot.cc, and to
update sdk/lib/libraries.yaml and sdk/lib/libraries.json

Change-Id: Ie90c77ef631aea7a163774b58e8ccbaf71a24d3c
Reviewed-on: https://dart-review.googlesource.com/7588
Reviewed-by: Zach Anderson <zra@google.com>
2017-09-21 19:21:25 +00:00
Bob Nystrom 2d2af807f3 Mark a test failing on Safari.
It seems to round differently than expected.

Change-Id: Ibec5842063bf5de02bd6b4b34da4f66d824e9b62
Reviewed-on: https://dart-review.googlesource.com/7620
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2017-09-21 19:09:08 +00:00
Ben Konyi a87493f8ca Migrated test block 165 to Dart 2.0.
Minor changes to a couple of tests to make them strong-mode clean.

Bug:
Change-Id: Id0cac7a120dbdf940d101c3e5de8c206a0ad6342
Reviewed-on: https://dart-review.googlesource.com/4613
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2017-09-21 19:00:36 +00:00