Commit Graph

2501 Commits

Author SHA1 Message Date
kustermann@google.com c01e393aa5 Added support for skipping redundant dart2js compilations.
Currently, the buildbots run tests on every commit. But often neither
the tests nor the dart2js compiler did change (e.g. on status file updates).

The added code will check if the dependencies (i.e. files listed in
test.js.deps) or the dart2js snapshot did change. If not, the output
of the previous dart2js compilation is up to date and the compilation
step is skipped.
The skipping of redundant dart2js compilations works only if the '--use-sdk'
option was specified (because in this case the dart2js snapshot is used).

Committed: https://code.google.com/p/dart/source/detail?r=15080

Review URL: https://codereview.chromium.org//11369216

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16158 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-14 11:56:00 +00:00
scheglov@google.com 5ff9fc871c Issue 5064. Remove 'skip' status for about 130 tests.
http://code.google.com/p/dart/issues/detail?id=5064

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//11565017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16144 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-13 23:20:36 +00:00
whesse@google.com db34632662 Turn on dartc testing of tests/standalone.
Fix a few remaining issues, and exclude the tests that are incompatible with dartc.

BUG=dart:5064, dart:7066

Review URL: https://codereview.chromium.org//11578007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16131 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-13 17:49:27 +00:00
whesse@google.com e128dd9f14 Remove old #import, #source, and #library syntax from tests/standalone.
BUG=dart:7066

Review URL: https://codereview.chromium.org//11570005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16106 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-13 13:06:04 +00:00
whesse@google.com ff80433b70 Add client certificates to HttpsServer and HttpClient.
BUG=

Review URL: https://codereview.chromium.org//11553027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16097 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-13 10:10:17 +00:00
ager@google.com ae0c2dc6e8 Update Windows file implementation to use the unicode APIs.
R=sgjesse@google.com
BUG=

Review URL: https://codereview.chromium.org//11554021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16045 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-12 15:38:51 +00:00
ager@google.com 8a14c1c319 Use FormatMessageW for Windows error messages to handle internationalized messages correctly.
R=sgjesse@google.com
BUG=dartbug.com/6986

Review URL: https://codereview.chromium.org//11558012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16041 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-12 14:39:21 +00:00
ricow@google.com da25880dd3 Add timeout to suppression list for http_shutdown_test
Review URL: https://codereview.chromium.org//11548013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16023 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-12 07:41:35 +00:00
sgjesse@google.com 76eae03acb Update status file
R=ager@google.com

BUG=dart:7294

Review URL: https://codereview.chromium.org//11537008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15980 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-11 15:06:40 +00:00
ager@google.com 662e9d8032 Fix extraction of environment variables on Windows.
Environment variables were extracted using GetEnvironmentStringsA
and that does not play nice with for instance Danish letters
in environment variables.

This causes problems for pub if the current user has an
internationalized name.

This is the first patch in a series that will switch to the
unicode APIs on Windows.

R=sgjesse@google.com
BUG=

Review URL: https://codereview.chromium.org//11529008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15977 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-11 14:42:09 +00:00
sgjesse@google.com 254eae71a1 Follow the redirect rules from RFC 2616
R=ajohnsen@google.com

BUG=dart:7150

Review URL: https://codereview.chromium.org//11498013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15960 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-11 10:01:32 +00:00
ager@google.com 69720e9ef5 Fix newly added regression test that left processes hanging on Windows.
The issue is that the main process died too soon when the test passes.

R=sgjesse@google.com
BUG=

Review URL: https://codereview.chromium.org//11530008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15958 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-11 09:47:32 +00:00
whesse@google.com f542f14380 Enable client certificates in SecureSocket and SecureServerSocket
BUG=

Review URL: https://codereview.chromium.org//11467004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15957 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-11 09:26:23 +00:00
sgjesse@google.com 8486c1144e Improve the handling of HTTP requests with empty body
The HTTP parser always issues a "request received" event and
a "data end" event for all requests including requests with an
empty body. The "request received" event causes the request
handler to be called and the "data end" event causes the onClosed
on the input stream to be called. If the output stream was before
the "data end" event (that is in the request handler) the HTTP
server would close the socket as the output stream was closed
before the input was read. However for requests with empty bodies
this is not really the case.

The HTTP server now tracks when a request is known to have an
empty body. When that is the case there is no need to buffer the
response data and closing the output stream bedore the "data end"
event is now handled as if the full request is already read -
which it is.

The method _checkDone is how called exactly once for each of the
"request received", "data" and "data end" events, and always as the
last thing before returning from handling the evnent.

R=ager@google.com

BUG=dart:6984, dart:7182

Review URL: https://codereview.chromium.org//11498010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15951 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-11 08:03:25 +00:00
ager@google.com bea18188e8 Add test case for issue 7191.
R=ahe@google.com,kusterman@google.com
BUG=

