Commit graph

16695 commits

Author SHA1 Message Date
Johnni Winther 220a91122a Add --strong-mode flag to dart2js
+ move generic methods tests into a subfolder.

Change-Id: I00cde6a7dc7d6ff1677a8ca60f3a243f065e3765
Reviewed-on: https://dart-review.googlesource.com/31782
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2018-01-02 08:42:21 +00:00
Terry Lucas 476b1e02a9 Updated PYTHON code to correctly generate web_sql and re-wrote/re-enabled async web_sql test.
Also, updated status files to correctly fix failures in FF, IE and removed other spurious status entries.

R=alanknight@google.com,vsm@google.com

Change-Id: Ic965103d892ff4d5d119712e3187e829f57cd022
Reviewed-on: https://dart-review.googlesource.com/31800
Reviewed-by: Terry Lucas <terry@google.com>
2017-12-29 23:51:02 +00:00
Johnni Winther 68e39ed6dc Split value_range_test and mark load_elimination_test as slow
Change-Id: I0becd6ddc9edd758f119436ec5ed6cdbde3c6359
Reviewed-on: https://dart-review.googlesource.com/31785
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2017-12-29 21:30:39 +00:00
Johnni Winther c536cb4b9a Mark no_such_method_enabled_test as slow
Change-Id: I50f335fe3c0a4d323f6e0ac6577be911913386cf
Reviewed-on: https://dart-review.googlesource.com/31780
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2017-12-29 14:59:35 +00:00
Johnni Winther e6d4ee1cc4 Move unittests, part #13 of 13
Change-Id: I0001b681892a5f025339ef4822191a1c72b8ec83
Reviewed-on: https://dart-review.googlesource.com/31487
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-29 13:31:52 +00:00
Johnni Winther 2d31bdecee Port unittests, part #13 of ?
Change-Id: Ibfe12082d12b4baafc7c4ffd5fe390d2ff33cac9
Reviewed-on: https://dart-review.googlesource.com/31486
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-29 13:15:21 +00:00
Johnni Winther 50c0c38a60 Move unittests, #12 of ?
Change-Id: I218d69ecdefc7580ab192eb1aa36a0f000427c92
Reviewed-on: https://dart-review.googlesource.com/31485
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-29 13:02:07 +00:00
Johnni Winther ed3fa76b42 Port unittests, part #12 of ?
Change-Id: I6e8e8d26ba6f922f55059498d3dc23ac9fd0e3ba
Reviewed-on: https://dart-review.googlesource.com/31484
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-29 12:41:04 +00:00
Johnni Winther e2b377c73f Move unittests, part #11 of ?
Change-Id: Id45adc172695b71716d5ef7019d688641ca828c4
Reviewed-on: https://dart-review.googlesource.com/31483
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-29 12:35:22 +00:00
Johnni Winther 3294317270 Port unittests, part #11 of ?
Change-Id: I7a666aa6c61a0c4bac14d04be09c3f507f03f2c2
Reviewed-on: https://dart-review.googlesource.com/31482
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-29 12:24:54 +00:00
Johnni Winther 399f0326c9 Move unittests, part #10 of ?
Change-Id: Ia346ac44c75b349b61c35e2e9816a7f3d92f04b4
Reviewed-on: https://dart-review.googlesource.com/31481
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-29 12:15:06 +00:00
Johnni Winther f6e69b1681 Port unittests, #10 of ?
Change-Id: Ic9b8f26d2d08b640a4e06653a1ea8f0623a406b5
Reviewed-on: https://dart-review.googlesource.com/31480
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-29 11:58:19 +00:00
Johnni Winther 410c3c4a69 Move unittests, part #9 of ?
Change-Id: Ief32bb619da08133a4247b2e4f80cad592f18d77
Reviewed-on: https://dart-review.googlesource.com/31423
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-29 11:40:45 +00:00
Johnni Winther 4cec096e8c Port unittests, #9 of ?
Change-Id: I1ebae95ba7b42eef2cb3e04bc43b79c368c88ae7
Reviewed-on: https://dart-review.googlesource.com/31422
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-29 11:24:17 +00:00
Johnni Winther cfcd796541 Move unittests, part #8 of ?
Change-Id: Ie89a0c733b80c4cfdd4d200b64f6fa2fcb6aedbc
Reviewed-on: https://dart-review.googlesource.com/31421
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-29 10:53:57 +00:00
Johnni Winther 9c954eb0ee Port unittests, part #8 of ?
Change-Id: I04b456d2a7c7d7ce0ad58546f2592d7ae852bf36
Reviewed-on: https://dart-review.googlesource.com/31420
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-29 10:33:42 +00:00
Johnni Winther 9d0e00b97a Move unittests, part #7 of ?
Change-Id: I4940a7256ff39d0469201ca43e0cb7d1b919fca0
Reviewed-on: https://dart-review.googlesource.com/31344
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-29 10:26:43 +00:00
Johnni Winther d5447c848a Reuse cached kernel platform libraries in runCompiler in memory_compiler.dart
Change-Id: Ic545371803263add622ddf8af08eddf484d6ca10
Reviewed-on: https://dart-review.googlesource.com/31343
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-29 10:19:08 +00:00
Johnni Winther 7fd07aa6a2 Sort emitted instance members
- and include injected members in ElementEnvironment.forEachLocalClassMember

