Commit Graph

80 Commits

Author SHA1 Message Date
Lasse R.H. Nielsen c048cfb178 Change some constant declarations to lowerCase.
Retain the old values.

Change-Id: I03bd326f379fe5f96d8f6081a7133de956d745c0
Reviewed-on: https://dart-review.googlesource.com/11520
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Florian Loitsch <floitsch@google.com>
2017-11-14 11:13:04 +00:00
Bob Nystrom 07b9df22ac Use the Expect.throws___() helper methods throughout tests.
No behavioral changes, just getting rid of a lot of redundant closures
and helper functions.

Change-Id: I55c52c2cc9e5505bb64203c31aad8d76847f8eeb
Reviewed-on: https://dart-review.googlesource.com/14320
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2017-10-17 23:37:15 +00:00
Vyacheslav Egorov 826b48ee8a [VM] Clean up typing violations in the numerics implementation.
Bug: https://github.com/dart-lang/sdk/issues/31052
Change-Id: I93d7bca2ff627431f1a316bb01a5dada1b5f2354
Reviewed-on: https://dart-review.googlesource.com/14522
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
Reviewed-by: Kevin Millikin <kmillikin@google.com>
2017-10-17 21:00:24 +00:00
Bob Nystrom 307742d07e Move tests from package "test" (back) to "unittest".
Since unittest is known to work with test.dart as a test runner and is
strong mode clean, it's a safer bet than test.

Change-Id: Id120d4f871827b1f131dff2a5ef2f7efb15a8382
Reviewed-on: https://dart-review.googlesource.com/12125
Reviewed-by: Terry Lucas <terry@google.com>
2017-10-10 19:46:12 +00:00
Vyacheslav Egorov 5b14ee115a [VM] Make _StringBase implement String
_StringBase is used everywhere as if it was assignable to String,
however it itself does not implement String, its subclasses do.

This change addresses this.

Also removes unused native runtime method from one of subclasses.

Bug: https://github.com/dart-lang/sdk/issues/31052
Change-Id: Iea2389d1b48a3689fb11c99c0e230747ab1c5962
Reviewed-on: https://dart-review.googlesource.com/12444
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
2017-10-10 10:33:31 +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
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
Zach Anderson 64bf1b49b0 Revert "[dart:io] Moves Http code into a separate library."
Reverting for broken Flutter build and kernel platform compilation test. It looks like the new _http library is missing from various snapshots. Not sure why this didn't fail locally.

This reverts commit ac9ff3f3af.

