Commit Graph

1430 Commits

Author SHA1 Message Date
regis@google.com f955de9bc0 Throw a type error in production mode when the type of the type test is not
declared (issue 2571).
Add test.
Delete bad negative test now covered by new test.
Update status files of different compilers.
Review URL: https://chromiumcodereview.appspot.com//10035058

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6754 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 17:01:28 +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
ngeoffray@google.com fc58ad3555 Fix mangling of local variables when their name conflict with Dart2JS's temporaries.
Review URL: https://chromiumcodereview.appspot.com//10123009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6742 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 13:34:28 +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
scheglov@google.com 42c3daeb88 Issue 2639. Resolve implicit super() constructor invocation.
http://code.google.com/p/dart/issues/detail?id=2639

R=devoncarew@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6719 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 01:02:10 +00:00
hausner@google.com be32f37af7 Fix dartc status
Mark GettersSettersTest as fail until it's fixed.
Review URL: https://chromiumcodereview.appspot.com//10117029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6706 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 18:34:43 +00:00
floitsch@google.com 83cc399204 Don't rely on any speculative type in the bailout version.
Review URL: https://chromiumcodereview.appspot.com//10116023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6702 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 17:38:51 +00:00
hausner@google.com e74cd5fc3a Static members are not visible in subclasses
Fix for issue 1598.

Lexical scope comes before inherited names. Also, Static members
are not inherited and are not visible in subclasses.
Code in the subclass (or any other code for that matter) has to
qualify the names of these members with the class name.

We had a few tests that were wrong and only passed in the VM because
this was not implemented correctly.

Also had to fix code in frog and dartdoc.

I hope I ran enough tests. I built an all.deps tree using tools/build.py from the root directory, which brought up the frog and dartdoc issues.

Tested:
tools/test.py --compiler=dart2js --runtime=drt
tools/test.py -c none -r drt
tools/test.py -c frog -r drt
tools/test.py -r vm

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6698 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 16:09:22 +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
kasperl@google.com 639792f3b8 Update status file.
R=floitsch@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6686 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 13:38:52 +00:00
lrn@google.com 54cab43f3a Reapply "Refactoring if block-information."
Fix error in conditional expression handling.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6684 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 13:16:27 +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
floitsch@google.com 12f4b60e51 Add test.
Review URL: https://chromiumcodereview.appspot.com//9969207

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6681 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 11:15:55 +00:00
floitsch@google.com dbab92e737 Reapplies (again) "Don't try to box immutable objects."
This reapplies commit 6631 plus a fix, so that captured fields in closures are
mangled correctly.

Original CL: https://chromiumcodereview.appspot.com//10091036

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6679 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 10:57:52 +00:00
karlklose@google.com 038964d52c Check number of type arguments.
Review URL: https://chromiumcodereview.appspot.com//10105031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6675 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 10:27:32 +00:00
karlklose@google.com 562981ee1b Clean up handling of types.
This CL includes changes that address comments in http://codereview.chromium.org/9431029/.

- Do not explicitly check for var and Dynamic when resolving types.
- Support isSubType on type variables.
- Fix reflexivity of interface types.
- Check that required classes can be resolved in the core library. Provide all necessay core library classes for DummyCompilerTest.dart and MockCompiler.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6671 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 08:29:42 +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
hausner@google.com 69d33b8d8d Fix bug 1991, variable resolution in string interpolation
Check to make sure string interpolation expressions cannot
contain type parameter names.
Review URL: https://chromiumcodereview.appspot.com//10108020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6645 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 16:10:35 +00:00
floitsch@google.com 7626a83bc4 Revert "Reapply "Don't try to box immutable objects."
This reverts commit 6639 (again).

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6642 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 15:11:11 +00:00
floitsch@google.com 144860c0d9 Reapply "Don't try to box immutable objects."
This reapplies (a fixed version of) commit 6631 which was reverted in commit 6632.

