Commit Graph

35087 Commits

Author SHA1 Message Date
rnystrom@google.com 58c56eacd1 Convert unittest to use "package:" imports.
Review URL: https://codereview.chromium.org//11644055

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16403 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 21:53:37 +00:00
nweiz@google.com 723a4afc9c Make dirname and basename ignore trailing separators and double slashes.
Separators are still preserved for other path methods.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16397 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 20:55:00 +00:00
floitsch@google.com ad7044373f Use Receive ports to make sure the VM doesn't shut down with async tests.
Backport from experimental/lib_v2.

Original CL: https://codereview.chromium.org//11451017

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16393 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 19:55:10 +00:00
bak@google.com 6c398a3a25 Fixed Issue 7508: Many StringBuffer methods return StringBuffer, but should be void.
- Methods in StringBuffer have now been changed so they do not return this.
- This forces the programmer to use cascaded calls instead of flaky chaining of calls.
Review URL: https://codereview.chromium.org//11645019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16358 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 11:13:27 +00:00
sgjesse@google.com beaf02365a Change the HTTP Content-Length handling
Move the handling of the Content-Length to the HttpHeaders
object. This makes it possible to set the Content-Length through the
headers as well as directly on HttpResponse and HttpClientRequest.

R=ajohnsen@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16357 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 08:50:00 +00:00
nweiz@google.com de54a75bfc Code review change for r16238.
Review URL: https://codereview.chromium.org//11647010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16344 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-19 21:41:13 +00:00
floitsch@google.com 319d50ea22 Make request_test wait for its results.
Review URL: https://codereview.chromium.org//11644025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16341 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-19 21:16:38 +00:00
nweiz@google.com 71e2fc2bf4 Fix analyzer errors/warnings for Pub.
Review URL: https://codereview.chromium.org//11609005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16299 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-19 01:08:42 +00:00
rnystrom@google.com 0b54c34c24 Disable path tests where dart:io is not available.
Review URL: https://codereview.chromium.org//11638007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16298 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-19 00:20:09 +00:00
rnystrom@google.com 747a3f83f5 Move path ("pathos") to pkg/.
Review URL: https://codereview.chromium.org//11647003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16297 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-19 00:04:37 +00:00
ricow@google.com e86d230e80 Remove suppressions from pkg status file, these tests are no longer failing after 16238.
Review URL: https://codereview.chromium.org//11615018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16245 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 06:38:12 +00:00
rnystrom@google.com 584c50fb6d Revert "Convert unittest to use "package:" imports."
This reverts commit 1ba2f12fb6f5a34f22647ec917e05abc7f6ac6b3.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16241 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 01:31:35 +00:00
rnystrom@google.com 4c73170a69 Convert unittest to use "package:" imports.
Review URL: https://codereview.chromium.org//11570043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16239 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 01:14:57 +00:00
nweiz@google.com a8eb61fb8b Fix analyzer errors and warnings for pkg/http.
BUG=7458

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16238 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 00:26:15 +00:00
alanknight@google.com 87601ebd4a Duplicate of https://chromiumcodereview.appspot.com/11567018/
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16229 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 21:14:30 +00:00
scheglov@google.com ecd5c7d0bf Issue 5064. Some more 'skip' tests triage
http://code.google.com/p/dart/issues/detail?id=5064

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16227 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 20:39:03 +00:00
rnystrom@google.com 26d8a4192f Fix URL.
Review URL: https://codereview.chromium.org//11574051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16191 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-15 01:21:10 +00:00
rnystrom@google.com cef256ecf1 Convert the small packages in pkg to use "package:".
Review URL: https://codereview.chromium.org//11575043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16189 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-15 01:05:35 +00:00
alanknight@google.com b909ef7dd9 Replicating CL https://chromiumcodereview.appspot.com/11553012/
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16182 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-14 22:14:53 +00:00
sigmund@google.com 14de8ec666 Avoid timeouts when DRT fails to find a file.
Review URL: https://codereview.chromium.org//11565018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16177 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-14 19:15:00 +00:00
sgjesse@google.com b4bfe2f493 Update status file
The failure does not reprodice locally any more.

R=ager@google.com

BUG=dart:6967

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16025 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-12 09:16:54 +00:00
alanknight@google.com 6b4d4c0cad Throttle intl file tests
Review URL: https://codereview.chromium.org//11477014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15998 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-11 19:51:54 +00:00
sgjesse@google.com 93514a3b28 Reapply "Stop working around issue 6984."
Originally committted in r15804 and reverted in r15825.

Issue 6984 should be fixed by r15951.

