Commit Graph

2501 Commits

Author SHA1 Message Date
asiva@google.com b3be8ab0bb Skip issue14236_test on dart2analyzer as it can not handle script snapshots.
Review URL: https://codereview.chromium.org//40603003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29184 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 17:24:58 +00:00
asiva@google.com 92e82867a7 Fix build break on windows.
Review URL: https://codereview.chromium.org//16085010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29182 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 17:19:02 +00:00
asiva@google.com a294e0a82f Fix for issue 14236:
Retain script path of parent isolate when spawnFunction is called so that
it works when using script snapshots.

The test case issue14236_test.dart is a script snapshot whose original source
file path is issue14236_source.dart

R=iposva@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29178 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 16:41:22 +00:00
kustermann@google.com b3ba5c5c95 test.py: Support for running tests in checked mode on none-dartium with the browser controller
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29175 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 15:37:33 +00:00
ajohnsen@google.com 103eac574c Remove FileException, DirectoryException and LinkException from dart:io and use FileSystemException instaed.
BUG=https://code.google.com/p/dart/issues/detail?id=12461
R=nweiz@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29168 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 12:17:20 +00:00
ajohnsen@google.com fdea26c768 Close file watcher when target is deleted.
BUG=http://code.google.com/p/dart/issues/detail?id=14374
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29159 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 08:12:16 +00:00
ajohnsen@google.com 9c7ba71d61 Don't close existing connection on HttpServer close (and stream cancel).
This also fixes several issues exposed by this.

BUG=http://code.google.com/p/dart/issues/detail?id=14317
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29083 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 14:18:25 +00:00
whesse@google.com 6dbc9e5268 dart:io | Remove uses of Options class from standalone tests. Mark Options deprecated.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29079 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 12:50:18 +00:00
whesse@google.com 346145a6ee dart:io | Add test of command-line arguments passed to main, remove test of Options object.
BUG=
R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28989 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 09:38:42 +00:00
whesse@google.com bfc3d53dc6 dart:io | Add FileSystemEntity.parent, make File.directory call it.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28986 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 07:32:06 +00:00
whesse@google.com c9e4b7f7cd dart:io | Fix File.rename on Windows to overwrite an existing target.
BUG=dartbug.com/14164
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28933 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 14:57:35 +00:00
kustermann@google.com 40d4f78c55 Fixed test_runner_test.dart: Use normal TestOptionsParser to get default options
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28848 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-18 09:23:09 +00:00
whesse@google.com eac99db65d Fix remaining uses of Directory.systemTemp outside test scripts.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28576 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-14 10:53:12 +00:00
floitsch@google.com 0f7a0bd7b1 Rename runAsync to scheduleMicrotask.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28569 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-12 15:52:17 +00:00
floitsch@google.com dc9c5f42ed Redo StreamTransformers so they work with Stack traces.
Since this involved a breaking change I cleaned up more of the
StreamTransformer API.

This CL also deprecates the getAttachedStackTrace method.

R=ajohnsen@google.com, lrn@google.com, nweiz@google.com, rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28562 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-12 12:34:34 +00:00
zra@google.com 50200e725c Emits additional output when test_runner_test fails.
On SIMARM and SIMMIPS, test_runner_test is flaky. Further, we have
been unable to reproduce the failure case locally. The test fails
when the "Unexpected fail" exception is thrown in processCompletedTest.
This change prints the stdout and stderr of the completed test.
With this output in the flakylogs, we'll hopefully be able to
diagnose the problem.

R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28420 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-09 21:26:25 +00:00
vsm@google.com 334fd6bf07 Mark spawnFunction tests as Fail on Dartium
See corresponding Dartium CL:
https://chromiumcodereview.appspot.com/26397003/

This disables spawnFunction on DOM enabled isolate (i.e., where
dart:html is available).  spawnFunction should continue to work on
non-DOM enabled isolated.  spawnUri should be unaffected.

R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28406 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-09 16:25:28 +00:00
hausner@google.com 8fa41d5d55 Compile error on const instance variables
Another little step towards full spec compliance.

Issue 11051

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28234 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 18:17:16 +00:00
whesse@google.com 2a987cceea Modify tests to use Directory.systemTemp.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28219 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 13:28:35 +00:00
whesse@google.com b9aa1950a4 Fix secure_socket_bad_data_test to allow early failure.
BUG=dartbug.com/13583
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28157 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-02 13:01:08 +00:00
ajohnsen@google.com a86f11f4ab IssueRead for DirectoryWatcherHandle as soon as the watcher starts.
This makes sure we don't miss any initial events.

BUG=https://code.google.com/p/dart/issues/detail?id=13228
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28148 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-02 11:10:13 +00:00
kustermann@google.com 22d20313b4 Implement testing support for "--compiler=none --runtime=dartium"
This is implemented without the broken unittest-based wrapping of tests.

R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28141 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-02 07:37:50 +00:00
whesse@google.com b221c702a3 dart:io | Add Directory.CreateSystemTemp(template) and change Directory.CreateTemp(template).
BUG=dartbug.com/12496
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28097 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 15:38:01 +00:00
ajohnsen@google.com 5f05dfc08f Make web_socket_error_test pass analyzer (include missing library).
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28092 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 11:42:05 +00:00
ajohnsen@google.com b90ecc03cd Don't throw SocketExceptions in websocket.
This makes the implementation much more stable and act just like
HttpResponse.

