Commit Graph

1846 Commits

Author SHA1 Message Date
vsm@google.com 0b9a7bac6f Update status files to make build green
TBR=antonm

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@588 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-20 20:51:54 +00:00
srdjan@google.com e7b8e8d0ee Add more tests for classes which may not be subclassed.
Review URL: http://codereview.chromium.org//8355001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@577 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-20 06:55:45 +00:00
iposva@google.com 73d6d0de54 - Make sure to test all combinations of getters.
Review URL: http://codereview.chromium.org//8355014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@573 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 21:34:28 +00:00
ngeoffray@google.com 418539495b Add a test for testing evaluation order of getters.
Review URL: http://codereview.chromium.org//8347035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@550 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 13:04:03 +00:00
johnlenz@google.com c3cb970918 Fixed alignment of named parameters in the presents of captured scopes
Review URL: http://codereview.chromium.org//8347002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@517 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 18:00:04 +00:00
ngeoffray@google.com c0665b7f29 Remove print from MathVMTest and update status file to refer to dom 'print' bug.
Review URL: http://codereview.chromium.org//8339018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@509 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 15:10:03 +00:00
ngeoffray@google.com 7a76e86b18 Fix test to use developer mode. DartC does not have to check arguments to native methods.
Review URL: http://codereview.chromium.org//8334015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@506 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 09:23:14 +00:00
hausner@google.com ab37c41e1d Interpolated strings are never considered compile time const
Review URL: http://codereview.chromium.org//8318031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@500 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 23:51:28 +00:00
srdjan@google.com 76f932ce14 Add test for blacklisting extension/implementation of classes and interfaces. Added a few tests, please comment which additional ones need to be added.
Review URL: http://codereview.chromium.org//8320002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@481 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 19:43:42 +00:00
johnlenz@google.com 69a08abbbd Namespace named parameters to avoid conflicts
Review URL: http://codereview.chromium.org//8301002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@480 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 19:31:09 +00:00
zundel@google.com 20a34d063b This adds checks for compile-time constants in places
where the spec demands it:

  - initializing toplevel finals
  - initializing static final class members
  - initializing named parameters to functions

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@468 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 14:12:33 +00:00
regis@google.com dc895f3138 Rename class AssertError to AssertionError in the VM (fix issue 119).
Move VM specific tests to the correct tests directory.
Enable asserts in the VM when type checks are enabled.
Review URL: http://codereview.chromium.org//8294005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@460 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 22:02:50 +00:00
johnlenz@google.com bd867bb9bc Add missing file from the last assert change.
Review URL: http://codereview.chromium.org//8289012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@454 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 21:12:38 +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
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 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
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
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
sra@google.com 9f50706f03 Test for named parameter called 'count'.
Currently fails on dartc because the optional argument count is put in
the same object as the optional arguments.

BUG=5447476
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@381 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 21:46:26 +00:00
floitsch@google.com 60add15c21 Add test that checks that the default constructor is called.
Review URL: http://codereview.chromium.org//8208011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@373 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 19:03:34 +00:00
johnlenz@google.com 7bc0683761 Add support for exception rethrowing using "throw;"
Review URL: http://codereview.chromium.org//8208016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@372 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 18:56:01 +00:00
johnlenz@google.com 6701769d35 Fix named parameters handling of values that are falsy in JS, also fixes issues with named parameters that whose "default" value should default to "null".
Review URL: http://codereview.chromium.org//8232014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@358 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 23:43:20 +00:00
hausner@google.com a487770657 Implement super operator calls
Review URL: http://codereview.chromium.org//8222015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@335 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 16:49:35 +00:00
zundel@google.com 870da8ef9d Fixing bad merge in CommandLineOptions
Review URL: https://chromereviews.googleplex.com/3565017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@276 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 15:31:25 +00:00
zundel@google.com 4ccb7c5810 Add --enable-type-checks to allow certain resolution errors to be non-fatal
This is to match the  behavior outlined in Gilad's
"Optional Types in Dart" document.  Extra type checks are turned
on when --enable-type-checks is passed on the command line *or*
optimization mode is enabled in the compiler.

See also https://chromereviews.googleplex.com/3563014/

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@275 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 15:11:10 +00:00
mmendez@google.com fc7390d97b Add support for --enable_type_checks (developer mode) for dartc.
This patch is based on https://chromereviews.googleplex.com/3520019/.  However it addresses the following issues:

