Commit Graph

252 Commits

Author SHA1 Message Date
whesse@google.com a0dee7c130 Replace expired SSL certificates in dart:io secure networking tests with ones good for 5 years.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18571 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 12:24:25 +00:00
kustermann@google.com 155b0b9666 Fixed tests to reliably clean up temporary files/directories
This should fix issue: http://dartbug.com/8534

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18518 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 15:39:14 +00:00
floitsch@google.com 02a5b031fe Change Future.delayed to take a Duration.
Review URL: https://codereview.chromium.org//12224081

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18471 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 19:31:22 +00:00
floitsch@google.com 3f7146707d Rework Timer interface.
Review URL: https://codereview.chromium.org//12213092

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18326 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-11 19:22:16 +00:00
whesse@google.com a0461f958d Remove erroneous assert from Windows implementation of dart:io File.fullPath.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18307 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-11 13:44:00 +00:00
asiva@google.com 395c4c3ac5 Update expected result.
Review URL: https://codereview.chromium.org//12094092

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17950 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 22:42:10 +00:00
kustermann@google.com 22da1e1fc8 Support for running a limited amount of browser tests in parallel
Patch Set 1:
  Refactored test_runner.dart to execute "Command after Command" instead of
  "TestCase after TestCase". By doing so, we don't couple the execution of
  compilation commands to the execution of the browser (or test) command.

Patch Set 2:
  Introduce a limitation on the number of parallel browser executions. By doing
  so we can run 'NumCores' compilation commands in parallel but only a single
  browser test command at any given time (necessary for IE).
  This way we can significantly reduce the cycle time on IE bots.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17764 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-29 15:16:44 +00:00
floitsch@google.com ed938af868 Rename new Uri.fromString to Uri.parse.
Review URL: https://codereview.chromium.org//12052038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17562 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 13:26:18 +00:00
floitsch@google.com fb7b9e3c5c Rename Date to DateTime.
BUG=http://dartbug.com/1424

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17549 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 12:16:37 +00:00
whesse@google.com 5f48479aa7 Speed up web_socket_test by running subtests in parallel.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17218 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 15:40:16 +00:00
whesse@google.com 0d3f1c5396 Fix Path.relativeTo in special case where base is a substring of this.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17145 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 16:31:54 +00:00
whesse@google.com 9d7b2710a7 Fix Path.relativeTo and add support for relative paths as input.
BUG=https://code.google.com/p/dart/issues/detail?id=7870
BUG=https://code.google.com/p/dart/issues/detail?id=7873
TEST=standalone/io/path_test

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17138 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 14:05:52 +00:00
sgjesse@google.com 0112a42f5e Fix a test which needed an error handler after r17064
R=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17115 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 07:32:54 +00:00
whesse@google.com 81c0cc6ba6 Disable secure web socket test on Windows (issue 7157) and replace with web socket test.
BUG=https://code.google.com/p/dart/issues/detail?id=7157

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17081 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 16:19:58 +00:00
whesse@google.com 6aa287551f Enable WebSocket secure connection using "wss" in W3C interface. Add testing of secure WebSocket connection for multiple websocket tests.
BUG=
TEST=standalone/io/web_socket_test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17074 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 15:06:17 +00:00
whesse@google.com bc150e783f Edit comments for websocket, drop hashcode() from interface.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17073 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 15:05:49 +00:00
sgjesse@google.com a6a16b6801 Improve the error-propagation on socket streams
R=ager@google.com, ajohnsen@google.com

BUG=dart:7334

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17064 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 12:58:28 +00:00
kustermann@google.com ecf1cdeeb8 Fixed utf8 encoding/decoding issues in the testing scripts
Review URL: https://codereview.chromium.org//11883033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17057 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 10:59:24 +00:00
sgjesse@google.com 947177049c Change the WebSocket implementation to use Socket.read instead of Socket.readList
This removes the need for Socket.available which is not implemented for SecureSocket.

R=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17047 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 08:39:37 +00:00
whesse@google.com 3696154a8e Default constructor for dart:io Path now handles native Windows paths. Path() now does the same as Path.fromNative(). Path.fromNative() is removed, and all uses of it replaced by Path().
BUG=https://code.google.com/p/dart/issues/detail?id=7872

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17026 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 19:46:13 +00:00
sgjesse@google.com e8b1524678 Fix dart2js compilation error in previous commit
TBR=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16972 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 13:58:09 +00:00
sgjesse@google.com 4071075fdb Reapply "Add onClosed callbacks to HTTP output streams""
The test have been rewritten to expect any order of the onClosed
events.

R=ager@google.com

BUG=dart:7761

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16969 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 13:18:38 +00:00
lrn@google.com 4868ee2110 Remove Futures class, move methods to Future.
Optimize Future.forEach, Future.delay.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16954 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 09:46:45 +00:00
sgjesse@google.com 6e6d7dcf35 Always set content length to 0 on redirect requests
R=ajohnsen@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16914 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 11:44:51 +00:00
kustermann@google.com 5cd8b15336 Status update: io/test_runner_test is passing + small fix in test_runner_test
Review URL: https://codereview.chromium.org//11833031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16905 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 09:30:55 +00:00
whesse@google.com 0c3bb5ba04 Fix test_runner_test which uses Timer to import dart:async.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16870 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 18:55:27 +00:00
sgjesse@google.com 6a28c3cc61 Revert "Add onClosed callbacks to HTTP output streams"
BUG=7761