Change-Id: I7fbc2f842cf1380793e7af9fb869cacd14682885
Reviewed-on: https://dart-review.googlesource.com/7600
Reviewed-by: Zach Anderson <zra@google.com>
2017-09-21 15:57:59 +00:00
Zachary Anderson ac9ff3f3af [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.

Change-Id: Icd33232a97b3d75511ef7ec88b01fd47cdcf5a23
Reviewed-on: https://dart-review.googlesource.com/6420
Reviewed-by: Siva Annamalai <asiva@google.com>
Reviewed-by: Florian Loitsch <floitsch@google.com>
2017-09-21 15:10:22 +00:00
Erik Ernst cf01c459f3 Updated tests for new treatment of init.formal type annotations
Adjusted lib_2/mirrors/initializing_formals_test.dart to match new rule
for static checking on type annotations of initializing formals.

Added language_2/initializing_formals_type_annotation_test.dart to
check the 4 main situations directly.

Change-Id: Icf763c79c99274645f7967b8c3e3a3c3f6536763
Reviewed-on: https://dart-review.googlesource.com/7268
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Erik Ernst <eernst@google.com>
2017-09-21 07:34:58 +00:00
Florian Loitsch 38bf70d7ac Use generic functions in zones.
Migrated from https://chromiumcodereview.appspot.com/2893893002/

Change-Id: I0bd6dc1438eb1e6762e7760a08b5a760b07d4b10
Reviewed-on: https://dart-review.googlesource.com/4942
Reviewed-by: Florian Loitsch <floitsch@google.com>
Commit-Queue: Florian Loitsch <floitsch@google.com>
2017-09-20 15:46:06 +00:00
Ben Konyi a2dc18c052 Fixes for failing tests caused by landing of test block 221 migration.
TBR=rnystrom@google.com,jcollins@google.com,jmesserly@google.com

Bug:
Change-Id: Id449dc0a46457f12179ec953f7f72b6cb467a154
Reviewed-on: https://dart-review.googlesource.com/5621
Reviewed-by: Ben Konyi <bkonyi@google.com>
2017-09-14 00:00:56 +00:00
Ben Konyi 3cd31ff7c5 Migrated test block 221 to Dart 2.0.
No changes made to tests.

Bug:
Change-Id: Ibb385452ad7b892d4993325359d5bdd3f92d875f
Reviewed-on: https://dart-review.googlesource.com/3743
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2017-09-13 22:46:48 +00:00
Ben Konyi 74c8badc10 Migrated test block 229 to Dart 2.0.
Fixed some errors in other_declarations_location_test, removed checks
for TypeError when passing invalid arguments to a method in
private_symbol_test.

Bug:
Change-Id: I82030f1189a7a370d15bef4fd284d92b0b2de5bb
Reviewed-on: https://dart-review.googlesource.com/3791
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2017-09-13 21:53:54 +00:00
Ben Konyi b481cff9a5 Migrated test block 228 to Dart 2.0.
No major changes.

Bug:
Change-Id: I8d9f90e442fb71e635f8319634e94a52098a56d1
Reviewed-on: https://dart-review.googlesource.com/3790
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2017-09-13 21:29:28 +00:00
Ben Konyi 5b60e5841d Migrated test block 222 to Dart 2.0.
Minor changes to a few tests, no major refactors.

Bug:
Change-Id: I66c00b6465597a3534071f8d70c4718f209d5e6e
Reviewed-on: https://dart-review.googlesource.com/3787
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
2017-09-13 02:05:02 +00:00
Jakob Roland Andersen ecd7e9cf81 Migrate test batch 233 to Dart 2.0
Bug:
Change-Id: I8f3c28b306acad1353e347ff8bd7009e49f74f6a
Reviewed-on: https://dart-review.googlesource.com/4400
Commit-Queue: Jakob Roland Andersen <jakobr@google.com>
Reviewed-by: Florian Loitsch <floitsch@google.com>
2017-09-11 10:46:03 +00:00
Ben Konyi cd73bdfb9f Migrated test block 224 to Dart 2.0.
lazy_static_test needed a field changed from var -> dynamic. Otherwise,
simple block.

Bug:
Change-Id: I5d685b5802da906d22f524466eb6794b75c0da62
Reviewed-on: https://dart-review.googlesource.com/3784
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2017-09-08 22:16:24 +00:00
Ben Konyi 86bfc03a09 Migrated test block 225 to Dart 2.0.
No major changes.

Bug:
Change-Id: Ib51de4db72d8e63d5824d772e3c9971f085c75dd
Reviewed-on: https://dart-review.googlesource.com/3785
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2017-09-08 21:58:43 +00:00
Ben Konyi 81ef1a9818 Migrated test block 223 to Dart 2.0.
Updated invoke_call_through* tests to make them strong mode clean, which
mostly involved changing var -> dynamic in some places.

Bug:
Change-Id: I3ac946bdfadd09d6459c7f104068be4cb0c49c1d
Reviewed-on: https://dart-review.googlesource.com/3781
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2017-09-08 18:23:41 +00:00
Jakob Roland Andersen 31d5dc1986 Migrate test batch 231 to Dart 2.0
Bug:
Change-Id: I8a5659dfd76baa3b16e3570e410c262c14e3ded1
Reviewed-on: https://dart-review.googlesource.com/4021
Reviewed-by: Florian Loitsch <floitsch@google.com>
2017-09-08 12:59:34 +00:00
Jakob Roland Andersen 05f0ce4aa9 Migrate test batch 227 to Dart 2.0
Bug:
Change-Id: I34c57e58c08c1137c1bf517953dd204fa351aa09
Reviewed-on: https://dart-review.googlesource.com/3882
Reviewed-by: Florian Loitsch <floitsch@google.com>
2017-09-08 09:57:16 +00:00
Jakob Roland Andersen 0a3ed33abd Reland "Migrate test batch 226 to Dart 2.0"
This is a reland of 77a7ca98a2
Original change's description:
> Migrate test batch 226 to Dart 2.0
> 
> Specifically skipped formatting these files, since there are tests that depend
> on non-standard source formatting.
> 
> Bug:
> Change-Id: I3058984458a9c63b239ed8714828ec42d33316c5
> Reviewed-on: https://dart-review.googlesource.com/3440
> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>

Change-Id: I083c07c08333909aaf5bce763601445ff9f0413f
Reviewed-on: https://dart-review.googlesource.com/3920
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2017-09-08 09:28:18 +00:00
Jakob Roland Andersen b4835cce26 Revert "Migrate test batch 226 to Dart 2.0"
This reverts commit 77a7ca98a2.

Reason for revert: Migrated a test file that's still being used by the unmigrated tests.

Original change's description:
> Migrate test batch 226 to Dart 2.0
> 
> Specifically skipped formatting these files, since there are tests that depend
> on non-standard source formatting.
> 
> Bug:
> Change-Id: I3058984458a9c63b239ed8714828ec42d33316c5
> Reviewed-on: https://dart-review.googlesource.com/3440
> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>

TBR=jakobr@google.com,lrn@google.com

Change-Id: If4d0b44f81cfadf290bf72b23765fa85a6580937
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/3900
Reviewed-by: Jakob Roland Andersen <jakobr@google.com>
2017-09-07 09:34:28 +00:00
Jakob Roland Andersen 77a7ca98a2 Migrate test batch 226 to Dart 2.0
Specifically skipped formatting these files, since there are tests that depend
on non-standard source formatting.

Bug:
Change-Id: I3058984458a9c63b239ed8714828ec42d33316c5
Reviewed-on: https://dart-review.googlesource.com/3440
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2017-09-07 09:15:44 +00:00
Ben Konyi adfc7a6b72 Migrated test lock 217 to Dart 2.0.
Fairly simple block, with only minor changes made to lib_2/mirrors tests
needed for strong mode compliance.

BUG=

Review-Url: https://codereview.chromium.org/2997283003 .
2017-08-31 07:47:36 -07:00
Ben Konyi 143ea83cf3 Migrated test block 220 to Dart 2.0.
No changes to tests.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/3001373002 .
2017-08-31 07:16:58 -07:00
Ben Konyi 07d16559f2 Made helpers strong-mode clean for Dart 2.0 migration.
BUG=

Review-Url: https://codereview.chromium.org/3006863002 .
2017-08-30 09:51:39 -07:00
Ben Konyi 64105ee014 Migrated test block 219 to Dart 2.0.
No major changes. Some tests that rely on noSuchMethod needed to have
some 'var's changed to 'dynamic's.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/3003123002 .
2017-08-30 07:51:59 -07:00
Ben Konyi a7a97e41ed Migrated test block 218 to Dart 2.0.
Fairly simple block, with changes made to some mirrors tests to make
them strong-mode clean. Modified test script to also accept
*_app_jit.status files.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2999373002 .
2017-08-30 07:29:11 -07:00