Review URL: https://codereview.chromium.org//11492007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15908 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-10 13:24:35 +00:00
whesse@google.com e5fa0078db Disable SSL session cache to fix issue with SecureSocket connections.
BUG=dart:7208
TEST=standalone/io/secure_session_resume_test.dart

Review URL: https://codereview.chromium.org//11478049

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15904 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-10 13:14:58 +00:00
asiva@google.com 7a20334bac Issue 2345 is apparently fixed so turning the test back on.
Review URL: https://codereview.chromium.org//11466015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15834 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 02:57:58 +00:00
tball@google.com 47070b7c93 Rolling back temporary change to tests list.
Review URL: https://codereview.chromium.org//11465015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15829 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 00:32:01 +00:00
tball@google.com a3dc1f279f Temporarily enabling failing Windows tests, to get failure log.
As soon as that log is available, this CL will be reverted.
Review URL: https://codereview.chromium.org//11472012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15828 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 00:30:22 +00:00
srdjan@google.com a9a187ce7a Fix failures in byte array tests, reenabled test.
Review URL: https://codereview.chromium.org//11471014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15821 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 23:27:01 +00:00
srdjan@google.com 0cd1bedc60 Disable one test while investigating.
Review URL: https://codereview.chromium.org//11473010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15815 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 22:39:30 +00:00
srdjan@google.com 93dd217564 Added Uint8ClampedList. COmpielr optimziations to follow in next CL.
Review URL: https://codereview.chromium.org//11437028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15806 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 21:53:51 +00:00
sgjesse@google.com e9da69fa27 Update status file - again
Move the update from Linux to Mac OS.

TBR=ager@google.com

BUG=

Review URL: https://codereview.chromium.org//11447041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15787 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 14:46:38 +00:00
sgjesse@google.com 294ceb8140 Update status file
TBR=ager@google.com

BUG=

Review URL: https://codereview.chromium.org//11451035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15786 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 14:07:12 +00:00
sgjesse@google.com a0d692c843 Correctly handle optional length in HTTP output stream writeFrom
R=ager@google.com

BUG=7079

Review URL: https://codereview.chromium.org//11447013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15783 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 12:39:41 +00:00
sgjesse@google.com 6192ce4526 Fix a number of HTTP issues
The main purpose of this change is to ensure that the HTTP server
does not start sending the response before the full request have
been read. This ended up requiring a number of changes.

1. Handle server closing connection before full request is read

If the server closes the connection before the request body have
been read this will result in the underlying socket getting
closed by the server.

2. Support writing to output stream before full request is read

Changed the server to not start sending data before the full
request have been read. In order to still make it possible to
write to the request output stream before reading all data any
data written before will be buffered. When the request have been
fully read the buffered data will be written.

3. Handle of bad/closed connections retreived from the client connection pool

When a HTTP client connection is pulled from the pool of keep
alive connections there can be situations where this connection
has just been closed by the server. This is now mittigated by
trying to make a new connection when this happens. It is only
possible to actually create a new connection if no body has been
sent.

4. Forward request headers when redirecting

Both for manual and automatic rediretion any request headers set
on the original request are now set on the redirect request as
well.

5. Invalidate sockets in the client pool if required

Open HTTP socket connections in the client pool are now
invalidated and closed if there is any activify on them while
they are idle.

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

BUG=6984

Review URL: https://codereview.chromium.org//11453006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15782 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 12:29:14 +00:00
whesse@google.com 9a3645b7a3 Fix SecureSocket bug where socket was not closed after all data was flushed.
BUG=dart:6730

Review URL: https://codereview.chromium.org//11439029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15779 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 11:06:35 +00:00
whesse@google.com 82c200a9fc Add timeout to standalone.status for a SecureSocket test on windows.
BUG=dart:7157

Review URL: https://codereview.chromium.org//11443013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15738 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-05 16:57:32 +00:00
whesse@google.com dfca53e3cd Add test crash to standalone.status: Issue 7157 hits new SecureSocket test on Windows.
BUG=dart:7157

Review URL: https://codereview.chromium.org//11439012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15736 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-05 15:15:22 +00:00
whesse@google.com 4eeedf0cab Add a callback to SecureSocket for certificates that fail to be authenticated.
BUG=

Review URL: https://codereview.chromium.org//11415290

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15734 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-05 14:31:51 +00:00
iposva@google.com 4b9ab4491e - Disable standalone/io/test_extension_fail_test on Windows. Filed
issue 7157.
Review URL: https://codereview.chromium.org//11445014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15730 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-05 13:18:10 +00:00
iposva@google.com cb148cc938 - Add an extension test which throws from native code.
Review URL: https://codereview.chromium.org//11447010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15728 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-05 13:02:44 +00:00
whesse@google.com 7bc0bbd284 Add built-in root certificates to dart:io SecureSocket.
Add flag that allows them to disabled at runtime.

