Commit Graph

2501 Commits

Author SHA1 Message Date
ager@google.com 8a814a8618 Reenable http client tests and remove test that relies on a specific port on localhost.
R=sgjesse@google.com
BUG=dartbug.com/2246

Review URL: https://chromiumcodereview.appspot.com//10908059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11782 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 05:59:33 +00:00
ajohnsen@google.com 0c17bf126c Throw an error if the ServerSocket host argument is invalid.
BUG=

Review URL: https://chromiumcodereview.appspot.com//10917064

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11769 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-03 14:39:47 +00:00
ager@google.com 29510295a0 Fix flaky http test and reenable on buildbots.
The clients did not read out all the data before closing the
HttpClient.

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

Review URL: https://chromiumcodereview.appspot.com//10919061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11766 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-03 13:59:34 +00:00
sgjesse@google.com 6a5e76ef77 Better handling of reading empty files
R=whesse@google.com

BUG=dart:4834
TEST=tests/standalone/io/file_test.dart

Review URL: https://chromiumcodereview.appspot.com//10913005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11605 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 11:36:11 +00:00
srdjan@google.com 56996bc3f4 Fix issue 1146: skip regular Mint test in 64 bit. Add Mint test for 64 bit.
Review URL: https://chromiumcodereview.appspot.com//10887037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11563 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 22:34:10 +00:00
kasperl@google.com 8bd4bf096b Update almost all tests (except co19) to use the new try-catch syntax.
R=ngeoffray@google.com
BUG=

Review URL: https://chromiumcodereview.appspot.com//10891020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11492 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 08:11:41 +00:00
iposva@google.com fedcff55ed - Change "static final" to "static const" in the tests/ directory.
Review URL: https://chromiumcodereview.appspot.com//10871071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11350 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 22:21:20 +00:00
ager@google.com 722c1a3ce6 Deprecate Math object in corelib in favor of dart:math library.
Review URL: https://chromiumcodereview.appspot.com//10829459

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11155 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 14:33:01 +00:00
whesse@google.com abbaec0756 Stop test_runner_test from failing when process_test times out instead of crashing.
BUG=dart:1947
TEST=standalone/io/test_runner_test

Review URL: https://chromiumcodereview.appspot.com//10880003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11130 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 10:56:15 +00:00
rnystrom@google.com 1e14772bb0 Don't traverse through junctions when recursively deleting on Windows.
Review URL: https://chromiumcodereview.appspot.com//10825413

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11005 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 23:25:13 +00:00
regis@google.com d9b0276a4c Require two type arguments for map literals (issue 4522).
Spec has been changed back.
VM temporarily accepts a single type argument and emits a warning.
Update tests, dart2js source, dartdoc, etc...
Disable failing co19 tests (issue 175 filed).
Review URL: https://chromiumcodereview.appspot.com//10854191

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10861 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 20:44:32 +00:00
ajohnsen@google.com 8ca15ec105 Fix HttpHeaders.date and add HttpHeaders.ifModifiedSince.
BUG=

Review URL: https://chromiumcodereview.appspot.com//10855197

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10793 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 06:50:54 +00:00
ager@google.com d6fde19b9d Revert "Start adding TLS (SSL) sockets to dart:io."
Revert "Add stub for TlsSocket to dart2js library."

R=whesse@google.com
BUG=

Review URL: https://chromiumcodereview.appspot.com//10828320

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10700 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 05:50:35 +00:00
whesse@google.com 5c55f1dd28 Start adding TLS (SSL) sockets to dart:io.
Add Linux implementation for SSL client sockets.

BUG=dart:3950
TEST=standalone/io/tls_socket_test

Committed: https://code.google.com/p/dart/source/detail?r=10565
Reverted: r=10567

Review URL: https://chromiumcodereview.appspot.com//10704159

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10650 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 14:34:02 +00:00
jackpal@google.com 9b49d5932b Add "android" as an expected OS target.
Enables this test to pass when run on Android.

BUG=

Review URL: https://chromiumcodereview.appspot.com//10828231

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10590 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 17:35:07 +00:00
whesse@google.com e46ed16ce1 Revert "Start adding TLS (SSL) sockets to dart:io."
This reverts commit 10565.

BUG=

