ajohnsen@google.com
dcaf52732e
Remove StreamSink(replaced by EventSink) and make IOSink extend EventSink.
...
With this change 'writeBytes' was renamed to 'add'.
BUG=
Review URL: https://codereview.chromium.org//14150002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21275 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 12:54:19 +00:00
ajohnsen@google.com
974a300cad
Remove deprecated <, <=, >, and >= of DateTime.
...
BUG=
Review URL: https://codereview.chromium.org//14153003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21260 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 09:27:54 +00:00
sgjesse@google.com
50bb376b0f
Update status file
...
TBR=ricow@google.com
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21253 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 07:17:34 +00:00
sgjesse@google.com
52f54a2edd
Add support for typed data views on native threads
...
The deserializer running outside the VM can now decode typed data
views. As the typed data views are implemented as normal Dart
instances and not a internal VM object the deserializer have been
expanded to process serialized objects of the type used to create
these views. The typed data object that the view is based on will
always be serialized as part of the message.
Currently only vews created with constructor Uint8List.view on top of
an Uint8List are supported.
R=ager@google.com
BUG=https://code.google.com/p/dart/issues/detail?id=9484
Review URL: https://codereview.chromium.org//14065006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21252 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 07:15:08 +00:00
ajohnsen@google.com
2f5eb60636
Introduce new HttpBodyHandler to easily extract full body of HttpRequest and HttpClientResponse.
...
BUG=https://code.google.com/p/dart/issues/detail?id=8834
Review URL: https://codereview.chromium.org//14019002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21202 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 13:50:44 +00:00
whesse@google.com
7c56d46086
dart:io | Ensure that Directory.list terminates even when symbolic links create loops in the file system.
...
BUG=
Review URL: https://codereview.chromium.org//13818010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21199 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 13:07:08 +00:00
ajohnsen@google.com
21451e1d3d
Remove HttpClientRequest.response, as it's identical to HttpClientRequest.done.
...
BUG=
Review URL: https://codereview.chromium.org//14055003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21198 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 12:54:23 +00:00
ajohnsen@google.com
c85a54080a
Validate exit-code in regress_7191.
...
BUG=
Review URL: https://codereview.chromium.org//13851008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21197 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 12:53:29 +00:00
floitsch@google.com
0a26d0e20b
Rename DateTime constants to full names.
...
BUG= http://dartbug.com/9441
Review URL: https://codereview.chromium.org//13841005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21189 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 09:23:26 +00:00
ajohnsen@google.com
f270244862
Delay HttpClientResponse until HttpClientRequest is fully sent.
...
BUG=
Review URL: https://codereview.chromium.org//13861005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21144 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 10:48:59 +00:00
ajohnsen@google.com
087b95ac84
Re-introduce macos group line (accidental removal).
...
BUG=
Review URL: https://codereview.chromium.org//13814005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21138 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 08:25:22 +00:00
ajohnsen@google.com
daf4e5061a
Re-enable regress_7191_test on mac.
...
BUG=
Review URL: https://codereview.chromium.org//13811008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21137 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 08:15:44 +00:00
ajohnsen@google.com
c62d22dad4
Add support for client-side GZip compression.
...
It's enabled by default. To disable, one simple have to override/clear the
ACCEPT_ENCODING header value.
BUG=
Review URL: https://codereview.chromium.org//13934002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21134 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 07:26:50 +00:00
ajohnsen@google.com
b6d93641ff
Fix regress_7191.
...
BUG=https://code.google.com/p/dart/issues/detail?id=8091
Review URL: https://codereview.chromium.org//13941003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21133 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 07:26:02 +00:00
hausner@google.com
15720724d9
Add more error detection to debugger test
...
Detect when malformed messages leave over garbage, e.g. when there
are is an extra closing brace.
Review URL: https://codereview.chromium.org//13741025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21119 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 22:24:00 +00:00
floitsch@google.com
5589ee9e71
Fix windows tests.
...
Review URL: https://codereview.chromium.org//13799012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21116 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 21:40:34 +00:00
floitsch@google.com
dcbd025070
Revert "Update tests and status files."
...
This reverts commit r21087.
Review URL: https://codereview.chromium.org//13749008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21088 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 17:13:13 +00:00
floitsch@google.com
999f99cbbc
Update tests and status files.
...
Review URL: https://codereview.chromium.org//13800006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21087 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 17:03:34 +00:00
floitsch@google.com
15eb4b42e5
Fix some tests.
...
Review URL: https://codereview.chromium.org//13493011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21081 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 16:34:16 +00:00
floitsch@google.com
343fa26d65
Remove deprecated Expect from the libraries.
...
Review URL: https://codereview.chromium.org//13724021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21079 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 16:07:34 +00:00
ajohnsen@google.com
53efec9bf9
Add extra Path test.
...
BUG=https://code.google.com/p/dart/issues/detail?id=4861
Review URL: https://codereview.chromium.org//13686006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21076 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 14:56:21 +00:00
ajohnsen@google.com
6d1c14a28c
WebSocket: Correctly expect masked frames from clients, and send masked frames from the client.
...
BUG=https://code.google.com/p/dart/issues/detail?id=9723
Review URL: https://codereview.chromium.org//13686005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21075 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 14:35:44 +00:00
sgjesse@google.com
e1911937c8
Update status file
...
The test standalone/io/raw_socket_test has not failed on Windows for a
long time and does not reproduce under heavi load.
BUG=https://code.google.com/p/dart/issues/detail?id=8901
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//13790003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21064 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 12:25:46 +00:00
ajohnsen@google.com
1bae12223b
Fix recursive directory-deletion of top-level files/links.
...
BUG=
Review URL: https://codereview.chromium.org//13771010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21060 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 11:30:33 +00:00
sgjesse@google.com
eb76cd907a
Add more tests and argument check to Process.sleep
...
R=ager@google.com
Review URL: https://codereview.chromium.org//13497008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21054 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 10:04:45 +00:00
ajohnsen@google.com
e75df511a6
Change how File/Directory/Link .delete works.
...
Now:
- File.delete works iff path is File or Link.
- Directory.delete works iff path is Directory or Link.
- Link.delete works iff path Link.
This now matches .exists.
BUG=
Review URL: https://codereview.chromium.org//13654002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21045 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 07:44:18 +00:00
floitsch@google.com
a813a57b5a
Remove unnecessary expect-package line.
...
BUG= http://dartbug.com/9703
Review URL: https://codereview.chromium.org//13454030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21004 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 22:35:54 +00:00
tball@google.com
73be577b9d
Disabled debugger test, as the expect.dart apparently isn't available.
...
Review URL: https://codereview.chromium.org//13722011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20999 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 21:05:04 +00:00
tball@google.com
b3cae06ace
Synced basic_debugger_test start on new "debugger initialized" message.
...
Review URL: https://codereview.chromium.org//13597004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20997 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 20:55:10 +00:00
floitsch@google.com
8fd6d0aafd
Remove Expect from core library.
...
Committed: https://code.google.com/p/dart/source/detail?r=19755
Reverted: http://code.google.com/p/dart/source/detail?r=19756
Review URL: https://codereview.chromium.org//12212016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20996 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 19:43:16 +00:00
floitsch@google.com
bef8ebb5f6
Add Iterable.fold (and Stream.fold) which replace reduce.
...
For now this is just a copy. In a next step we will change the behavior of
`reduce`.
BUG= http://dartbug.com/9536
Review URL: https://codereview.chromium.org//13548002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20978 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 16:12:40 +00:00
sgjesse@google.com
e10bc2d3e0
Reapply "Add a sleep function to dart:io"
...
This reapplies r20952, r20953, r20954 together with hiding sleep from
dart:io in a number of tests.
R=ager@google.com
Review URL: https://codereview.chromium.org//13704003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20964 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 13:04:26 +00:00
sgjesse@google.com
e40ce105af
Fix a number of issues with determining the type of stdio
...
* Fix checked mode exception when _getSocketType returns an OSError
* Treat any character device as terminal (this includes /dev/null)
* Fix detecting of file redirection af file
* Don't turn an unkonwn device type into an OSError (wth value for an unknown was -1)
Expanded an existing test to catch some of this.
R=ager@google.com
BUG=https://code.google.com/p/dart/issues/detail?id=9637
Review URL: https://codereview.chromium.org//13636003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20960 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 11:13:24 +00:00
sgjesse@google.com
22a06ceeea
Revert r20952, r20953, r20954
...
Too many failures due to conflicting top level sleep methods.
TBR=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//13565005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20955 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 10:06:56 +00:00
sgjesse@google.com
20dade5ff5
Make sleep test resilient to timer rounding issues
...
TBR=ager@google.com
Review URL: https://codereview.chromium.org//13718002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20953 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 09:47:16 +00:00
sgjesse@google.com
b81606254e
Add a sleep function to dart:io
...
The sleep function is a top-level function.
R=ager@google.com
BUG=https://code.google.com/p/dart/issues/detail?id=9254
Review URL: https://codereview.chromium.org//13641005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20952 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 09:35:37 +00:00
ajohnsen@google.com
578331c57e
Fix directory-listing, directory-deletion and file deletion, when links are involved.
...
BUG=https://code.google.com/p/dart/issues/detail?id=4928,https://code.google.com/p/dart/issues/detail?id=9278,https://code.google.com/p/dart/issues/detail?id=9504
Review URL: https://codereview.chromium.org//13578003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20929 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-04 17:30:17 +00:00
tball@google.com
3134d1d678
Disabled basic debugger test, due to Mac crash.
...
Review URL: https://codereview.chromium.org//13586010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20903 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 23:04:04 +00:00
hausner@google.com
b3ccd9f1ea
Make basic_debugger_test less flaky
...
There is a race condition between debugger and debugee. Detect if the debugger is attempting to connect to the debugee to soon and simply skip running the debug test
rather than failing the test.
Review URL: https://codereview.chromium.org//13555003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20894 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 21:32:55 +00:00
asiva@google.com
2f21a5b390
Fix the setters in _ByteDataView to behave the same as '[]=' and '[]' operators
...
in regular TypedData classes.
Review URL: https://codereview.chromium.org//13516003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20882 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 18:52:03 +00:00
hausner@google.com
8f1ec650be
Update debugger test
...
Change test and test framework so it no longer expects the paused
event to contain a stack trace. This is in preparation to remove
the stack trace in paused events.
Review URL: https://codereview.chromium.org//13474011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20873 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 16:30:47 +00:00
ager@google.com
6003fdfe6e
Fix view creation for byte-size types.
...
We had forgotten to subtract the start byte offset from the length
when not passing in an explicit length.
Additionally, fix a couple of checked mode issues.
R=asiva@google.com
BUG=
Review URL: https://codereview.chromium.org//13529005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20867 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 15:29:11 +00:00
ager@google.com
690f1842a7
Make sure to close file in test so the temp directory can be deleted on Windows
...
R=sgjesse@google.com
BUG=
Review URL: https://codereview.chromium.org//13443006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20862 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 13:55:58 +00:00
ager@google.com
b7b10cfd6e
Add comments to the synchronous file methods stating that they throw
...
exceptions on errors.
Fix a couple of bugs in readSync implementation.
R=sgjesse@google.com
BUG=dartbug.com/7779
Review URL: https://codereview.chromium.org//13527004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20858 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 12:59:41 +00:00
kustermann@google.com
48a75412a4
Marked debugger_test as flaky.
...
It seems like the debugger test tries to connect to the debuggee before it got
the chance to listen for incoming connections (the debugee doesn't send back
information to the debugger that it's ready for incoming connections AFAIK).
Review URL: https://codereview.chromium.org//13531003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20852 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 12:18:47 +00:00
tball@google.com
de683a4a0b
Enabled basic_debugger_test on VM.
...
Review URL: https://codereview.chromium.org//13272004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20830 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-02 22:53:00 +00:00
sgjesse@google.com
3f6400812b
Only lookup and delete the monitor wait data if it was allocated.
...
R=ager@google.com
BUG=https://code.google.com/p/dart/issues/detail?id=9403
Review URL: https://codereview.chromium.org//13470006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20772 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-02 12:28:56 +00:00
ajohnsen@google.com
329faa273b
Read files in chunks, not relaying on size.
...
Allows for reading of /proc inputs on linux/mac.
BUG=https://code.google.com/p/dart/issues/detail?id=9572,https://code.google.com/p/dart/issues/detail?id=401
Review URL: https://codereview.chromium.org//13453002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20768 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-02 10:40:00 +00:00
vsm@google.com
176751aeeb
Fixed typed_data_test to use correct object
...
Working on getting this to pass with dart2js. The view constructor is typed to take a ByteBuffer, not a *List type.
Review URL: https://codereview.chromium.org//13244003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20656 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-28 23:51:26 +00:00
tball@google.com
439636fc4e
Use random debug port in basic_debugger_test.
...
Issue 8232
Review URL: https://codereview.chromium.org//12796012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20634 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-28 19:02:11 +00:00