BUG=

Review URL: https://codereview.chromium.org//11308271

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15634 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-03 13:15:51 +00:00
whesse@google.com 359759884b Add HttpsServer class and test.
BUG=dart:3593

Review URL: https://codereview.chromium.org//11299228

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15452 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 15:36:10 +00:00
whesse@google.com d77dfe6ca0 Add support for https scheme in dart:io HttpClient.
BUG=

Review URL: https://codereview.chromium.org//11299210

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15450 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 13:47:17 +00:00
sgjesse@google.com 1554e643ad Fix badly written test
R=ager@google.com

BUG=dart:6968

Review URL: https://codereview.chromium.org//11428022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15395 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 14:52:20 +00:00
whesse@google.com 6ff0ef5eb7 Fix status and status comments for standalone/medium_integer_test.
The test was changed, so dart2js compilation now works, and it fails
at runtime due to JS number semantics

BUG=dart:1533

Review URL: https://codereview.chromium.org//11416196

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15390 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 13:07:22 +00:00
ahe@google.com dd76d416c2 Make the PackageRoot test file option relative to the test file.
BUG=http://dartbug.com/6817

Review URL: https://codereview.chromium.org//11411150

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15387 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 12:30:30 +00:00
ager@google.com ba7992f7e7 Support Windows share paths in the Path class.
Use that to implement Directory.create(recursive: true) in a way that
works with shares.

The Path implementation has an additional piece of state. The
actual path is treated like an absolute path except for
toNativePath which adds back the extra backslash. The additional
state is preserved in operations that produce new paths.

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

Review URL: https://codereview.chromium.org//11416197

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15385 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 12:03:09 +00:00
ahe@google.com 9abe5c714c Even more flaky :-(
Review URL: https://codereview.chromium.org//11416199

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15382 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 11:18:14 +00:00
whesse@google.com ac5fbafee6 Suppress io/secure_server_test crashes on Windows.
BUG=dart:6893

Review URL: https://codereview.chromium.org//11308222

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15375 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 09:27:03 +00:00
srdjan@google.com 85cf9af6ab Fix for issue 6678: Result of identical(a, b) with a and b doubles not consistent.
Implement proposed new identity spec (flag --new_identity_spec). It will be enabled/committed once the new spec been confirmed.

The new spec says that identity of numbers is computed on their values instead of on the object reference. This provides deterministic behavior without having to disable optimizations in the VM. In some cases 'identical' is now slower than 'equality' as more checks need to be done. The VM compiler can optimize 'identical' in the future.

My benchmarks do not show any slow down.
Review URL: https://codereview.chromium.org//11414136

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15332 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-26 18:35:45 +00:00
ager@google.com 05b614089f fix typo
R=whesse@google.com
BUG=

Review URL: https://codereview.chromium.org//11414154

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15302 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-26 09:31:48 +00:00
ager@google.com 76d76a8977 Remove awful testing hack for testing extensions.
There is absolutely no reason to make extension testing magical.
We know exactly what to copy and can copy it to temporary
directory instead of treating it as a multitest.

R=whesse@google.com
BUG=

Review URL: https://codereview.chromium.org//11421057

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15301 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-26 09:08:40 +00:00
whesse@google.com c275f90aa8 Update standalone.status file with flaky secure_server_stream test on Windows, and change "tls" to "secure" in status file.
BUG=dart:6893

Review URL: https://codereview.chromium.org//11348212

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15288 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-23 14:27:01 +00:00
whesse@google.com 6220720429 Add --build-directory option to test.py.
Fix problem when no --step-name option is present.

BUG=dart:6885

Review URL: https://codereview.chromium.org//11308179

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15280 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-23 12:54:04 +00:00
sgjesse@google.com 64ae8e5e22 Mark two TLS tests as flaky on Windows
TBR=whesse@google.com

BUG=

Review URL: https://codereview.chromium.org//11308180

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15279 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-23 11:09:51 +00:00
sgjesse@google.com 7805f03972 Generate an error for active connections when the HTTP client is shutdown
Before the underlying sockets where just silently closed causing no more IO events on active connections no matter what state they where in.

Also added an optional "force" argument to HttpClient.shutdown. If that is false (the default) The HttpClient will not close active connections until they are done. This causes all pkg/http and pub tests to pass.

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

BUG=dart:6594

Review URL: https://codereview.chromium.org//11411121

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15275 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-23 09:28:34 +00:00
whesse@google.com 15d5c6b582 Rename TlsSocket to SecureSocket, and all other Tls... items to Secure....
BUG=

Review URL: https://codereview.chromium.org//11419138

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15274 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-23 09:21:48 +00:00
whesse@google.com 0807c2662b Implement input and output streams for secure network sockets.
BUG=dart:6701

Review URL: https://codereview.chromium.org//11416108

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15267 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 16:37:10 +00:00