BUG=https://code.google.com/p/dart/issues/detail?id=13164
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28089 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 11:26:43 +00:00
ajohnsen@google.com 8323221e70 Only allow one async operation on RandomAccessFile at a time.
This is to make sure we never have a race-condition on the same
File*/FD. For a File it should be fine, as each operation will open it's
own FD to work on.

BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28088 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 11:23:32 +00:00
fschneider@google.com a329b0e6bc Dart VM: Simplify code generation for equality operators.
By inserting the necessary checks for null inside the callee
at the AST level, the code generation of == operations can be
greatly simplified.

This is a performance-neutral change and a step for allowing
generic inlining of arbitrary == methods. So far we could only
inline them for a common set of types in the flow graph
optimizer.

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28084 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 10:10:50 +00:00
ajohnsen@google.com c540e349ed Fix print_sync_test for Windows, by using Uri:file instead of Uri:parse.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28083 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 09:27:47 +00:00
ajohnsen@google.com 9278e87af6 Use int for size when printing to stdout.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28082 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 09:17:24 +00:00
ajohnsen@google.com db94aeca89 Always mark stdout as blocking when using 'print'.
BUG=http://code.google.com/p/dart/issues/detail?id=13712
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28081 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 09:05:54 +00:00
zra@google.com 8f97cd66ae Reverts change to debug_lib.dart
Even though this behavior hid failures on ARM and MIPS, it
appears that some test rely on it.

R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28070 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-30 22:11:46 +00:00
zra@google.com 1a9d6cfb1f Adds the BreakpointRuntime stub to ARM and MIPS.
Also:
- Makes some stub calls patachable.
- Updates pkg.status for an unrelated failing test.

R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28066 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-30 20:17:48 +00:00
ajohnsen@google.com 031dcbe37b Don't emit errors from the socket when we are closing it down.
The socket may be deleted at this point, so getting the error can be 'use-after-free'. Also, the actual error doesn't help, as the user can't do anything about a bad close (note that all data is 'flushed' before close is called).

BUG=https://code.google.com/p/dart/issues/detail?id=12982
R=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28053 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-30 14:56:42 +00:00
whesse@google.com 12cadfd1be Add .address to [Raw]ServerSocket and HttpServer.
Also use .address in Pub's barback server.

R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28010 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 13:36:03 +00:00
fschneider@google.com b389bddb1a Bug fix and cleanup of inlining of recognized [] methods.
1. Fix a bug with polymorphic inlining of [] on platforms that
don't support inlined SIMD ops (e.g. MIPS),
or unboxed int32/uint32. (ia32 with SSE <4.1).

2. Cleanup of duplicate code.

R=kmillikin@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28000 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 10:27:47 +00:00
ajohnsen@google.com 5ca0fc0d40 Use SIGKILL in regress_7191_script.
This makes the test pass on Mac OS X, that contains a bug for dealing
with early SIGTERM signals.

BUG=https://code.google.com/p/dart/issues/detail?id=13637
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27985 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 06:28:24 +00:00
whesse@google.com 97c15483ab Fix https_bad_certificate_test.
BUG=dartbug.com/13609
R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27957 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 15:12:04 +00:00
ajohnsen@google.com 7e75589a5d Fix File stream on cancel.
Before we could end up having both an issued read and a close request.
Given the new nature of our io-service, this could lead to a race
condition between the two.

BUG=https://code.google.com/p/dart/issues/detail?id=12982
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27955 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 14:34:15 +00:00
whesse@google.com 0514b19955 Fix socket_exception_test, that had an asyncStart() too late.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27948 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 12:53:01 +00:00
whesse@google.com 8c7a9f5919 Split secure_server_client_certificate test in two, because of session cache.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27942 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 12:12:05 +00:00
whesse@google.com 2d05c67137 Fix https_bad_certificate_test: allow for session cache to be hit in all getUrl calls
BUG=
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27940 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 11:14:41 +00:00
whesse@google.com b5024d1144 Recommit "Change two secure networking tests". Add suppression to status file.
BUG=dartbug.com/13609, dartbug.com/12982
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27935 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 09:04:33 +00:00
sgjesse@google.com 9800316820 Update status file
TBR=whesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27934 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 07:54:47 +00:00
kasperl@google.com 956551b6b6 Update status files.
R=ricow@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27930 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 06:25:53 +00:00
kasperl@google.com 2ffaeb5ae7 Revert "dart:io | Change two secure networking tests to account for the session cache."
This reverts r27886 to try to figure out if this change is causing the redness
on the VM build bots.

R=ricow@google.com, whesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27929 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 06:15:30 +00:00
whesse@google.com 60925dd9db dart:io | Mark early_client_close(2) test as flaky.
BUG=dartbug.com/12982
R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27892 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 16:39:40 +00:00
whesse@google.com fd410b9d68 dart:io | Change two secure networking tests to account for the session cache.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27886 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 15:32:18 +00:00
ajohnsen@google.com a347038cd7 Merge services into a shared IOService in dart:io, and use a native port.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27883 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 15:03:24 +00:00
sgjesse@google.com 415d53b557 Add property base to the Uri class
Uri.base returns the natural base URI for the current platform.

R=ahe@google.com, floitsch@google.com, iposva@google.com, rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27877 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 13:52:15 +00:00
kustermann@google.com dfbf264f40 Automatically converted general Fail status file markers to one of the more specific markers
R=johnniwinther@google.com, ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27876 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 12:47:03 +00:00