Commit Graph

13 Commits

Author SHA1 Message Date
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
lrn@google.com 4582e5218a Make Invocation.positionalArguments and .namedArguments never be null.
In the cases where they were previously null, they are now an empty list
or map.

The list or map should always be unmodifiable, but the non-empty ones
aren't yet.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26635 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-26 10:57:33 +00:00
ahe@google.com 89be2ccac8 Change memberName and namedArguments in Invocation to use Symbol.
Review URL: https://codereview.chromium.org//14066019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21602 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 07:54:48 +00:00
ahe@google.com 5b6c0ba820 Rename InvocationMirror to Invocation.
Review URL: https://codereview.chromium.org//14049009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21465 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 15:42:44 +00:00
floitsch@google.com 8fd6d0aafd Remove Expect from core library.
Committed: https://code.google.com/p/dart/source/detail?r=19755
Reverted: http://code.google.com/p/dart/source/detail?r=19756

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20996 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 19:43:16 +00:00
floitsch@google.com 5dc8107c53 Revert "Remove Expect from core library."
This reverts commit 19755.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19756 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-09 03:19:07 +00:00
floitsch@google.com 12dbd2fd70 Remove Expect from core library.
Review URL: https://codereview.chromium.org//12212016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19755 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-09 02:40:37 +00:00
regis@google.com d273efd45f Turn compile time errors related to missing getters and setters into invocation
of noSuchMethod or into throwing of NoSuchMethodError according to spec.
Return result of InvocationMirror.invokeOn to caller.
Fix various tests.
Review URL: https://codereview.chromium.org//11669015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16463 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-22 00:40:46 +00:00
lrn@google.com 5aff4a1b70 Add more super-invocation InvocationMirror tests.
Review URL: https://codereview.chromium.org//11572011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16202 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 11:36:39 +00:00
lrn@google.com 766f8bdbfa Update language/invocation_mirror_test.
It's been clarified that (a.b)() is not the same as a.b().
Also, unary minus is actually named "unary-".

R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14728 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 09:51:33 +00:00
lrn@google.com 3f316d8023 Fix bug in invocation_mirror_test wrt. setters.
A setter call will not evaluate to the return value of the noSuchMethod.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14382 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 08:14:42 +00:00
lrn@google.com 3c96cabd4b Fix typos in invocation mirror test.
TBR=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14332 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-31 11:58:56 +00:00
lrn@google.com 6a9cb7ed53 Added test for the behavior of InvocationMirror and noSuchMethod.
No implementation currently satisfy the test - it's created as a
goal for the implementations.

R=ager@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14125 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-26 10:23:27 +00:00