Review URL: https://chromiumcodereview.appspot.com//10832269

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10567 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 12:31:36 +00:00
whesse@google.com 7ad7023d79 Start adding TLS (SSL) sockets to dart:io.
Add Linux implementation for SSL client sockets.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10704159

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10565 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 12:22:03 +00:00
sigmund@google.com 1d950db569 Add Timer implementation for dart2js. Also moves tests to appropriate location.
Review URL: https://chromiumcodereview.appspot.com//10830230

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10460 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-09 20:58:07 +00:00
nweiz@google.com 884404dca2 Add an OutputStream.closed getter.
BUG=3603

Review URL: https://chromiumcodereview.appspot.com//10832188

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10455 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-09 20:09:19 +00:00
nweiz@google.com 6b9b429688 Add a ListOutputStream.onData callback.
BUG=4335

Review URL: https://chromiumcodereview.appspot.com//10832145

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10298 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-06 18:25:14 +00:00
ager@google.com 4531c0c770 Remove old isolate API and update all code in the repository to use
the new API.

R=kasperl@google.com,sigmund@google.com,turnidge@google.com
BUG=

Review URL: https://chromiumcodereview.appspot.com//10837070

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10210 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 07:24:29 +00:00
ajohnsen@google.com cf060db62a Update standalone.status file - my previous commit fixed two tests.
BUG=

Review URL: https://chromiumcodereview.appspot.com//10843028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10117 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 14:05:21 +00:00
smok@google.com 4412f8653f dart2dart Skip non-language tests, leave yaml too.
Review URL: https://chromiumcodereview.appspot.com//10823079

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10014 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-30 13:50:54 +00:00
smok@google.com ac8d991870 dart2dart
Several fixes for more robust renaming of type annotations and Send-s:
Correct renaming of class interfaces with type arguments, renaming
of global functions, constructor and named constructor calls, static
field accesses.

Review URL: https://chromiumcodereview.appspot.com//10824062

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10003 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-30 05:27:58 +00:00
antonm@google.com 74d17a16f9 dart2dart compiler support.
R=whesse@google.com

Review URL: https://chromiumcodereview.appspot.com//10809069

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9880 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 11:20:41 +00:00
ajohnsen@google.com 73477dd9cb Add the ability to get info of a Http connection, e.g. host and port.
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10803033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9761 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-19 15:18:50 +00:00
antonm@google.com 3fa10eee68 Remove DRT specific suppression, should be covered by generic x64 suppression below.
TBR=podivilov@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10692089

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9412 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 15:38:19 +00:00
antonm@google.com 2d39d7ff2e Suppress medium_integer_test as Dartium on Linux is now x64.
TBR=podivilov@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10702063

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9298 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-02 16:29:10 +00:00
whesse@google.com 28a43a2280 Add test for native extensions that copies the extension to a test directory and runs it.
BUG=dart:1817
TEST=standalone/io/test_extension_test

Review URL: https://chromiumcodereview.appspot.com//10699006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9247 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-29 12:45:28 +00:00
whesse@google.com 0b2a9d5270 Make Path implement (extend) Hashable, and make Path.append to an empty path work right.
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10668041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9110 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 14:24:48 +00:00
whesse@google.com e22942304a IO: The test standalone/io/file_output_stream_test.dart would leave a directory in /tmp. Fixed.
BUG=
TEST=standalone/io/file_output_stream

Review URL: https://chromiumcodereview.appspot.com//10670003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9105 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 10:35:57 +00:00
whesse@google.com 1bc6b99ce6 Add methods to dart:io Path.
Add .append, which adds a segment to the end of a Path, and
.pathWithoutExtension, which removes the extension (part after .),
from the filename at the end of a path, and returns the new path.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10638002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9028 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-22 11:02:49 +00:00
whesse@google.com 015c40188c Add .fromPath constructors to File and Directory.
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10639004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9024 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-22 10:36:20 +00:00
iposva@google.com 0fd25118b9 - Move the Timer interface to the dart:isolate library so that it
is accessible from both client and standalone program.
- Enable a way for the embedder to provide the implementation of
  the Timer interface.
- Update tests.
Review URL: https://chromiumcodereview.appspot.com//10532123

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8987 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 16:17:21 +00:00
whesse@google.com c5d1431241 Add Path class to dart:io, add tests for it to standalone/io.
Just a preliminary implementation - make suggestions for changes.

BUG=
TEST=standalone/io/path_test