1) TypeError exceptions will now have the stack trace filled in.
2) Type parameters are now accessible from closurized code, including the trampoline shims for named optinal parameters.
3) Suppress use of FunctionExpressionInliner with type checks because the inline normalization can leave return nodes in the AST.
4) Pass the generateHumanReadableOutput flag to the closure backend.
5) TypeDartcTest passes in debug and release modes with type checking enabled.  We still need to enable the additional cases in the code.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@271 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 04:11:34 +00:00
sra@google.com 8af240c0cc Tests for passing falsy values to named arguments.
Fixes type error in previous version.

BUG=3530015
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@260 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 20:55:07 +00:00
sra@google.com 62d265fb4e Revert "Tests for passing falsy values to named arguments."
This reverts commit 75ee354c00e07fd209c8e60c3f588e55eaac7299.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@257 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 20:23:28 +00:00
sra@google.com bead816a8c Tests for passing falsy values to named arguments.
BUG=5419670
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@254 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 20:00:39 +00:00
regis@google.com db3a736c33 Support optional named arguments at the dart_entry level in the VM.
Fix bug 5422033: Const expressions don't work with named arguments.
Review URL: https://chromereviews.googleplex.com/3552015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@168 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 22:40:45 +00:00
zundel@google.com 6bd18f8086 Fix name shadowing problem in compiler
Names in a scope should create shadow copies of names in enclosing scopes.

BUG=5382396

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@147 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 19:17:31 +00:00
srdjan@google.com 44392fdb03 Fix resolving of implicit closures: treat null objects same as instances of Object.
Review URL: https://chromereviews.googleplex.com/3551013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@138 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 16:31:31 +00:00
floitsch@google.com fdf276dd2a Add test for const constructions with named arguments.
Review URL: https://chromereviews.googleplex.com/3530018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@134 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:56:33 +00:00
zundel@google.com fa609a58ec Updates the resolver to print the line and column number for name conflicts
Along the way I gave the ResoverTest more specific errors to test
against and found some cases that weren't being flagged properly
as errors.

BUG=5415945

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@132 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:35:05 +00:00
ngeoffray@google.com eebda50623 Update status file to reflect what's implemented in dartc and fix bot.
Review URL: https://chromereviews.googleplex.com/3551014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@104 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 09:28:21 +00:00
ngeoffray@google.com d42cadb575 Remove directory because it clashes with the existing runtime/tests/dart.
Review URL: https://chromereviews.googleplex.com/3502035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@102 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 08:38:43 +00:00
ngeoffray@google.com c05cfb10c0 - Now that prefixes have been implemented, remove the trampoline hack for calling main in a browser test.
- Update some tests to define #library, as the #library is required by the dart blob we're emitting for testing in the browser
- Update language.status to reflect reality.
Review URL: https://chromereviews.googleplex.com/3522016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@94 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:11:49 +00:00
mmendez@google.com 115fc3df08 Revert "Revert "Eliminate retarded constructors.""
This reverts r66 which was a revert of r64.  The original commit failed because "optimized" mode builds won't generate NoSuchMethodErrors and that is why the release mode test won't pass.  So for that issue, I updated the language.status file.

The client failure appears to be test infrastructure flakiness because my rollback failed but the subsequent build succeeded and I'm unable to reproduce the failure at my desk.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@88 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 02:46:31 +00:00
mmendez@google.com ad9389b6ca Revert "Eliminate retarded constructors."
This reverts commit r64.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@66 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 20:03:49 +00:00
mmendez@google.com 1fae22da51 Eliminate retarded constructors.
Modified: Resolver, Normalizer and GenerateJavascriptAST to special case implicit default constructors. Would be simpler if there was a notion of synthetics, but this is not the time to add such a scheme -- if nothing else it would disrupt the IDE.

BUG=4562150

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@64 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 19:43:55 +00:00
jgw@google.com da2581daa9 Fix for classes that are the default factory for multiple other classes/interfaces.
BUG=5009110

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@47 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 16:25:25 +00:00
ngeoffray@google.com a717c9b7c1 Fix library prefixes on top-level elements. Update status file to reflect reality on library prefixes.
Review URL: https://chromereviews.googleplex.com/3521018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 14:13:59 +00:00
floitsch@google.com 100f10211e Add tests for const classes.
Review URL: https://chromereviews.googleplex.com/3524015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 12:36:26 +00:00
dgrove@google.com ebe439410d Initial checkin.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 06:22:36 +00:00