Commit Graph

14 Commits

Author SHA1 Message Date
Liam Appelbe 87b829bacd [nnbd] Fix some more strong mode tests
All these tests now pass in both weak and strong mode, except for
relation_subclass_test and typedef_reflected_type_test. For those 2
tests I fixed the compile time error and now they have the same runtime
errors in both weak and strong mode (they were already failing at
runtime in weak mode).

Change-Id: If0157f811fffcf72a12ce6690ac0568c8f4419a9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144343
Commit-Queue: Liam Appelbe <liama@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2020-04-22 00:12:24 +00:00
Ryan Macnak 00b2e580a3 [test] Fork mirrors tests.
Bug: https://github.com/dart-lang/sdk/issues/40045
Change-Id: I597259b38684de87016f1e136723d24f4ac05420
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/132440
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2020-01-22 18:46:23 +00:00
Bob Nystrom f6ca2c1d8f Remove the Dart 1 tests.
This deletes:

tests/co19
tests/corelib
tests/html
tests/isolate
tests/language
tests/lib

It does not delete tests/standalone because apparently there are tests
in there that are not in standalone_2. (I assume they were added after
the test migration. I don't know why they were added there.)

I have tried to remove references to the old tests from various scripts
and tools but may have missed some. (As you can imagine, grepping for
"lib" does not have the best signal-to-noise ratio.)

"It was a pleasure to burn. It was a special pleasure to see things
eaten, to see things blackened and changed. With the brass nozzle in his
fists, with this great python spitting its venomous kerosene upon the
world, the blood pounded in his head, and his hands were the hands of
some amazing conductor playing all the symphonies of blazing and burning
to bring down the tatters and charcoal ruins of history."

- Ray Bradbury, Fahrenheit 451

Change-Id: If3db4a50e7a5ee25aff8058b1483e2ce8e68424e
Reviewed-on: https://dart-review.googlesource.com/c/75420
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Terry Lucas <terry@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2018-10-11 23:45:18 +00:00
Jacob Richman 2dcd56ef43 Format all tests.
There are far too many files here to review everyone carefully.
Spot checking most of the diffs look good as test code is generally written
with less care than application code so lots of ugly formatting get through.
If people notice files where the automated formatting bothers them feel free
to comment indicating file names and I'll move spaces within comments to make
the formatting cleaner and use comments to force block formatting as I have
done for other case where formatting looked bad.

BUG=
R=efortuna@google.com

Review-Url: https://codereview.chromium.org/2771453003 .
2017-04-17 14:53:02 -07:00
Regis Crelier e8d1c09d34 Add mirrors tests for Null type.
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2617743002 .
2017-01-05 13:27:14 -08:00
karlklose@google.com b203f95355 Emit declarations for typedefs that are needed by reflection.
Typedefs are encoded like closure classes, but without a call-method and a superclass.

For example, the typedef `typedef int Foo(String s);` is emitted as:
  Foo: {'^': ':15'},
where `15` is the index into `init.metadata` at which the function type is emitted.

BUG= http://dartbug.com/16939
R=johnniwinther@google.com, floitsch@google.com, herhut@google.com

Committed: https://code.google.com/p/dart/source/detail?r=37814

Reverted in https://code.google.com/p/dart/source/detail?r=37848

Committed: https://code.google.com/p/dart/source/detail?r=37939

Reverted in https://code.google.com/p/dart/source/detail?r=37940

Committed: https://code.google.com/p/dart/source/detail?r=37945

Review URL: https://codereview.chromium.org//360493002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38891 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-05 07:18:32 +00:00
karlklose@google.com 2e8bdd4128 Revert "Emit declarations for typedefs that are needed by reflection."
Does not work in csp-drt.

This reverts commit r37945.

R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//363223003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37973 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-03 07:24:08 +00:00
karlklose@google.com 13c67faf65 Emit declarations for typedefs that are needed by reflection.
Typedefs are encoded like closure classes, but without a call-method and a superclass.

For example, the typedef `typedef int Foo(String s);` is emitted as:
  Foo: {'^': ':15'},
where `15` is the index into `init.metadata` at which the function type is emitted.

BUG= http://dartbug.com/16939
R=herhut@google.com, floitsch@google.com

Committed: https://code.google.com/p/dart/source/detail?r=37814

Reverted in https://code.google.com/p/dart/source/detail?r=37848

Committed: https://code.google.com/p/dart/source/detail?r=37939

Reverted in https://code.google.com/p/dart/source/detail?r=37940

Review URL: https://codereview.chromium.org//360493002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37945 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-02 12:43:13 +00:00
karlklose@google.com d8649cf725 Revert "Emit declarations for typedefs that are needed by reflection."
This reverts commit r37939.

TBR=herhut@google.com

Review URL: https://codereview.chromium.org//362973002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37940 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-02 11:04:54 +00:00
karlklose@google.com abc6e05815 Emit declarations for typedefs that are needed by reflection.
Typedefs are encoded like closure classes, but without a call-method and a superclass.

For example, the typedef `typedef int Foo(String s);` is emitted as:
  Foo: {'^': ':15'},
where `15` is the index into `init.metadata` at which the function type is emitted.

BUG= http://dartbug.com/16939
R=floitsch@google.com

Committed: https://code.google.com/p/dart/source/detail?r=37814

Reverted in https://code.google.com/p/dart/source/detail?r=37848

Review URL: https://codereview.chromium.org//360493002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37939 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-02 10:51:01 +00:00
karlklose@google.com eaa2c4da9a Revert "Add runtime_data.dart to the whitelist of files with unused members." and "Emit declarations for typedefs that are needed by reflection."
It does not work in checked mode.

This reverts commits 37814 and 37818.

R=johnniwinther@google.com
BUG=

Review URL: https://codereview.chromium.org//367613003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37848 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-01 07:40:42 +00:00
karlklose@google.com 1502b1899d Emit declarations for typedefs that are needed by reflection.
Typedefs are encoded like closure classes, but without a call-method and a superclass.

For example, the typedef `typedef int Foo(String s);` is emitted as:
  Foo: {'^': ':15'},
where `15` is the index into `init.metadata` at which the function type is emitted.

BUG= http://dartbug.com/16939
R=floitsch@google.com

Review URL: https://codereview.chromium.org//360493002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37814 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-30 09:49:39 +00:00
karlklose@google.com 51047b6c1b Implement Mirror.isSubclassOf.
R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//172353003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33151 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-28 09:38:52 +00:00
rmacnak@google.com 1c7fecac7e Add TypeMirror.isSubtypeOf, TypeMirror.isAssignableTo, ClassMirror.isSubclassOf to the API, the VM runtime mirrors and the source mirrors.
BUG=http://dartbug.com/12439
BUG=http://dartbug.com/13856
R=gbracha@google.com, johnniwinther@google.com, regis@google.com

Review URL: https://codereview.chromium.org//126823004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32577 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-11 20:41:32 +00:00