TBR=ager@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16862 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 16:19:09 +00:00
sgjesse@google.com a50ad1516d Add onClosed callbacks to HTTP output streams
The onClosed will e called after the stream is closed, but the actual
data might still be buffered internally.

BUG=dart:7761

R=ager@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16860 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 15:56:16 +00:00
whesse@google.com 7f499abb04 Fix race condition in Directory.create.
BUG=https://code.google.com/p/dart/issues/detail?id=7679

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16842 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 09:59:14 +00:00
ager@google.com 75c8f427cc Update remaining usages of Completer.completeException.
R=floitsch@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16840 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 09:29:39 +00:00
ajohnsen@google.com 32eeecd930 Fix tests for VM in checked mode.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16689 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:59:49 +00:00
floitsch@google.com 4a7dfd2da3 Big merge from experimental to bleeding edge.
Review URL: https://codereview.chromium.org//11783009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16687 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:23:16 +00:00
sgjesse@google.com 24ed1e32bb Fix badly written test
The test closed the output stream on an HTTP response before consuming the request.

R=ager@google.com

BUG=dart:7562

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16639 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-04 14:41:05 +00:00
whesse@google.com 7f60b90a48 Add synchronous directory listing to dart:io Directory.
BUG=dart:4730

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16636 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-04 13:51:15 +00:00
ager@google.com d74a3dfcce Fix Directory.create(recursive: true) for non-existing paths.
R=sgjesse@google.com
BUG=dartbug.com/7679

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16605 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-03 16:09:46 +00:00
ager@google.com 09d44d1ebe Reapply change to enable a couple of tests that were not run because they were named incorrectly.
R=sgjesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16596 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-03 10:15:14 +00:00
sgjesse@google.com 327fb685ac Revert "Enable a couple of tests that were disabled because they"
Caused tets errors on Windows

TBR=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16578 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-02 15:42:17 +00:00
ager@google.com 4888404631 Enable a couple of tests that were disabled because they
did not have a name ending in _test.dart.

Deleted a test that tested the arguments to readInto on
a socket input stream. readInto is being deprecated and
rewriting the test would be a waste of time.

R=sgjesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16576 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-02 15:15:31 +00:00
sgjesse@google.com 48817020fc Rewrite test
Rewrite test string_decoder_test to use only public API. This makes
the test compile with dart2js. Also fixed a bug where an unfinished
UTF-8 sequeuce is not reported as an error.

R=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16575 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-02 15:08:45 +00:00
sgjesse@google.com 40ff2c0a96 Improve streaming UTF-8 decoder
Decode 5 and 6 byte UTF-8.

Convert code points not supported by Dart into replacement character.

Better error checking.

Added test of some corner cases.

R=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16573 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-02 12:38:55 +00:00
ager@google.com c31250d58b Make Platform.environment case-insensitive on Windows.
Environment variables on Windows are case-insensitive. In order
to reliably be able to test if an environment variable is set
and get its value, we therefore need to go case-insensitive.

R=sgjesse@google.com
BUG=dartbug.com/7454

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16571 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-02 11:26:31 +00:00
sgjesse@google.com 80f0708255 Disable some testing on Windows while examining the problem
TBR=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16438 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-21 11:30:47 +00:00
ager@google.com cca955efe2 Implement toString on File and Directory objects.
R=sgjesse@google.com
BUG=dartbug.com/7552

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16436 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-21 11:00:56 +00:00
ager@google.com 6d0f985432 Add exitCode setter to set the exit code returned by the Dart VM
standalone binary on normal termination.

This is needed to be able to set the exit code without cutting
off pending asynchronous operations.

R=sgjesse@google.com,rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16435 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-21 10:36:52 +00:00
ager@google.com 695e7f7490 Fix File.writeAsString to use named optional arguments.
R=sgjesse@google.com
BUG=dartbug.com/7555

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16433 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-21 10:32:48 +00:00
sgjesse@google.com e5d693d12d Refactor handling of Transfer-Encoding
This moves more header handling to the HttpHeaders object

R=ajohnsen@google.com

TEST=tests/standalone/io/http_content_length_test.dart

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16432 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-21 10:11:05 +00:00
sgjesse@google.com 7e293aa077 Reapply "Fix URI encoding/decoding of + and space""
Updated test expectations for some tests for pkg/http, pkg/oauth2 and
pub to match the change.

TBR=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16426 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-21 09:50:05 +00:00
sgjesse@google.com 48822ca742 Revert "Fix URI encoding/decoding of + and space"
TBR=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16421 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-21 09:16:46 +00:00
sgjesse@google.com 489f68046f Fix URI encoding/decoding of + and space
The URI decoder now encodes space as + and + as %2B. Likewise the URI
decode decodes + as space (and %2B as +, but that was already the
case).

R=lrn@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16419 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-21 08:53:38 +00:00
whesse@google.com ee2a8fe7d6 Add automatic initialization of SecureSocket library.
BUG=dart:7541

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16384 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 18:17:07 +00:00