Commit graph

42928 commits

Author SHA1 Message Date
benl@google.com 57b0a93060 Report missing dartc on stderr so junit tests work in debug mode.
TBR=ngeoffray
Review URL: http://codereview.chromium.org//8273039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@442 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 14:50:46 +00:00
fmalita@google.com a7cc9bcb49 Fling: implement the new DartCompilerListener.unitCompiled() method.
R=knorton@google.com,codefu@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8275036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@441 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 14:48:10 +00:00
ngeoffray@google.com fee0ef8fb5 Make sure we cleanup what was generated by the architecture.
Review URL: http://codereview.chromium.org//8283033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@440 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 14:25:18 +00:00
ngeoffray@google.com 52aa068f73 Implement List.insertRange.
Review URL: http://codereview.chromium.org//8271029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@439 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 13:44:18 +00:00
codefu@google.com 58060dbd96 Ground work for addition to new listener api
Review URL: http://codereview.chromium.org//8285004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@438 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 13:31:33 +00:00
ager@google.com 4bf840639c Fix windows build.
R=sgjesse@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8276033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@437 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 13:19:20 +00:00
benl@google.com c2128ceec0 Unbreak VM test.
TBR=ngeoffray
Review URL: http://codereview.chromium.org//8275033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@436 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 13:11:16 +00:00
sgjesse@google.com 7041797907 Get the OS error message for process exceptions on Windows
R=ager@google.com
Review URL: http://codereview.chromium.org//8277035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@435 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 13:03:39 +00:00
ager@google.com 17f168a2f1 Fix type annotation error in directory implementation.
TBR=sgjesse@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8273038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@434 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 12:57:42 +00:00
benl@google.com 8f7cdb8318 Fix dartc stub generator tests.
Review URL: http://codereview.chromium.org//8276032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@433 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 12:54:39 +00:00
ager@google.com 953d2599c1 Add exists, create and delete to directory implementation on Linux and Mac.
All of the directory implementations on Linux and Mac are identical
and uncontroversial. Join the implementations in directory_posix for
now. I will split it into the two files again if it becomes necessary.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8277033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@432 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 12:42:44 +00:00
ngeoffray@google.com fd40730343 Fix testing and buildbot.
Review URL: http://codereview.chromium.org//8283031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@431 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 12:36:16 +00:00
sgjesse@google.com d2ace1a9da Add back VM_OPTIONS_PATTERN.
TBR=ngeoffray@google.com

BUG=
TEST=

Review URL: http://codereview.chromium.org//8291001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@430 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 11:54:50 +00:00
benl@google.com df83719190 Remove prints.
TBR=floitsch
Review URL: http://codereview.chromium.org//8286021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@429 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 11:50:06 +00:00
sgjesse@google.com 206d15dc03 Make the sample tests run using the standard test configuration
Also run the chat server test with short read/write options.

R=ngeoffray@google.com

BUG=b/5299751
TEST=

Review URL: http://codereview.chromium.org//8274034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@428 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 11:35:31 +00:00
benl@google.com c0a59669cf Do away with the PromiseQueue.
Instead of queuing messages with promises in them until the promises
are ready, send immediately. This is done by sending a port down which
the receiver sends a port which can be used to signal completion of
the outgoing promise.
Review URL: https://chromereviews.googleplex.com/3573013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@427 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 11:18:12 +00:00
sgjesse@google.com fc1b7603b3 Add short read/write testing of Socket and Process tests
The changes to standalone tests from http://codereview.chromium.org/8226016/ somehow got lost when the tests where moved from runtime/tests/dart to tests/standalone.

Also fix and issue where just specifying "VMOptions=" did not run the test without any arguments.

R=ngeoffray@google.com

BUG=
TEST=

Review URL: http://codereview.chromium.org//8273035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@426 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 09:31:12 +00:00
karlklose@google.com 7ab879eb30 Implement correct resolving of library private members.
Make findElement take the library into account when looking up _-prefixed members.