Change-Id: I90afacf62177fcc5dfd57f23ccc6a7bb5ca4ef37
Reviewed-on: https://dart-review.googlesource.com/31342
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-29 10:15:23 +00:00
Johnni Winther 610c07a977 Port unittests, part #7 of ?
Change-Id: Ibcb7ba25733d5511c1a9cae35a3c20809d52fee1
Reviewed-on: https://dart-review.googlesource.com/31341
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-29 10:07:30 +00:00
Sigmund Cherem 1ddb7db237 Add support for deferred globals in kernel.
Change-Id: I24adb7e4c67b7c1d077efd6705b9bce92406deac
Reviewed-on: https://dart-review.googlesource.com/31680
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Emily Fortuna <efortuna@google.com>
2017-12-29 07:17:53 +00:00
Stephen Adams 9231c14710 Update language_2_dart2js.status
R=efortuna@google.com

Change-Id: I5c0ea6482fed1422e3d113243d0dee4e59f32fbc
Reviewed-on: https://dart-review.googlesource.com/31742
Reviewed-by: Stephen Adams <sra@google.com>
Reviewed-by: Emily Fortuna <efortuna@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2017-12-29 01:41:43 +00:00
Sigmund Cherem eae0dda31e Ensure that missing-ids is empty
Change-Id: I3a1526645a385e2ab75240841cd8def58712e792
Reviewed-on: https://dart-review.googlesource.com/31741
Reviewed-by: Emily Fortuna <efortuna@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2017-12-28 23:46:43 +00:00
Sigmund Cherem 9250db194c Add test for deferred-constants, skip for kernel for now
Change-Id: I8164857666787241294cc6ca389932d96d7d6a82
Reviewed-on: https://dart-review.googlesource.com/31740
Reviewed-by: Emily Fortuna <efortuna@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2017-12-28 23:33:53 +00:00
Sigmund Cherem b36dc51a8d Minor tweaks to the equivalence-testing printout.
- print the full data directory once, then print short file names for individual
  files.
- removes consecutive divider lines "----"

Change-Id: I9a6019304fd9097d1a2e4a0f6c52a6115ae8256c
Reviewed-on: https://dart-review.googlesource.com/31660
Reviewed-by: Emily Fortuna <efortuna@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2017-12-28 19:41:03 +00:00
Emily Fortuna fa9e576a40 Adjust importsTo so that you can get the import chain for entities other than memberEntities.
Also added some more tests to the deferred equivalence test.


Bug:
Change-Id: Ia5ca50728a96020ff76b7b519558cdb5847d598e
Reviewed-on: https://dart-review.googlesource.com/31600
Commit-Queue: Emily Fortuna <efortuna@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-28 19:31:13 +00:00
Sigmund Cherem c03a8a8944 Show output unit of top-level constants in deferred tests.
We might want to later do this for all constants in the code, but this is a start.

