floitsch@google.com
76d507cb6f
Add List.insert.
...
BUG= http://dartbug.com/5375
Review URL: https://codereview.chromium.org//12383073
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20037 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 17:38:14 +00:00
erikcorry@google.com
2a857debea
dart2js: Create noSuchMethod handlers at runtime to reduce overhead.
...
This reduces the overhead for using noSuchMethod from over 10% to around 2%.
Following this change the original source names are not present when
minifying. This means you get the minified name in the methodName property
on InvocationMirror objects.
R=ngeoffray@google.com
BUG=
Review URL: https://codereview.chromium.org//12499005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20005 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 11:49:13 +00:00
scheglov@google.com
139e02c68e
Rename analyzer-experimental to analyzer_experimental.
...
https://code.google.com/p/dart/issues/detail?id=9071
R=pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org//12838003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19973 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 21:42:01 +00:00
kevmoo@j832.com
050c82b520
pkg/unittest: locking down TestCase
...
Strip out most of the public API, leaving only read-only properties that might
be interesting for users of unittest.
This class is not designed to be instantiated or reused outside of unitttest.
The only constructor for TestCase makes strict assumptions about the unittest
environment, specifically _currentGroup, _testSetup, _testTeardown.
This enables maximum flexibility to evolve and improve the unittest library
without concern for supporting random use cases invented by 3rd-parties trying to be clever
Before: http://cl.ly/image/41230W032h1d
After: http://cl.ly/image/0K0E2S3g1327
All unittest via ./tools/bots/pub.py -n pub-mac pass
Review URL: https://codereview.chromium.org//12452004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19972 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 21:18:45 +00:00
scheglov@google.com
ec569934ae
Disable resolver_test.
...
TBR
I still cannot find way to get SDK path on bot :-(
R=pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org//12545032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19943 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 16:31:06 +00:00
scheglov@google.com
d946286578
Look for dart-sdk in two places.
...
For standalone dart-sdk and for test bot.
R=pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org//12809003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19942 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 16:19:54 +00:00
floitsch@google.com
482b2f34e8
Move Options to dart:io.
...
Review URL: https://codereview.chromium.org//12794002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19927 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 13:12:00 +00:00
ager@google.com
26c4b3a58d
Fix file descriptor leak in event handler implementation. When shutting down an isolate, we did not destruct the eventhandler so we leaked the file descriptors for it.
...
Also fix leak of monitor wait data objects on Windows.
R=sgjesse@google.com
BUG=dartbug.com/9021
Review URL: https://codereview.chromium.org//12646007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19921 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 11:11:38 +00:00
kevmoo@j832.com
3f6b0a78d0
pkg/unittest: fixed deprecations in alt configs
...
specifically compact_vm_config, html_layout_config, interactive_html_config
No tests exist for these. Verified interactive_html_config is no longer broken
All are now 'green' under editor analysis
Review URL: https://codereview.chromium.org//12598008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19908 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 02:03:29 +00:00
nweiz@google.com
ecf000d1af
Use ".."-style imports in scheduled_test.
...
This will allow it to be imported by Pub, and to import pkg/http for future
tests.
Review URL: https://codereview.chromium.org//12449016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19905 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 23:57:47 +00:00
nweiz@google.com
813010cf01
Display which nested tasks are running when an error occurs in a scheduled test.
...
Review URL: https://codereview.chromium.org//12512005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19900 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 22:09:55 +00:00
nweiz@google.com
bed4ef5d73
Display metadata about out-of-band callbacks in scheduled test errors.
...
Review URL: https://codereview.chromium.org//12637020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19896 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 20:57:07 +00:00
floitsch@google.com
65718c56df
Rename XMatching to XWhere.
...
For example firstMatching -> firstWhere.
BUG= http://dartbug.com/8664
BUG= http://dartbug.com/8337
Review URL: https://codereview.chromium.org//12537009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19880 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 17:34:49 +00:00
scheglov@google.com
7a5e2100ad
Skip analyzer-experimental/.../resolver_test test.
...
TBR
R=efortuna@google.com
BUG=
Review URL: https://codereview.chromium.org//12440028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19830 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 23:27:53 +00:00
scheglov@google.com
5ef5ba52e4
Fixing build.
...
TBR
R=pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org//12637014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19821 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 21:15:36 +00:00
scheglov@google.com
204d01da8d
Push new analyzer-experimental with Resolver and ResolverTest.
...
R=pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org//12671003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19820 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 20:52:08 +00:00
amouravski@google.com
6e056b8044
Lots of little changes for dartdoc/apidoc.
...
* Alphabetized imports.
* Added TODOs.
* Removed some prefixes.
* Cleaned up a LOT of async code to make it work better.
* Much, much, much friendlier status messages for dartdoc/apidoc. More to do...
* Prevented many, many bad warnings from showing up... by fixing them.
* Smarter finding of packages directories.
* Started using pathos all over the place.
* Added indexed_db to html_diff.
Review URL: https://codereview.chromium.org//12448006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19817 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 20:27:53 +00:00
floitsch@google.com
cead1d41f1
ceil/floor/truncate/round return integers.
...
This CL supercedes https://codereview.chromium.org/11748016/
Review URL: https://codereview.chromium.org//12317107
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19810 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 18:54:37 +00:00
lrn@google.com
53f877edb7
Rename String.concat to operator+.
...
Review URL: https://codereview.chromium.org//12441003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19788 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 12:59:17 +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
nweiz@google.com
afcfccea83
Accommodate a race condition in pkg/scheduled_test/scheduled_process_test.
...
BUG=9022
Review URL: https://codereview.chromium.org//12741004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19754 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-09 02:02:26 +00:00
nweiz@google.com
b73ee6b89a
Remove debugging prints and comment out a few more tests in pkg/scheduled_test.
...
BUG=9022
Review URL: https://codereview.chromium.org//12735002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19753 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-09 00:08:49 +00:00
nweiz@google.com
88c193cf05
Add a bunch of ugly debugging prints to figure out why the bots are failing.
...
Review URL: https://codereview.chromium.org//12732004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19751 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 23:52:09 +00:00
nweiz@google.com
8fe98eca6c
Fix the build breakages caused by r19742.
...
TBR
Review URL: https://codereview.chromium.org//12663006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19746 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 23:31:02 +00:00
nweiz@google.com
15762df9f4
Stop working around issue 8512.
...
Review URL: https://codereview.chromium.org//12452008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19743 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 23:04:09 +00:00
nweiz@google.com
b67be38c35
Add a ScheduledProcess class to pkg/scheduled_test.
...
BUG=8511
Review URL: https://codereview.chromium.org//12377093
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19742 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 23:02:04 +00:00
kevmoo@j832.com
72390e1545
pkg/unittest: fixed references to configuration implementations
...
Removed references to removed config libraries.
Replaced with references to existing config libraries
Tightened up description of matcher library
Review URL: https://codereview.chromium.org//12458002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19741 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 22:40:28 +00:00
amouravski@google.com
5ea5ef0145
Fix webdriver build warnings.
...
Review URL: https://codereview.chromium.org//12566008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19723 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 21:06:55 +00:00
ahe@google.com
e6d4c9925c
Revert "Don't output tons of messages on apidoc." and "Fix bot breaks."
...
This reverts r19662 and r19666.
Review URL: https://codereview.chromium.org//12690003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19694 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 13:55:39 +00:00
floitsch@google.com
d9fc776d43
Mark date_time_format_unitialized_test as flaky.
...
Review URL: https://codereview.chromium.org//12521008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19691 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 13:12:40 +00:00
floitsch@google.com
dd48256fe5
Remove deprecated StringBuffer.add, addAll and addCharCode.
...
Review URL: https://codereview.chromium.org//12473003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19690 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 13:07:18 +00:00
lrn@google.com
bead146749
Renamed StreamSink to EventSink. Renamed signalError to addError.
...
Review URL: https://codereview.chromium.org//12610006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19683 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 11:31:19 +00:00
sgjesse@google.com
b6096848b1
Make IOSink implement StringSink
...
Besides adding the StringSink methods I also added writeBytes and
deprecated both add and addString.
To handle the encoding of strings the IOSike has an encoding
property. This property is mutable in situation when it makes sense to
change encoding of what is written. The exception here is for HTTP
where the encoding is determined from the header and the encoding
cannot be changed.
R=ajohnsen@google.com , ager@google.com , nweiz@google.com
BUG=
Review URL: https://codereview.chromium.org//12504006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19676 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 10:06:28 +00:00
amouravski@google.com
cc1932ca71
Don't output tons of messages on apidoc.
...
Review URL: https://codereview.chromium.org//12642004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19662 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 23:19:45 +00:00
ricow@google.com
bf4db7b7be
Suppress failure in pkg/intl/test/date_time_format_http_request_test
...
Filed http://dartbug.com/8983
Review URL: https://codereview.chromium.org//12576004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19627 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 14:13:14 +00:00
sgjesse@google.com
ff47888a0d
Make instances of HeaderValue and ContentType immutable
...
Their parameters map is still mutable though.
R=ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//12440002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19598 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 07:25:56 +00:00
scheglov@google.com
31636d35f5
Use JavaFile instead of Dart File.
...
This fixes two failing tests (which we were have to comment out).
Plus, it also looks better IMHO, isolates File in single class, removing additional top-level functions.
R=pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org//12543009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19585 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 22:16:13 +00:00
dgrove@google.com
7d86e62d26
Import packages outside oauth2 via ../../.../pkg/ . This allows packages
...
to have their imports rewritten and uploaded to pub.
Review URL: https://codereview.chromium.org//12543004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19566 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 17:17:05 +00:00
scheglov@google.com
be50bddc3e
Use limited JavaStringBuilder implementation instead of Dart StringBuffer.
...
StringBuffer.clear() is deprecated and will be removed.
R=pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org//12543003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19565 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 17:12:47 +00:00
scheglov@google.com
6e7bff23f8
Attempt to fix builds after analyzer-experimental fixes.
...
TBR
R=pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org//12447008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19533 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 01:19:01 +00:00
scheglov@google.com
3a98de6d0a
Update analyzer-experimental.
...
R=pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org//12502002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19532 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 00:10:49 +00:00
gram@google.com
8b1e26736c
pkg/unittest: fix TestCase.runningTime
...
issue 4437 has been fixed for a while
Review URL: https://codereview.chromium.org//12442005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19522 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 22:27:04 +00:00
gram@google.com
c9a3ba45af
Tweak mismatch description message to check for Iterable, not Collection.
...
See https://code.google.com/p/dart/issues/detail?id=8880
Review URL: https://codereview.chromium.org//12391076
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19428 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 22:23:41 +00:00
gram@google.com
7ba1dbb148
Don't throw if a non-string is passed to RegExpMatcher.
...
See https://code.google.com/p/dart/issues/detail?id=8881
Review URL: https://codereview.chromium.org//12395024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19426 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 22:10:35 +00:00
rnystrom@google.com
58c337d775
Fix scheduled_test after corelib broke it.
...
Review URL: https://codereview.chromium.org//12388085
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19416 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 19:28:07 +00:00
alanknight@google.com
25619b3922
Fix deprecated StringBuffer usages in Intl
...
BUG=
Review URL: https://codereview.chromium.org//12382036
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19412 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 18:41:28 +00:00
amouravski@google.com
e84340b7b6
Fixed two doc comments in pathos.
...
Review URL: https://codereview.chromium.org//12386051
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19401 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 17:26:37 +00:00
floitsch@google.com
d91bca2813
Add List.asMap().
...
Review URL: https://codereview.chromium.org//12391046
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19399 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 16:57:52 +00:00
lrn@google.com
f4300b84a2
Make List.from and Iterable.toList default to not growable.
...
Review URL: https://codereview.chromium.org//12401002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19391 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 14:55:40 +00:00