Commit Graph

2501 Commits

Author SHA1 Message Date
ager@google.com e6b2635059 Change Platform members to getters instead of methods.
R=sgjesse@google.com
BUG=dartbug.com/1668
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7282 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 13:16:33 +00:00
sgjesse@google.com 4a4705b0a6 Fix bug in web socket close handling
Don't just close the socket when using the output stream for buffering
data - some data might not be sent.

This was causing the flakiness on Windows.

R=ager@google.com

BUG=dart:2867
TEST=tests/standalone/io/web_socket_test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7280 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 13:02:59 +00:00
floitsch@google.com 30ef5c19d0 Make bit-operations return a positive result.
Fixes issue 2725 (as much as we can fix it).

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7278 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 12:50:21 +00:00
sgjesse@google.com 018b94882c Improve the handling of the connection header
* The connection header can now have multiple values
* The persistent connection state can be controlled

R=ajohnsen@google.com

BUG=dart:1995
TEST=tests/standalone/io/http_connection_header_test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7267 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 07:08:32 +00:00
asiva@google.com 0587dc8eec io/web_socket_test appears to be flaky, mark as "Pass, Fail".
Review URL: https://chromiumcodereview.appspot.com//10334004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7253 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-02 20:05:41 +00:00
sgjesse@google.com 4af7b829b6 Update status file
Fix wrong test names

TBR=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7242 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-02 15:26:16 +00:00
sgjesse@google.com b0c5847ac6 Revert socket output stream changes
Also mark web_socket_test as flaky on Windows

R=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7240 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-02 14:59:17 +00:00
ager@google.com 2596d556a9 Deal with symbolic links for file and directories on Mac and Linux.
R=sgjesse@google.com
BUG=dartbug.com/2516
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7228 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-02 11:39:21 +00:00
sgjesse@google.com a108ef203f Add a web socket client
The web socket client is a implemented as a class which is
created from from a HTTP client connection. This way it is
independent from the HTTP client and is just using the HTTP
client.

The protocol handling is mainly re-using the code from the web
socket server.

Change the handling of setting an onNoPendingWrites handler on a
socket output stream. Now setting a new onNoPendingWrites handler
will trigger a callback when there is no pending data to be
written.

Add socket detaching to the HTTP client as well. Add the ability
to get any unparsed data read from the socket for processing
after the protocol upgrade.

R=ager@google.com, ajohnsen@google.com, vsm@google.com, jacobr@google.com

BUG=dart:2001
TEST=tests/standalone/io/web_socket_test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7224 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-02 10:30:38 +00:00
sigmund@google.com f8db005eb2 test rename overhaul: step 12 - standalone
Review URL: https://chromiumcodereview.appspot.com//10252020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7165 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-30 17:34:19 +00:00
ager@google.com b96783eec5 Fix test to make sure that all opened file descriptors for a File
have been closed before we attempt to delete it.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7158 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-30 14:31:20 +00:00
ager@google.com 0769c629e1 Reenable WebSocket test that timed out on MacOS in debug mode.
Siva added -O2 to the debug build so let's see if that makes
this go through.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7067 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 11:14:42 +00:00
sigmund@google.com daef678742 test renaming overhaul: step 4 client tests
Review URL: https://chromiumcodereview.appspot.com//10191033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7041 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 20:09:35 +00:00
ager@google.com b0fbc1f715 Skip test that times out on MacOS in debug mode.
R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7017 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 14:50:41 +00:00
sgjesse@google.com ebc838c963 Check the state of the HTTP request and response when handling headers
The HTTP headers object in request and response objects is now marked
as non-mutable when it cannot be changed. An exception will be thrown
if trying to mutate headers when they are not mutable.

Postponed the sending of the headers until either the first byte of
body data is sent or the empty body is indicated. This is to allow
getting the output stream object and still be able to set headers
until the actual body is touched.

Added checking of the number of bytes of body data transmitted when an
explicit content length is specified.

R=ajohnsen@google.com

BUG=none
TEST=tests/standalone/src/io/HttpHeadersState.dart,tests/standalone/src/io/HttpContentLengthTest.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7010 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 11:43:32 +00:00
sgjesse@google.com 773d86e5fe Add web socket protocol processor test
Unit test of the web socket protocol processor. This test includes
testing splitting a message into several frames.

Fixed the bugs found by adding a test.

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

BUG=dart:2001
TEST=tests/standalone/src/io/WebSocketProtocolProcessorTest.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7008 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 11:12:07 +00:00
sgjesse@google.com ec4a05e4be Fix mistake in status file
TBR=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7005 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 11:07:00 +00:00
sgjesse@google.com 6d40658dd0 Update test expectations
Disable new dart:io tests where they don't run.

TBR=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7001 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 10:54:31 +00:00
sgjesse@google.com f4a87d0e2e Initial web socket server implementation
This implements the web socket protocol as a request handler for
the HTTP server. The HTTP server have been updated with the
ability of getting the socket when a HTTP upgrade request is
processed. This way the web socket implementation is not builtin
to the HTTP server.