Review URL: https://chromereviews.googleplex.com/3531017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@425 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 08:58:10 +00:00
sgjesse@google.com bf1c910eed Re-enable test EchoServerStreamReadUntilTest on Windows
R=ager@google.com

BUG=b/5414270
TEST=

Review URL: http://codereview.chromium.org//8275027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@423 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 08:33:02 +00:00
sgjesse@google.com 82312e0130 Use UUIDs for named pipe names on Windows instead of counter
R=ager@google.com
Review URL: http://codereview.chromium.org//8276002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@422 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 07:34:05 +00:00
johnlenz@google.com b8bdb780ee Set the source position on a DartFunction if an error is reported. (b/4337388)
Review URL: http://codereview.chromium.org//8271023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@419 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 00:14:20 +00:00
regis@google.com c09dfa132e Set type argument vector at run time in instantiated closure objects.
Set type argument vector at compile time in type of closure variables.
TODO: Set type argument vector at compile time in type of closure parameters.
Review URL: http://codereview.chromium.org//8271008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@416 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 21:34:48 +00:00
asiva@google.com 002d5698e0 Update language test status file.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@415 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 20:49:39 +00:00
codefu@google.com 3731f4148e If we run into a "super()" in a function body, report and error and parse it
as a literal.

R=jat@google.com,messick@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8277013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@414 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 20:42:02 +00:00
asiva@google.com a245caee10 Update dartc test status.
Review URL: http://codereview.chromium.org//8286005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@413 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 20:26:00 +00:00
hausner@google.com 13da6d834f Create implicit super constructor call if necessary
Create an implicit call to the super constructor if no explicit
call is present, and also if the constructor does not have an
initializer list at all.

The evaluation order is still not conforming to the spec. Thus,
a couple of tests that happened to pass before now fail.

Fix issue 85
https://code.google.com/p/dart/issues/detail?id=85
Review URL: http://codereview.chromium.org//8286003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@412 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 20:16:38 +00:00
asiva@google.com 60f1913eb2 Changes to handle unresolved qualified identifiers.
Review URL: http://codereview.chromium.org//8247014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@411 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 20:09:21 +00:00
asiva@google.com b1895e13d2 Add negative test for detecting error when the same library is imported twice.
Review URL: http://codereview.chromium.org//8247013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@410 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 20:07:08 +00:00
jat@google.com a2ecb69279 Detect re-throws outside of a catch block.
R=johnlenz
Review URL: http://codereview.chromium.org//8247007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@407 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 18:22:58 +00:00
fmalita@google.com 7531d9ebb6 Libraries cannot source themselves anymore.
After https://code.google.com/p/dart/source/detail?r=383, LibraryFromSources fails the library self-include check.

R=knorton@google.com,pdr@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8284001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@405 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 18:11:58 +00:00
asiva@google.com 9c927f8e02 Ensure that the passed in raw pointer is not used in SetRaw().
Review URL: http://codereview.chromium.org//8231028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@404 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 17:10:35 +00:00
ngeoffray@google.com 85804080f3 Implement List.getRange.
Review URL: http://codereview.chromium.org//8276005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@403 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 16:24:09 +00:00
ngeoffray@google.com 9e03f7c985 IllegalArgumentException expects a string.
Review URL: http://codereview.chromium.org//8277007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@402 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 16:19:06 +00:00
johnlenz@google.com 145154cf2b Enabled class name minification in production mode. Reduces removes 52K (optimzed) from swarm.
Review URL: http://codereview.chromium.org//8252006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@401 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 16:16:33 +00:00
ngeoffray@google.com b69b4200c8 Implement removeRange, and update some documentation on the list interface.
Review URL: http://codereview.chromium.org//8273004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@400 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 15:54:48 +00:00
floitsch@google.com 5460fe1206 Add negative test for setters in initializer list.
Review URL: http://codereview.chromium.org//8246004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@399 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 15:04:18 +00:00
ngeoffray@google.com 66e4a503ab Fix typo.
BUG=dart:89
Review URL: http://codereview.chromium.org//8277001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@398 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 14:49:58 +00:00
sgjesse@google.com 78f8e7bd91 Only use one process when running tests on Windows
Running more than one process on Windows fails at the moment, and one always need to pass -j1.

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