Review URL: https://chromiumcodereview.appspot.com//10417053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8909 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-20 15:21:01 +00:00
floitsch@google.com 9eb714ad74 Mark test as failing, while I investigate.
Review URL: https://chromiumcodereview.appspot.com//10592017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8903 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-20 12:35:56 +00:00
floitsch@google.com a51dc25968 Make isUtc a getter, change some method names in Date. Weekday is now 1 based.
isUtc is now a getter.
Date.hours -> Date.hour
Date.minutes -> Date.minute
Date.seconds -> Date.second
Date.milliseconds -> Date.millisecond
Date.fromEpoch -> Date.fromMillisecondsSinceEpoch
Date.value -> Date.millisecondsSinceEpoch
Date.MON == 1 (up to Date.SUN == 7).

Fixes issue 3444, 1985.

Review URL: https://chromiumcodereview.appspot.com//10538105

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8899 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-20 11:43:46 +00:00
whesse@google.com 91982e8d76 Close a _FileInputStream only immediately before onClosed is called, so .closed returns false before that.
BUG=
TEST=standalone/io/file_test

Review URL: https://chromiumcodereview.appspot.com//10536168

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8649 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-14 11:48:02 +00:00
whesse@google.com 99cbf6de81 Add test for buffered file input stream on dart:io File class.
BUG=
TEST=standalone/io/file_test

Review URL: https://chromiumcodereview.appspot.com//10544134

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8643 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-14 08:36:29 +00:00
ngeoffray@google.com be53362ff6 Add test case for issue 3147.
Review URL: https://chromiumcodereview.appspot.com//10534135

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8609 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 14:49:26 +00:00
whesse@google.com 1d5fdc82be Fix status file error: OK, Fail should be Pass, Fail.
TBR=vegorov@google.com
BUG=3599
TEST=standalone/io/http_basic_test

Review URL: https://chromiumcodereview.appspot.com//10542138

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8598 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 10:17:40 +00:00
whesse@google.com 1a61b278d0 Mark standalone/io/http_basic_test as flaky.
BUG=3599
TEST=standalone/io/http_basic_test

Review URL: https://chromiumcodereview.appspot.com//10533122

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8596 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 09:00:21 +00:00
whesse@google.com 31f1777851 Add buffering to _FileInputStream implementation.
Revert "Revert dart:io file InputStream buffering to fix bugs in it."
Recommits r8435, r8401, r8396, r8395, with additional fixes.

BUG=3434
TEST=

Review URL: https://chromiumcodereview.appspot.com//10542102

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8537 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 10:55:51 +00:00
ager@google.com a0c90242b8 Add missing closed check to random access file.
R=iposva@google.com
BUG=
TEST=standalone/io/file_error_test

Review URL: https://chromiumcodereview.appspot.com//10536112

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8525 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 07:28:29 +00:00
whesse@google.com 20725c01d8 Enable standalone/io/http_test, splitting it into three separate tests.
This allows better reporting and diagnosis of flakiness.
Also fixed some type and interface issues that created type warnings in http tests.

BUG=2987
TEST=standalone/io/http_test, http_advanced_test, http_read_test, http_basic_test

Review URL: https://chromiumcodereview.appspot.com//10533078

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8491 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 15:09:54 +00:00
floitsch@google.com a1e41b060b Reapply "Remove deprecated classes and functions in Date."
This reapplies a fixed version of commit 8445.

Original CL: https://chromiumcodereview.appspot.com//10541050

Review URL: https://chromiumcodereview.appspot.com//10538061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8455 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 17:32:18 +00:00
floitsch@google.com c046c899a0 Revert "Remove deprecated classes and functions in Date."
This reverts commit 8445.

Review URL: https://chromiumcodereview.appspot.com//10532068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8446 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 16:31:55 +00:00
floitsch@google.com 2c2ee2000f Remove deprecated classes and functions in Date.
Review URL: https://chromiumcodereview.appspot.com//10541050

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8445 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 16:01:00 +00:00
whesse@google.com 118a9ad7e7 Revert dart:io file InputStream buffering to fix bugs in it. Reverts r8435, r8401, r8396, r8395.
BUG=dart:3450, dart:3434
TEST=

Review URL: https://chromiumcodereview.appspot.com//10537077

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8441 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 14:39:02 +00:00
whesse@google.com 842194bd39 Fix dart:io File.openInputStream input stream to cancel outstanding onData events when EOF reached.
BUG=
TEST=standalone/io/file_test

Review URL: https://chromiumcodereview.appspot.com//10543078

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8435 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 12:05:53 +00:00