Change-Id: I797c0d7b95dc81ca6f5a84b300a221cc5ff6c44a
Reviewed-on: https://dart-review.googlesource.com/31640
Reviewed-by: Emily Fortuna <efortuna@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2017-12-28 19:03:23 +00:00
Stephen Adams f937039bd6 Remove unused JS_BUILTIN
Became unused at:
1ae1ec7df4
Change-Id: I92c167dc2a071a45b2635b9b1d907015043d60ab
Reviewed-on: https://dart-review.googlesource.com/31560
Reviewed-by: Emily Fortuna <efortuna@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2017-12-28 01:16:02 +00:00
Sigmund Cherem 3e0d5671fe dart2js equivalence testing: Use code without annotations for files under libs/
Bug:
Change-Id: I8682d24b3556e9b24749d2691fb20e56d9c7f335
Reviewed-on: https://dart-review.googlesource.com/31540
Reviewed-by: Emily Fortuna <efortuna@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2017-12-28 00:18:12 +00:00
Terry Lucas 0af98266ab Revert "Updated PYTHON code to correctly generate web_sql and re-wrote/re-enabled async web_sql test."
This reverts commit 0c8294e4a0.

Bug:
Change-Id: Idb35c64fd5365f2669e8aff45765fed74e0f0766
Reviewed-on: https://dart-review.googlesource.com/31440
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Terry Lucas <terry@google.com>
2017-12-23 01:59:38 +00:00
Terry Lucas 0c8294e4a0 Updated PYTHON code to correctly generate web_sql and re-wrote/re-enabled async web_sql test.
R=alanknight@google.com,vsm@google.com

Change-Id: I80e82f5aaa3c9748740031d8da139f79e2c0ab70
Reviewed-on: https://dart-review.googlesource.com/31080
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Alan Knight <alanknight@google.com>
2017-12-22 22:57:34 +00:00
Régis Crelier f3307ca8de [language tests] Fix 2 strong mode tests related to covariant tear-offs.
Update status files.

Change-Id: I5828a86f268a767d72dddea36e009950ac5dabde
Reviewed-on: https://dart-review.googlesource.com/31401
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Régis Crelier <regis@google.com>
2017-12-22 20:33:36 +00:00
Emily Fortuna 21891a965f Do id equivalence testing for deferred imports.
Also allows us to more generally compare annotations in multi-file tests.

Bug:
Change-Id: I2f4ac34b918cc80400ebc417dfcc2caf56457ac2
Reviewed-on: https://dart-review.googlesource.com/30923
Commit-Queue: Emily Fortuna <efortuna@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2017-12-22 20:04:44 +00:00
Bob Nystrom 2114ba391d Mark dart2js test as crashing.
Change-Id: I1507ca7df35c6f8ef5a770e51e97a10dee494326
Reviewed-on: https://dart-review.googlesource.com/31380
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2017-12-22 18:21:03 +00:00
Erik Ernst 3698b91be8 Added test directories for Dart 2 features.
At and after the meeting that Anders called in AAR today we discussed
the list of directories that we would need. These came up:

  generalized void
  instantiate to bound
  noSuchMethod forwarding
  super-bounded types

I combined super-bounded types and instantiate to bound into one
topic, since they are so interwoven.

I also noted that we have more features coming up, even though we have
not discussed them much recently, and one of them will need a number
of tests: optional const/new. So I created new test directories for
these five topics, and added a short README.md to indicate their
purpose.