BUG=
TEST=

Review URL: http://codereview.chromium.org//8272001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@397 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 14:06:41 +00:00
sgjesse@google.com b98198c894 Make sure that the named pipe created for signalling the exit code is not inheritable
R=ager@google.com
Review URL: http://codereview.chromium.org//8267006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@396 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 13:34:36 +00:00
sgjesse@google.com 786aee238a Fix the handling of exceptions from process start
The privious change in r389 where the sockets used to communicate with the chile process did not work. Even though the Socket objects are not assigned any file descriptor they should still have their Dart port closed. If not the VM will not terminate.

TBR=ager@google.com

TEST=ProcessStartExceptionTest.dart
BUG=none

Review URL: http://codereview.chromium.org//8270001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@395 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 13:31:51 +00:00
ngeoffray@google.com edcae54a2c Implement setRange on DartC and the VM.
Review URL: https://chromereviews.googleplex.com/3574018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@394 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 12:58:49 +00:00
ngeoffray@google.com 76ef8258a4 Create a standalone test directory and move tests in runtime/tests/dart (mostly) to that directory.
Review URL: http://codereview.chromium.org//8261009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@393 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 12:44:29 +00:00
ngeoffray@google.com 29a8add5a3 Also build process_test to enable running Process tests at the top-level directory.
Review URL: http://codereview.chromium.org//8263008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@392 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 12:13:44 +00:00
sgjesse@google.com 8e1fe6626d Fix running of tests on Chromium and Dartium
The change in r388 removed the VM options from Chromium and Dartium test runs.

R=ngeoffray@google.com

BUG=
TEST=

Review URL: http://codereview.chromium.org//8258016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@391 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 11:54:36 +00:00
zundel@google.com 3745d707cb Addresses Python style issues in test_configuration.py and test_case.py
Review URL: http://codereview.chromium.org//8260004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@390 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 11:07:18 +00:00
sgjesse@google.com d0496ec807 Implement the full process interface for Windows
There are still a couple of TODOs in the code.

R=ager@google.com
Review URL: http://codereview.chromium.org//8249007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@389 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 10:38:37 +00:00
sgjesse@google.com 1cd5459f7b Add the ability to run tests with several sets of VM flags
The test-option VMOptions that can be placed in .dart test files can now be specified several times like this:

// VMOptions=
// VMOptions=--short_socket_read
// VMOptions=--short_socket_write
// VMOptions=--short_socket_read --short_socket_write

For each time VMOptions is specified a seperate test will be bun with the specified flags.

Used this to run the tests that uses sockets with short read and writes. Fixed a number of bugs in both stream implementation and in tests revealed by this.

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

Review URL: http://codereview.chromium.org//8226016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@388 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 10:14:31 +00:00
benl@google.com 4e62db0de3 Two, not three, projects.
Also, GoogleCodeStyle.xml is missng.
Review URL: https://chromereviews.googleplex.com/3539014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@387 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 09:19:52 +00:00
sra@google.com 50b99ad85d Add tests for named parameters that have names of JavaScript properties of Object.prototype.
BUG=5447476
TEST=

Review URL: http://codereview.chromium.org//8257001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@386 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 01:12:51 +00:00
johnlenz@google.com 54a65cf7e8 Don't emit calls to "Object.$Constructor" and "Object.$Initializer". Saves 17K (optimized) off of swarm.
Review URL: http://codereview.chromium.org//8253003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@385 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 00:13:15 +00:00