Commit Graph

392 Commits

Author SHA1 Message Date
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
sgjesse@google.com b5995d1d9b Add method flush to output stream
R=ager@google.com

BUG=dart:1407
TEST=tests/standalone/src/io/FileOutputStreamTest.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8422 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 07:56:15 +00:00
srdjan@google.com a7a77d54ff Disable flaky file_test
Review URL: https://chromiumcodereview.appspot.com//10542061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8404 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-07 18:22:23 +00:00
whesse@google.com ada680e28f Change FileInputStream to only call onClosed callback when underlying file has been closed. Change standalone/io/file_test to check this.
TBR=ricow@google.com

BUG=
TEST=standalone/io/file_test

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8401 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-07 16:43:41 +00:00
ngeoffray@google.com bb2b3bca56 Fixes for checked mode and change buildbot script to run dart2js tests in checked mode also.
Review URL: https://chromiumcodereview.appspot.com//10543027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8382 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-07 09:03:16 +00:00
whesse@google.com dff5549f93 Eliminate standalone timeout_test, pass_test, and fail_test.
These are now built into standalone/io/test_runner_test.

BUG=dart:3216
TEST=tools/test.py standalone/io/test_runner_test

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8315 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 09:18:37 +00:00
iposva@google.com 78d3305d86 Workaround issue 3216:
- Disable test_runner_test.dart because it leads to runaway processes when it fails.
Review URL: https://chromiumcodereview.appspot.com//10503007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8225 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-03 14:50:52 +00:00
ager@google.com 501a0dd907 Add test that passes invalid arguments to socket methods and fix
issues encountered.

The fuzzing is not as systematic as for some of the other
APIs. However, a lot of checking is going on in the Dart code so
forcing issues required a bit of work making objects act like lists
and integers.

Additionally, fix a memory leak in process implementation.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8088 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 08:17:25 +00:00
ager@google.com c7bbb523a1 Delete regression test that is too heavy on resources.
The test was a regression test to check that we can keep track of
more than 64 processes on Windows. However, on the default Mac
installation we can only start around 50 processes before hitting
'too many open files'.

R=sgjesse@google.com
BUG=dartbug/3236
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8051 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 12:19:05 +00:00
ngeoffray@google.com 3c29a44d83 Add a browser configuration to avoid repeating (runtime == 'ff' || runtime == 'ie' || ...).
Review URL: https://chromiumcodereview.appspot.com//10451062

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8035 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 07:39:36 +00:00