Change-Id: I17a407073d2dbcbccce0bfbd321cb01365d4b9ee
Reviewed-on: https://dart-review.googlesource.com/31200
Reviewed-by: Anders Sandholm <sandholm@google.com>
Reviewed-by: Kevin Millikin <kmillikin@google.com>
Commit-Queue: Erik Ernst <eernst@google.com>
2017-12-22 15:39:13 +00:00
Johnni Winther 71bfc9e849 Reenable swarm_test
Change-Id: I2f6439561762c6ed1db0ef0e6f189fa79db16865
Reviewed-on: https://dart-review.googlesource.com/31141
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-22 13:35:32 +00:00
Johnni Winther c9fc2e7e40 Use a temporary dir for stepping_test
Change-Id: I474552f4c77e4c8a28c545710e823c203c6a51d5
Reviewed-on: https://dart-review.googlesource.com/31340
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2017-12-22 13:30:27 +00:00
Johnni Winther 452205c73d Move unittests, part #6 of ?
Change-Id: I328f5d1fdcd9489005236d8db39fe213cc08b1ce
Reviewed-on: https://dart-review.googlesource.com/31142
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-22 13:08:51 +00:00
Johnni Winther 9cfbaa4367 Port unittest, part #6 of ?
Change-Id: Ide0ff2b012c48c3017e68cfcfaf1d681e12fd5c8
Reviewed-on: https://dart-review.googlesource.com/31140
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-22 12:39:29 +00:00
Johnni Winther c563d7845b Move unittests, part #5 of ?
Change-Id: I38c6a3f9c6c2620cc893ddef23bdc1e3a8bcb411
Reviewed-on: https://dart-review.googlesource.com/31061
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-22 12:23:38 +00:00
Johnni Winther 9fe7c0e806 Port unittests, part #5 of ?
Change-Id: I58c9deea426072907a5d02f61f23f138b1f50c1d
Reviewed-on: https://dart-review.googlesource.com/31101
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-22 12:11:47 +00:00
Sigmund Cherem d85651846f Update .status files
One language test "passes" when we no longer complain about the mixin issue.

Bug:
Change-Id: I5aeb4ead7d3faf6ec756eeb11fecc20bcfb4c16e
Reviewed-on: https://dart-review.googlesource.com/31260
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-21 22:49:02 +00:00
Johnni Winther a521c7f255 First step debugging tests.
Change-Id: I8a947999778f851ed38c1a9fb518af00664f19ec
Reviewed-on: https://dart-review.googlesource.com/30740
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-21 14:03:51 +00:00
Johnni Winther 6d40c7629e Move unittests, part #4 of ?
- add 'deferred' folder for deferred load tests

Change-Id: I60b07b09df80bf6c8d3df6dcec9bce12bdcbafb8
Reviewed-on: https://dart-review.googlesource.com/30862
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-21 10:24:49 +00:00
Johnni Winther 7500aed44d Port unittests, part #4 of ?
Change-Id: I0eb45671f9721eb0ad76444fb928f4e8ed96cd25
Reviewed-on: https://dart-review.googlesource.com/30860
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-21 10:17:39 +00:00
Johnni Winther 1fc66812bf Move unittests, part #3 of ?
- add 'async_await' folder for testing async/await transformation
- add 'codegen' folder for testing of generated code
- add 'end_to_end' folder for testing of command-line interaction

Change-Id: Ic262db98d6156175bf53fcc53443cc2b273dd404
Reviewed-on: https://dart-review.googlesource.com/30780
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-21 10:00:14 +00:00
Johnni Winther 289671e38e Port unittests, part #3 of ?
Change-Id: If5174e76187d2e045cb14b11df932acdee9e42dd
Reviewed-on: https://dart-review.googlesource.com/30761
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-21 09:35:06 +00:00
Régis Crelier ac4dfc7672 [gardening] Update status file.
Change-Id: Ia4a28442b28d2d62d22d4c29e18515c9085ada93
Reviewed-on: https://dart-review.googlesource.com/30925
Reviewed-by: Régis Crelier <regis@google.com>
2017-12-21 00:07:10 +00:00
Régis Crelier e8fc3ab0fa [gardening] Update status files.
Change-Id: I0f3eeaffebebb9ed2869aed01ad5f46f9ee81a8c
Reviewed-on: https://dart-review.googlesource.com/30922
Reviewed-by: Régis Crelier <regis@google.com>
2017-12-20 23:03:10 +00:00
Régis Crelier 548d7dc8a3 [VM runtime] Properly treat Object and void as top types in strong mode type
tests.
Adjust status files.

Change-Id: I4360c0015cfbb97a5599882930810dbc7060d4c0
Reviewed-on: https://dart-review.googlesource.com/30701
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2017-12-20 20:55:59 +00:00