The API on the server is:

interface WebSocketConnection {
  void set onMessage(void callback(Object message));
  void set onClosed(void callback(int status, String reason));
  void set onError(void callback(e));

  send(Object message);
  close([int status, String reason]);
}

This API currently does not have any streaming but collects the
entire message before invoking the onMessage callback. The
current browser web socket API
(http://dev.w3.org/html5/websockets/) works the same way. The
underlying web socket protocol can have unbounded messages so
long term this probably have to change. But for now the only
likely client for a web socket server is a browser.

Currently this is missing tests. The implementation has been
tested by running the WebSocketTest.dart script and connecting
using a browser. This testing have been done using Chrome 19 and
Firefox 11.

I will be adding tests in separate change lists.

The SHA-1 and base 64 code (initially written by
ajohnsen@google.com) can be removed when these algorithms is
available in the dart:crypto.

R=ager@google.com, ajohnsen@google.com, vsm@google.com, jacobr@google.com

BUG=dart:2001
TEST=none

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6998 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 10:15:30 +00:00
sgjesse@google.com 33565cd64a Change the error handling in dart:io
1. Change the argument on all onError handlers from Exception to
Dynamic

2. Throw an exception if an error ocours and there is no error handler
present for handling it.

For sockets there is the complication that an error on a socket is
reported to the socket error handler, and each of the stream error
handlers. The solution to this is to throw an exception if there was
no error handler on either the socket or one of the streams.

Fixed a number of bugs in tests revealed by errors no longer being
silently ignored.

R=ager@google.com

BUG=none
TEST=tests/standalone/src/io/*

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6994 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 08:12:17 +00:00
sgjesse@google.com 11b6d128f1 Remove the RequestHandler interface from the HTTP library
Having the RequestHandler interface did no add anything, so it has
been removed. The HTTP server function addRequestHandler and setter
defaultRequestHandler now just takes function.

To use an instance of a class with a request handler member function
the Dart auto closurerization works fine.

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

BUG=none
TEST=tests/standalone/src/io/HttpServerHandlerTest.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6939 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 13:27:14 +00:00
sgjesse@google.com b2f08560d4 Add handling of the HTTP Date header
R=ajohnsen@google.com

BUG=none
TEST=none

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6930 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 09:16:37 +00:00
whesse@google.com 240fca8010 Fix timeouts in standalone/io/TestRunnerTest by increasing timeout. Fix a few errors in test_runner.dart.
BUG=
TEST=standalone/io/TestRunnerTest

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6881 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-24 14:24:13 +00:00
ajohnsen@google.com f4d3ac876a Use half-close when closing the socking in HttpServerEarlyClientCloseTest.
This should fix the flankyness of the test under Windows. The lesson to
learn from this, is that a Socket.close() is no guaranteed to have sent
all data to the remote peer, even though
Socket.outputStream.onNoPendingWrites have been issued, on Windows.

We might have to visit this later on, if it becomes a pattern other
users fall into.

BUG=http://code.google.com/p/dart/issues/detail?id=2551
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6868 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-24 06:34:06 +00:00
ahe@google.com 9eac6a5748 Remove frogsh.
Review URL: https://chromiumcodereview.appspot.com//10164004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6840 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-23 13:26:06 +00:00
ager@google.com 493a76dd40 Support passing an environment variable map to child processes.
Fix minor type warning in test.

Reapplication after MacOS bug fix.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6827 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-23 07:54:10 +00:00
ager@google.com c5d347fcbc Revert "Support passing an environment variable map to child processes."
Apparently the code or the test is broken on Mac.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6795 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-20 12:53:19 +00:00
ager@google.com ee81b6f0a1 Support passing an environment variable map to child processes.
Fix minor type warning in test.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6794 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-20 12:38:57 +00:00
efortuna@google.com 70f02af5ce Set flaky test to skip because it actually times out instead of pass/fail.
Review URL: https://chromiumcodereview.appspot.com//10121008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6749 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 16:28:02 +00:00
whesse@google.com 9dbb88f2bb Fix flaky standalone/io/TestRunnerTest, a unit test of the testing framework.
BUG=dart:1947
TEST=standalone/io/TestRunnerTest

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6734 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 10:39:36 +00:00
sgjesse@google.com 41cc58affa Fix a number of editor errors and warnings in io tests
R=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6731 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 09:17:14 +00:00
efortuna@google.com 12570483ec Skip flaky HttpServerEarlyClientCloseTest on Windows until source of flakiness
has been fixed.
Review URL: https://chromiumcodereview.appspot.com//10113002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6720 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 01:15:50 +00:00
sgjesse@google.com 83ce0024ef Skip flaky test on Mac OS until resolved
TBR=ngeoffray@google.com

BUG=dart:2637
TEST=tests/standalone/src/io/HttpServerHandlerTest.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6692 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 15:03:57 +00:00
sgjesse@google.com a18d4a2f87 Add HTTP handler registration to the HTTP server
NOTE: This is a breaking change.

The onRequest callback on the HTTP server have been removed in favor
of the ability to register handlers. A handler can be either a
function or an instance of a class which implements a specific
interface. Each handler registration has a regular expression which is
matched against the request path.

There is also a default handler which can be set to handle all
requests which is not matched by any of the registered patterns. If
there is no default handler explicitly set there is a builtin one
which will just return 404 status.

Currently the method is not considered in the matching.

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

BUG=none
TEST=tests/standalone/src/io/HttpServerHandlerTest.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6683 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 13:03:43 +00:00
ager@google.com 37b82247ac Remove need to instantiate Platform and make methods static.
This will require an update of the stable test binary. I will upload
a new build when done with the review process.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6682 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 11:39:16 +00:00
sgjesse@google.com 9e82bc4246 Add test of the HTTP headers object
Fixed a number of bugs revealed by actually testing.

R=ajohnsen@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6669 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 06:44:58 +00:00
ager@google.com 758943e32a Add read-only environment variable access.
Map<String, String> env = new Platform().environment();

Unfortunately, this is a bit hard to test at this point. I
will move on to implement support for providing an environment
to processes that are started. At that point we can test it
properly.

Another follow-up change will be to remove the instantiation
for Platform. I would like this to be just

Map<String, String> env = Platform.environment();

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6646 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 16:20:28 +00:00
rnystrom@google.com 6d53afbeb5 Enable "package:" test on dart2js.
Review URL: https://chromiumcodereview.appspot.com//10069034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6595 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 17:47:42 +00:00
sgjesse@google.com c9a325f704 Start refactoring of the HTTP header handling
This change moves the headers into a separate object.

There will be follow-up changes for handling whether the headers are
read-only or mutable. Also additional tests will be added later.

R=ajohnsen@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6567 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 12:18:45 +00:00
ager@google.com f366f9d913 Make it an error to call close twice on a file using the async API.
This is to make it consistent with the sync API.

Additionally, fix situations where a non-exception was passed to
error handlers on File objects.

R=sgjesse@google.com
BUG=dartbug.com/2451
TEST=standalone/io/File*

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6564 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 11:32:03 +00:00
sgjesse@google.com e7f5afdbb8 Add HTTP/1.0 support and simplify persistent connections handling
The HTTP parser now recognized both HTTP/1.1 and HTTP/1.0 in
request and response headers. The only difference between the
handling of HTTP 1.1 and HTTP 1.0 is in the decection of
persistent connections. For HTTP 1.1 persistent connections are
the default and for HTTP 1.0 persistent connections are speficified
throught the "Connection: Keep-Alive" header.

Removed the getters and setters for keepAlive from all the
interfaces. They are not of much use and persistent connection
handling should be transparent. The HTTP client currently always
sends requests using HTTP 1.1 and in the reare cases where one wants the
connection to be closed after the request adding the
header "Connection: close" should work.

With this change using wget to get resources from the chat server.

R=ajohnsen@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6509 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 10:58:58 +00:00
ajohnsen@google.com 06874b262c Update test to hopefully help detect flanky results on Windows.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6508 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 10:55:59 +00:00
ager@google.com 16f5b14b7d Update dart2js mock of process implementation.
R=floitsch@google.com
BUG=dartbug.com/2557
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6506 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 09:43:22 +00:00
ager@google.com 4e1f754730 Fix Process test, fix Process factory, diable tests on dart2js.
Florian and I will investigate the dart2js failures.

R=sgjesse@google.com,floitsch@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6502 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 09:21:54 +00:00
ager@google.com 52c2259fd7 Rename Process test so it has the suffix 'Test' required for it to be
run by the scripts.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6500 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 08:59:42 +00:00
ager@google.com 84b0410d5a This is a request for comments.
First attempt at implementing a higher-level API for processes.
Add a startNonInteractive constructor that takes a callback which
is called with the exit code and the complete stdout and stderr
when the process terminates.

Let me know what you think. This obviously needs at least tests.
Not entirely sure what I think about the interface in the first
place.

R=sgjesse@google.com
BUG=1689
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6499 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 08:53:35 +00:00
sgjesse@google.com 49859f8d08 Add basic handling to connection upgrade to the HTTP parser
See description in runtime/bin/http_parser.dart on how the upgrade works.

R=ajohnsen@google.com

BUG=dart:2002
TEST=tests/standalone/src/io/HttpParserTest.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6464 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-12 14:31:47 +00:00
ager@google.com aba2e48950 Support length operation without opening file.
Use fstat instead of multiple seek calls to get length of
opened files.

R=sgjesse@google.com
BUG=dartbug.com/1592
TEST=standalone/io/File*Test

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6459 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-12 11:47:32 +00:00
rnystrom@google.com c47bd07592 Fix merge bug.
Review URL: https://chromiumcodereview.appspot.com//10020049

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6435 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 20:27:57 +00:00
antonm@google.com e7e55a6535 Skip tests for packages.
TBR=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6434 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 20:22:40 +00:00