Commit Graph

377 Commits

Author SHA1 Message Date
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
ahe@google.com d5337f6b1e Mark flaky tests as such.
Review URL: https://codereview.chromium.org//11348244

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15376 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 09:47:04 +00:00
scheglov@google.com 5d7261d837 Issue 6790. Support for '--name=value' options style.
http://code.google.com/p/dart/issues/detail?id=6790

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15312 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-26 16:32:30 +00:00
scheglov@google.com 1277895b47 Issue 6836. Using undeclared identifier in static context is now warning.
http://code.google.com/p/dart/issues/detail?id=6836

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15311 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-26 16:18:35 +00:00
sgjesse@google.com 7805f03972 Generate an error for active connections when the HTTP client is shutdown
Before the underlying sockets where just silently closed causing no more IO events on active connections no matter what state they where in.

Also added an optional "force" argument to HttpClient.shutdown. If that is false (the default) The HttpClient will not close active connections until they are done. This causes all pkg/http and pub tests to pass.

R=ager@google.com, nweiz@google.com

BUG=dart:6594

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15275 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-23 09:28:34 +00:00
lrn@google.com 22309b260c Remove NullPointerException.
Accessing non-existing members on null now throws NoSuchMethodError.
Throwing a null value fails by throwing a NullThrownError.
Methods checking for null now generally throw new ArgumentError(null).

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15136 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 09:21:52 +00:00
nweiz@google.com 70e056e7ae Refactor http.Client and http.BaseClient to allow http.Client in type annotations.
Review URL: https://codereview.chromium.org//11308111

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15124 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 23:54:31 +00:00
nweiz@google.com 6b0b1fb262 Add TODOs about narrowing JSON catch clauses to the OAuth2 package.
Review URL: https://codereview.chromium.org//11308110

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15120 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 23:17:00 +00:00
nweiz@google.com a99dde64ec Fix OAuth2 tests, and disable them on non-dart:io platforms.
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15116 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 22:38:44 +00:00
nweiz@google.com ed9a474a50 Add a package for authenticating via OAuth2.
Review URL: https://codereview.chromium.org//11420025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15115 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 22:23:33 +00:00
ahe@google.com 6535d87291 Skip pkg/args_test on Dartium.
We still need to set up a package-root for Dartium.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15083 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 14:08:44 +00:00