R=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15961 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-11 10:03:21 +00:00
alanknight@google.com 56324ae4d8 pkg.gyp causes dartium build failure on windows
Review URL: https://codereview.chromium.org//11511017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15947 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-11 05:57:04 +00:00
rnystrom@google.com 89dbb7be66 Add "toString()" to BaseRequest.
Review URL: https://codereview.chromium.org//11480003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15869 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 21:49:27 +00:00
ahe@google.com 46c1741645 Have list_pkg_directories.py print something.
Review URL: https://codereview.chromium.org//11478021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15840 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 09:54:26 +00:00
rnystrom@google.com e3bc775e68 Revert "Add logging system to pub and sprinkle some logging in."
This reverts commit 60468a1a0854389bb3f460cf2368f22013f1af31.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15830 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 00:48:12 +00:00
rnystrom@google.com 578c415134 Add logging system to pub and sprinkle some logging in.
We'll have to tune which things we log over time, but this covers
most IO operations which is where almost all of our problems come
from.

This patch also means that going forward you should no longer call
print() or printError() (which is gone) directly. Instead:

print() -> log.message()
printError() -> log.error()

That ensures all messages will correctly get added to the log's
transcript.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15827 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 00:29:23 +00:00
nweiz@google.com 29318c2f5c Revert "Stop working around issue 6984."
Review URL: https://codereview.chromium.org//11464015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15825 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 00:09:19 +00:00
alanknight@google.com a6c56f84cb Create mock pub links for all packages under pkg, not a hard-coded list
Review URL: https://codereview.chromium.org//11444015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15811 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 22:09:34 +00:00
nweiz@google.com 01dd8fcb4e Stop working around issue 6984.
Review URL: https://codereview.chromium.org//11464006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15804 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 20:50:21 +00:00
alanknight@google.com 5df2b86dff Initial version of a serialization framework
Review URL: https://codereview.chromium.org//11293283

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15796 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 18:13:36 +00:00
nweiz@google.com 4ba4e92937 Handle OAuth2 AuthorizationExceptions in pub.
BUG=6950

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15747 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-05 19:47:32 +00:00
nweiz@google.com 00780eb118 Make the oauth2 lib handle OAuth2 401 errors.
BUG=6813

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15713 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-04 22:50:12 +00:00
nweiz@google.com 1855849da1 No longer work around issue 7013 and 7014 in pkg/http.
Review URL: https://codereview.chromium.org//11411327

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15657 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-03 21:14:07 +00:00
dgrove@google.com ab13795554 remove htmlescape.
TBR=efortuna@google.com
Review URL: https://codereview.chromium.org//11415241

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15610 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 23:04:17 +00:00
dgrove@google.com c5fa064ac4 Eliminate htmlescape package.
Review URL: https://codereview.chromium.org//11434063

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15609 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 22:57:34 +00:00
scheglov@google.com eef3848e9e Rollback removing Skip for DartC
TBR

For some reason this causes dart2js failures, but should not in theory.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15607 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 22:36:51 +00:00
dgrove@google.com 33abe0ef0a Add authors and homepages to packages.
Review URL: https://codereview.chromium.org//11418267

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15601 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 21:16:01 +00:00
scheglov@google.com e6640e35eb Remove 'skip' status from some of the tests.
About 100 of them.
More 100+ tests could be added, but because of http://code.google.com/p/dart/issues/detail?id=5064 most of them fail.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15599 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 21:11:41 +00:00
ahe@google.com 231fa25b3f Enable pkg/args_test on Dartium.
Review URL: https://codereview.chromium.org//11415225

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15583 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 12:44:46 +00:00
ahe@google.com e85ec5ce4a Fix package root deps to avoid cyclic dependencies when following symlinks.
Review URL: https://codereview.chromium.org//11316269

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15573 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 11:07:07 +00:00
nweiz@google.com 5c7323f35d Keep around a copy of the http.Request that triggered each Response.
Review URL: https://codereview.chromium.org//11348309

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15555 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 00:09:18 +00:00
nweiz@google.com 2c1d51db1c Make pkg/http use HttpClient.shutdown(force: true).
Review URL: https://codereview.chromium.org//11434018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15485 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 00:47:09 +00:00
nweiz@google.com 558ffd19bf Work around issue 6984.
This ensures that before an HTTP response is closed, its corresponding
request is drained of input.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15476 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 22:43:10 +00:00
nweiz@google.com 295a066707 Use Futures.forEach in http.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15475 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 22:39:33 +00:00
nweiz@google.com 748bbee8e7 Add http and oauth2 as SDK packages.
Review URL: https://codereview.chromium.org//11419207

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15466 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 19:35:59 +00:00
nweiz@google.com 06e7344e22 Make #maxRedirects and #followRedirects work for the dart:io HTTP client.
Review URL: https://codereview.chromium.org//11414195

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15433 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 01:54:16 +00:00
blois@google.com 2688c60a05 Dartifying members.
Updating dart:html to generate members which follow the Dart naming guidelines.

BUG=4830

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15405 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 17:38:23 +00:00
whesse@google.com 34771fb64c Clean up svn:ignore property and .gitignore in dart, dart/pkg, dart/runtime, and dart/samples.
Review URL: https://codereview.chromium.org//11421093

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15392 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 14:07:53 +00:00