ajohnsen@google.com
2149b3a859
Add 'Server' and 'User-Agent' default header fields.
...
They include the major and minor version of Dart.
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//16758008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23844 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 11:54:15 +00:00
sgjesse@google.com
53b21de181
Re-enable raw_socket_test on Windows
...
R=ajohnsen@google.com
BUG=http://dartbug.com/8901
Review URL: https://codereview.chromium.org//16304007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23842 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 10:20:35 +00:00
ajohnsen@google.com
16f8b61e79
Fix http_content_length_test by not closing the server from the client.
...
This would invoke socket.destory calls, leading to the socket dying
normally, before an error can occour.
BUG=https://code.google.com/p/dart/issues/detail?id=10934
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//16375005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23802 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 10:19:59 +00:00
whesse@google.com
60a5efe267
dart:io | Fix issue involving SecureServerSocket error handling and HttpServer stream cancellation.
...
BUG=dartbug.com/11074
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//16021016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23801 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 09:28:58 +00:00
zra@google.com
0f70ba59e5
Adds a test to a status file for the analyzer.
...
Tests in tests/standalone/ that use the multitest feature and which are listed
as failing must also be listed in lib/analyzer/analyze_tests.status without
the standalone prefix.
R=asiva@google.com
Review URL: https://codereview.chromium.org//15774022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23780 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 23:38:34 +00:00
zra@google.com
66809c2824
Select right multitest.
...
R=iposva@google.com
Review URL: https://codereview.chromium.org//16482003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23776 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 22:19:28 +00:00
zra@google.com
d1d26a5294
Analyzer doesn't get javascript overflow VM flag, so changing test to fail, ok.
...
Review URL: https://codereview.chromium.org//16676002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23775 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 21:56:52 +00:00
zra@google.com
68f4a66a3d
Improvements to 53-bit overflow checking.
...
- Integer literals that require more than 53 bits will cause a compile-time error.
- Checking is added to unary negate for the case that the most negative
53-bit integer is negated.
- The tests are improved to also check optimized code.
R=srdjan@google.com
Review URL: https://codereview.chromium.org//16664003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23774 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 21:28:49 +00:00
scheglov@google.com
6e8d2cf3f4
Don't use 'fail, OK' except of co19
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//16293005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23766 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 19:49:35 +00:00
zra@google.com
cfea7c3c9a
Implements checks for 53-bit overflow for x64.
...
R=srdjan@google.com
Review URL: https://codereview.chromium.org//16398008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23721 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-06 22:48:20 +00:00
scheglov@google.com
80fea8fd8e
More fixes for java2dart and status files.
...
Now DDA passes/fails the same tests as Java version.
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//15675016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23705 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-06 18:13:44 +00:00
zra@google.com
2d2389aa61
Disables 53bit overflow test for dart2js
...
TBR
Review URL: https://codereview.chromium.org//16279006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23649 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-05 18:06:43 +00:00
zra@google.com
78ed504ed0
Adds a flag to the standalone vm to throw an exception on 53-bit integer overflow.
...
R=asiva@google.com , srdjan@google.com
Review URL: https://codereview.chromium.org//15743017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23640 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-05 17:18:07 +00:00
hausner@google.com
ea0d04216b
Fix coverage test
...
Do not rely on order of Future callbacks. There may still be
data on stdout when the process exit event is called (i.e. when
the process Future completes).
R=ricow@google.com
Review URL: https://codereview.chromium.org//16305013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23601 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 16:03:20 +00:00
johnmccutchan@google.com
3c69367fb7
HTTP loading tests and package root support
...
R=asiva@google.com , iposva@google.com , sgjesse@google.com
Review URL: https://codereview.chromium.org//16092007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23593 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 13:52:47 +00:00
lrn@google.com
662c2a8262
Rename RuntimeError to CyclicIntializationError, as per spec.
...
The RuntimeError has been used to report cyclic initialization errors in
dart2js.
It has also been used for other, unrelated, uses, where it makes
little to no sense.
The RuntimeError type has been removed, but added in js_helper.dart,
where dart2js uses it.
Uses of new RuntimeError("some message") have been converted to
other errors (Argument/State/Unsupported). In some cases, just
throwing a String might have been just as good.
BUG=http://dartbug.com/11040
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//16154017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23584 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 10:33:11 +00:00
sgjesse@google.com
ee02857f6a
Don't change the case of cookie names and values
...
R=whesse@google.com
BUG=http://dartbug.com/11011
Review URL: https://codereview.chromium.org//16256012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23582 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 09:35:59 +00:00
whesse@google.com
9c6d3b86e4
dart:io | Make FileStat.stat throw an exception when the file does not exist, or cannot be accessed.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//16140008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23543 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 15:01:02 +00:00
whesse@google.com
180e054164
dart:io | Add .stat() and .statSync() to FileSystemEntity and subclasses File, Directory, and Link.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//16156009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23540 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 12:41:30 +00:00
hausner@google.com
c3d23a2ec5
Exclude coverage test from Dartium runs
...
Review URL: https://codereview.chromium.org//16273008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23498 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 22:30:50 +00:00
hausner@google.com
219c85a148
Add coverage tool to standalone tests
...
R=kustermann@google.com
Review URL: https://codereview.chromium.org//15894015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23494 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 21:53:38 +00:00
lrn@google.com
faa7227cec
Make new StreamController be async by default.
...
Change all instances, except some tests, to be sync still.
Rename Multiplex to Broadcast everywhere.
R=floitsch@google.com
Review URL: https://codereview.chromium.org//16125005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23453 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 06:07:39 +00:00
regis@google.com
b7eb5aedbe
Cleanup various test status files.
...
R=zra@google.com
Review URL: https://codereview.chromium.org//16232012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23450 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 00:39:37 +00:00
vsm@google.com
c40784b4c2
Changed Uint8ClampedList to implement Uint8List
...
This matches the typed array spec / behavior.
R=asiva@google.com
Review URL: https://codereview.chromium.org//14316008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23435 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 18:47:16 +00:00
sgjesse@google.com
69df933ff3
Remove the HttpRequest.queryParameters getter
...
The parsed query parameters are now now available from the Uri object.
TBR=whesse@google.com
BUG=http://dartbug/2641
Review URL: https://codereview.chromium.org//15688013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23413 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 13:39:24 +00:00
scheglov@google.com
c082d9f570
Report CompileTimeErrorCode for 'const' argument mismatch.
...
R=brianwilkerson@google.com , jwren@google.com
BUG=
Review URL: https://codereview.chromium.org//15797007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23374 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 01:22:56 +00:00
sgjesse@google.com
7841206de5
Change File.directory to not do any IO
...
Removed the File.directory and File.directorySync methods and added a
File.directory getter. The File.directory getter does not do any IO,
but just calculates the directory of the file from the path.
R=whesse@google.com
BUG=http://dartbug.com/9926
Review URL: https://codereview.chromium.org//15832003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23349 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 12:38:27 +00:00
sgjesse@google.com
bb6d8c6d20
Remove library dart:crypto
...
Moved the contnet of dart:crypto to the package pkg/crypto.
R=dgrove@google.com , floitsch@google.com , iposva@google.com , nweiz@google.com
BUG=
Review URL: https://codereview.chromium.org//15820008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23322 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 07:29:29 +00:00
ricow@google.com
35635a7e1f
Mark standalone/io/http_content_length_test as flaky
...
Filed issue 10934
Review URL: https://codereview.chromium.org//16058006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23319 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 05:53:14 +00:00
sgjesse@google.com
9d6a64e81b
Merge the dart:uri library into dart:core and update the Uri class
...
This merges the dart:uri library into dart:core removing the dart:uri library. Besides moving the library the Url class has been changed.
* Removed existing Uri constructor as it was equivalent with Uri.parse
* Remamed constructor Uri.fromComponents to Uri
* Moved toplevel function encodeUriComponent to static method Uri.encodeComponent
* Moved toplevel function decodeUriComponent to static method Uri.decodeComponent
* Moved toplevel function encodeUri to static method Uri.encodeFull
* Moved toplevel function decodeUri to static method Uri.decodeFull
* Rename domain to host
* Added static methods Uri.encodeQueryComponent and Uri.decodeQueryComponent
* Added support for path generation and splitting
* Added support for query generation and splitting
* Added some level of normalization
R=floitsch@google.com , lrn@google.com , nweiz@google.com , scheglov@google.com
BUG=
Review URL: https://codereview.chromium.org//16019002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23266 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 13:35:01 +00:00
kustermann@google.com
a8857ed49c
Status file updates for arm -> remove Skip markers
...
R=ricow@google.com
Review URL: https://codereview.chromium.org//15956005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23242 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 09:09:38 +00:00
lrn@google.com
781e84284f
Reapply "Active stream subscriptions".
...
Makes subscriptions the active part of a stream, with the stream
itself being just an inert creator of subscriptions.
This changes the behavior of a "single subscription" stream to match
the documentation: After the subscription is canceled, you can't
resubscribe to the stream. Previously, you could do that, but it was
never documented or intended.
This also makes the stream of a StreamController not be paused while
before it's subscribed - it is always the subscription that is paused
or not, and while there is no subscription, the stream cannot be
paused. Previously the stream was set to paused until the first
subscription in order to prevent events from being lost. That is
handled independently of pauses now.
Adds StreamController.multiplex constructor. This name is tentative,
and likely to change. Its behavior may change as well. It currently
provides a new single-subscription stream each time its "stream"
getter is read, and you can subscribe to these.
Adds StreamIterator class that allows iterating over a stream's data
events using (async) "moveNext()" and "current", like a direct style
Iterator (sorry, it won't work in a for-in loop).
Review URL: https://codereview.chromium.org//16131003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23237 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 07:28:36 +00:00
ajohnsen@google.com
310e5b54b4
Support auto-drain of HttpRequest data.
...
When headers of the HttpResponse are about to be sent, and the HttpRequest have not had any subscriber yet, drain the request body and then write the headers.
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//15842004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23228 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 15:43:34 +00:00
lrn@google.com
cc0d9d57af
Revert until Windows crash is debugged.
...
Reverts r23218, r23217, r23208, r23207, r23206, r23205, r23204.
r23218 | Path observer is listened more than once, so make it multiplex.
r23217 | Add StreamController.multiplex constructor.
r23208 | Fix bug in streamimpl
r23207 | Fix bug in stream iterator.
r23206 | Change expectations for http_parser_test.
r23205 | Fix bug in stream-impl.
r23204 | Make StreamSubscription be the active part of a string.
Review URL: https://codereview.chromium.org//15989006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23221 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 13:03:03 +00:00
lrn@google.com
4fc0661270
Change expectations for http_parser_test.
...
Review URL: https://codereview.chromium.org//16043004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23206 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 09:12:54 +00:00
lrn@google.com
ee1c11a2a6
Make StreamSubscription be the active part of a string.
...
It is the one keeping the buffer of events, not the stream.
R=ajohnsen@google.com , floitsch@google.com , jmesserly@google.com
Review URL: https://codereview.chromium.org//14753009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23204 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 08:34:20 +00:00
kustermann@google.com
7c645a6183
Enable again the debugger tests on windows
...
R=ricow@google.com
Review URL: https://codereview.chromium.org//15727005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23203 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 08:14:18 +00:00
ajohnsen@google.com
b57aebcde9
Fix http_server_early_client_close_test.
...
A too early close of the HttpServer was responsible for an uncought
socket error. We now wait with HttpServer close to we
1) Have sent all data to the server.
2) The server are done receiving all data for the potential request.
BUG=http://code.google.com/p/dart/issues/detail?id=10408
Review URL: https://codereview.chromium.org//15719004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23196 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-26 05:29:47 +00:00
hausner@google.com
c88a53579a
Don't use statically declared Mutex in debugger
...
Hopefully eliminates the "resource busy" errors we occasionally
see on MacOS (issue 10488).
I ran the debugger test 10000 times in a loop on my machine and
never ran into the assert. Let's hope the build bot is happy too.
R=asiva@google.com
Review URL: https://codereview.chromium.org//15861016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23178 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 20:35:03 +00:00
ajohnsen@google.com
686cebef6e
Use correct path escape on Windows, for Process.
...
BUG=
Review URL: https://codereview.chromium.org//15782003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23148 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 13:34:27 +00:00
ajohnsen@google.com
84b490a631
Remove passing negative shell test on windows.
...
Should be revisited in the near future.
BUG=
Review URL: https://codereview.chromium.org//15954004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23141 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 12:49:49 +00:00
ajohnsen@google.com
87ea640826
Remove ProcessOptions and make the options named arguments.
...
This also removed Process.runShell and adds a new flag: runInShell.
BUG=
R=kustermann@google.com , nweiz@google.com , sgjesse@google.com
Review URL: https://codereview.chromium.org//15883003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23131 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 11:03:40 +00:00
kustermann@google.com
a37a2015c8
Implement binary "!=" operator in status file parser.
...
R=ricow@google.com , whesse@google.com
Review URL: https://codereview.chromium.org//15778003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23130 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 11:02:29 +00:00
hausner@google.com
efd3b8428c
Yay for static type checking
...
The analyzer found this problem :)
Review URL: https://codereview.chromium.org//15741016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23088 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-23 18:01:15 +00:00
hausner@google.com
6a206d3af8
Let debug target pick the debugger port
...
Invoking the dart executable with --debug:0 lets the debuggee pick a free port number. It prints the port number to stdout if --verbose_debug is specified on the command line.
Adapt debugger tests to use this scheme for selecting an available port number.
R=iposva@google.com
Review URL: https://codereview.chromium.org//15507004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23086 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-23 17:41:50 +00:00
ajohnsen@google.com
3e7327dae2
Don't report unuseful SocketIOExceptions on HttpServer.
...
1) Don't report error if HttpResponse was closed while we were sending
data. Instead, just drain/close the data sources. This matches how
people expect the HttpResponse to act. This will _not_ happen for
HttpClientRequest.
2) Don't report incomplete headers on HttpServer.listen. The information
are not useful, as the user don't even have a chance to act on the bad
headers/socket. We not just silently close the socket.
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//15814004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23069 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-23 13:55:11 +00:00
ajohnsen@google.com
b698e28e29
Add Process.shell and Process.runShell.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//15299004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23007 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-22 11:28:05 +00:00
kustermann@google.com
e471a85e0f
Disable debugger tests on windows
...
R=ricow@google.com
Review URL: https://codereview.chromium.org//15705003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22998 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-22 08:59:02 +00:00
ajohnsen@google.com
733dfac507
Update process_exit_negative_test to latest API.
...
BUG=
R=ricow@google.com
Review URL: https://codereview.chromium.org//15698002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22993 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-22 08:14:16 +00:00
ajohnsen@google.com
44ffc92856
Try and fix test for windows, by delaying dir delete to file-stream's onDone is called.
...
BUG=
Review URL: https://codereview.chromium.org//15360003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22928 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-21 10:37:20 +00:00