Commit Graph

10 Commits

Author SHA1 Message Date
Bob Nystrom edee53f93d Bring back the deleted 1.0 corelib tests.
What is dead may never die.

Change-Id: I80ef766b8ce2b6e1416df8e1f9b91fb74169dc79
Reviewed-on: https://dart-review.googlesource.com/7483
Reviewed-by: William Hesse <whesse@google.com>
2017-09-21 18:29:40 +00:00
Janice Collins 28a856828b Migrate test block 7 to Dart 2.0.
duration2_test.dart converted to a static-only test and skipped where appropriate for non-strong.  error_stack_trace_test converted to a multitest and error_stack_trace1_test modified to use more modern catch convention for stack traces.

R=bkonyi@google.com, rnystrom@google.com

Review-Url: https://codereview.chromium.org/2987793002 .
2017-08-03 08:55:30 -07: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
lrn@google.com fd210546f9 Adding Duration documentation, abs(), and isNegative()
BUG= https://code.google.com/p/dart/issues/detail?id=9789
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38973 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 09:40:38 +00:00
lrn@google.com 1fa76c85b5 Fix bug in Duration.toString.
BUG= http://dartbug.com/15678

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31318 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-20 07:18:21 +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
floitsch@google.com b85f96905d Add Duration.inMicroseconds and add Stopwatch.elapsed.
Review URL: https://codereview.chromium.org//12389056

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19406 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 18:13:41 +00:00
floitsch@google.com b0e4f4e168 Add +, -, * and comparison operators to Duration.
Review URL: https://codereview.chromium.org//12221087

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18296 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-09 02:09:15 +00:00