Fix tests (types were wrong).

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6639 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 13:47:29 +00:00
floitsch@google.com ddd7475724 Revert "Refactoring if block-information."
This reverts commit 6630.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6635 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 13:29:29 +00:00
floitsch@google.com 2bde3de690 Revert "Don't try to box immutable objects."
This reverts commit 6631.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6632 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 13:20:39 +00:00
floitsch@google.com ccccad3360 Don't try to box immutable objects.
Review URL: https://chromiumcodereview.appspot.com//10091036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6631 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 13:09:44 +00:00
lrn@google.com 567f1e4beb Refactoring if block-information.
Generalizes block information handling and adds (yet unused) info blocks
for if and logical-and/or.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6630 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 13:02:07 +00:00
zundel@google.com 082190545e Remove warning for using a factory constructor on an abstract class.
http://code.google.com/p/dart/issues/detail?id=2282

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6619 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 09:30:21 +00:00
ngeoffray@google.com 1f8650af80 Add a test for checking that enough positional arguments were passed in.
Review URL: https://chromiumcodereview.appspot.com//10102001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6616 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 07:57:10 +00:00
hausner@google.com 02661e6905 Accept keyword abstract in front of a class declaration
We can just ignore it. The VM has nothing to do for abstract
classes.
Review URL: https://chromiumcodereview.appspot.com//10103014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6612 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 23:46:55 +00:00
hausner@google.com 475fbca314 Implement implicit interfaces
Amazingly, this small change is all it seems to take to implement
implicit interfaces.
Review URL: https://chromiumcodereview.appspot.com//10103009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6607 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 22:21:54 +00:00
rnystrom@google.com a494569dfc Fix HTTP links in URI docs.
Also fixes a bug in our markdown parser where reference links are not
correctly case-insensitive.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6606 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 22:17:53 +00:00
floitsch@google.com 9ffbf450c6 Reapply "Refactor type propagation."
This reapplies (a corrected version of ) commit 6599 which had been reverted in commit 6600.

Original CL: https://chromiumcodereview.appspot.com//10098001

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6601 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 20:13:49 +00:00
floitsch@google.com ec2bc38e45 Revert "Refactor type propagation."
This reverts commit r6599.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6600 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 20:06:00 +00:00
floitsch@google.com 31e2a0b5ee Refactor type propagation.
Review URL: https://chromiumcodereview.appspot.com//10098001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6599 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 20:00:02 +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
floitsch@google.com 1cf1476ef9 Remove bad semicolon in negative test.
Review URL: https://chromiumcodereview.appspot.com//9972016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6594 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 16:25:21 +00:00
floitsch@google.com 91a1605755 Operator4Test only fails in unchecked mode for frog.
Review URL: https://chromiumcodereview.appspot.com//10095015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6590 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:57:30 +00:00
floitsch@google.com 63455dd294 It's CompileTimeConstantPTest/01 that is failing for frog.
Review URL: https://chromiumcodereview.appspot.com//10097019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6588 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:36:12 +00:00
floitsch@google.com 53083ba48a Add issue number.
Review URL: https://chromiumcodereview.appspot.com//10097017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6587 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:30:00 +00:00
karlklose@google.com 3fb96bb8f8 Recommit 'Implement interface types'.
Reviewed as https://chromiumcodereview.appspot.com/9431029

TBR=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6586 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:23:41 +00:00
floitsch@google.com a0e73ff5b9 Mark dartc as failing for CompileTimeConstantPTest.
Review URL: https://chromiumcodereview.appspot.com//10094014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6585 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:21:16 +00:00
floitsch@google.com 6bf1414a24 Reapply "Use default values of named arguments when invoking the default super constructor."
This reapplies (a fixed version of) commit 6580 which had been reverted in commit r6582.

Old issue: https://chromiumcodereview.appspot.com//9930005

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6583 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:00:27 +00:00
floitsch@google.com 898f9293ed Revert "Use default values of named arguments when invoking the default super constructor."
This reverts commit 6580.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6582 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 14:46:55 +00:00
floitsch@google.com fdb46e99f7 Use default values of named arguments when invoking the default super constructor.
Review URL: https://chromiumcodereview.appspot.com//9930005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6580 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 14:33:28 +00:00
floitsch@google.com 140ae80d80 Reapply "Add some failing (in Dart2Js) tests."
This reapplies (a fixed version of) commit r6566 and reverts r6568.

Adapts Operator4Test to work in checked mode.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6579 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 14:32:43 +00:00
floitsch@google.com b61c2bf15b Resolve implicit super calls.
Review URL: https://chromiumcodereview.appspot.com//10083007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6574 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 13:53:23 +00:00
floitsch@google.com 1739218afa Revert "Add some failing (in Dart2Js) tests."
This reverts commit 6566.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6568 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 12:25:38 +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