Commit Graph

76 Commits

Author SHA1 Message Date
sigmund@google.com be52d28a66 fixing drt-trampoline
BUG=http://dartbug.com/3917

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9230 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-28 21:55:40 +00:00
sigmund@google.com 2d02962131 disable layout tests in mac or windows(not tested)
TBR=efortuna@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9209 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-28 17:30:10 +00:00
sigmund@google.com 25a24b69a5 Adds support for layout tests.
Review URL: https://chromiumcodereview.appspot.com//10683009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9207 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-28 17:05:10 +00:00
ahe@google.com caa708cddb Update dart2js to use diagnostic kinds.
Review URL: https://chromiumcodereview.appspot.com//10579015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8843 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-19 13:48:13 +00:00
gram@google.com 9b79e27e17 Some unit test fixes:
Fixed a couple of issues in the ensureInitialized() function.
Added expectAsyncUntil methods to support callbackDone style tests.
Split the matcher tests up so that we can exclude those that use isInstance
from the environments where they don't work.
Eliminated the need for two functions calls in throws/throwsA.
Fixed some tests.
Changed some uses of Expect to expect.
Fixed a bug when using expectAsync with a count of zero.
Fixed a bug where we weren't updating the call count in invoke0/1/2.
Made expect behave sensibly in cases where the user doesn't supply a 
matcher (e.g. expect(foo, 0)). USing the predicate form with a 
reason now requires a named parameter.
Review URL: https://chromiumcodereview.appspot.com//10544167

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8753 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-15 23:17:57 +00:00
zundel@google.com 1b7f8307d2 A redirect constructor cannot reference an instance method.
See issue http://code.google.com/p/dart/issues/detail?id=2105

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8685 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-14 20:32:33 +00:00
gram@google.com 0aceb0c410 Revert 8668
Review URL: https://chromiumcodereview.appspot.com//10539163

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8673 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-14 17:27:21 +00:00
gram@google.com 0a8476dfcc Some unit test fixes:
Fixed a couple of issues in the ensureInitialized() function.
Added expectAsyncUntil methods to support callbackDone style tests.
Split the matcher tests up so that we can exclude those that use isInstance
from the environments where they don't work.
Eliminated the need for two functions calls in throws/throwsA.
Fixed a couple of tests.
Review URL: https://chromiumcodereview.appspot.com//10545167

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8668 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-14 16:40:28 +00:00
rnystrom@google.com a1c7361583 Add matchers for unit testing futures:
- completes
- completion()

Also made throws and throwsA() work with futures.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8632 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 22:49:24 +00:00
gram@google.com f77eb9e22e Fixed a mismatch describer with unreachable code.
Commented out isInstance tests that are causing issues with dart2js.
Review URL: https://chromiumcodereview.appspot.com//10539029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8368 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 23:01:28 +00:00
gram@google.com 29342005b3 Fix problems that occur in checked mode.
Review URL: https://chromiumcodereview.appspot.com//10541035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8360 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 20:40:29 +00:00
gram@google.com d2efc58b00 New expectation functions plus convert old tests to use these.
Review URL: https://chromiumcodereview.appspot.com//10441104

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8355 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 20:15:58 +00:00
ngeoffray@google.com 2cb4416340 Use the typedef arity to know how to invoke a closure given by the dom.
Review URL: https://chromiumcodereview.appspot.com//10441071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8067 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 15:53:54 +00:00
ngeoffray@google.com 5ca4106a51 Skip dart2js/firefox until we fix issue 2615.
Review URL: https://chromiumcodereview.appspot.com//10449049

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8045 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 09:41:29 +00:00
ngeoffray@google.com 3542e0bc07 Status file update to have dart2js/chrome/mac green.
Review URL: https://chromiumcodereview.appspot.com//10459006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8037 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 08:55:40 +00:00
ahe@google.com 355f5303a5 Add --package-root option to the compiler.
Review URL: https://chromiumcodereview.appspot.com//10407092

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7849 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-22 12:49:49 +00:00
gram@google.com 45d0e6e824 URI encoder/decoder - copied from other repo. This is the same code already reviewed but the other repo is not allowing me to commit so trying again.
See  Issue 10310080: Added uriEncode/uriEncodeComponent/uriDecode/uriDecodeComponent functions.
Review URL: https://chromiumcodereview.appspot.com//10399077

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7758 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 18:39:18 +00:00
ngeoffray@google.com 21041489fa Implement PrimitiveOrNull types.
Review URL: https://chromiumcodereview.appspot.com//10389063

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7537 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 10:25:11 +00:00
nweiz@google.com 3e83522697 Move Yaml into utils/pub.
Review URL: https://chromiumcodereview.appspot.com//10339009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7264 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-02 23:37:17 +00:00
ajohnsen@google.com d796a6fbae Update locale char when moving position in number parsing in the JSON parser.
BUG=http://code.google.com/p/dart/issues/detail?id=2858
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7219 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-02 09:06:05 +00:00
karlklose@google.com 8fa9bf1317 Implement simple dynamic type check.
The generated code for the test is:
(before)
 $.isTrue(typeof x === 'object' && !!x.is$Hest, (void 0));
 $.isFalse(typeof x === 'object' && !!x.is$Hest, (void 0));
(with patch)
 $.setRuntimeTypeInfo(x, ({X: 'int'}));
 var t0 = $.getRuntimeTypeInfo(x);
 $.isTrue(typeof x === 'object' && !!x.is$Hest && typeof t0 === 'object' && t0.X === 'int', (void 0));
 var t1 = $.getRuntimeTypeInfo(x);
 $.isFalse(typeof x === 'object' && !!x.is$Hest && typeof t1 === 'object' && t1.X === 'String', (void 0));

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7184 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-01 11:26:59 +00:00
sigmund@google.com 1dd7f30abc test rename overhaul: step 11 - tests/utils
Review URL: https://chromiumcodereview.appspot.com//10170040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7117 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-28 00:16:04 +00:00
floitsch@google.com d08c6ea50f Reapply "Avoid "=== true" inside code by calling a function that does this for us."
This reapplies a fixed version of commit 7000.
Original CL: https://chromiumcodereview.appspot.com/10140027/

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7068 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 11:20:03 +00:00
ajohnsen@google.com 66bddb1ec9 Require a digit when parsing JSON number.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7059 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 08:08:25 +00:00
ajohnsen@google.com 6da614afbf Relax JSON test to support other targets then the VM.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7058 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 07:29:46 +00:00
ajohnsen@google.com 29e5a0318e Optimize the JSON parser by tokenizing while parsing and using jump-table.
I've also updated the test to include a few corner cases.

My tests shows a 50-80% speedup. The optimization will also give a lower
memory usage since we don't keep a list of all tokens alive.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7056 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 07:07:39 +00:00
floitsch@google.com 5fa8f393a0 Revert "Avoid "=== true" inside code by calling a function that does this for us."
This reverts commit 7013.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7025 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 15:54:55 +00:00
floitsch@google.com 6f96f1c0b0 Reapply "Avoid "=== true" inside code by calling a function that does this for us."
This reapplies a fixed version of commit 7000.
Original CL: https://chromiumcodereview.appspot.com//10140027

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7013 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 12:37:41 +00:00
nweiz@google.com 6d2b52bb73 Add a basic YAML processor. Much of the language is still unimplemented.
Review URL: https://chromiumcodereview.appspot.com//10153004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6971 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 19:58:56 +00:00
antonm@google.com 9b4efa81c0 Remove now unnecessary suppression.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6891 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-24 15:34:27 +00:00
ahe@google.com 9eac6a5748 Remove frogsh.
Review URL: https://chromiumcodereview.appspot.com//10164004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6840 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-23 13:26:06 +00:00
antonm@google.com 63309b3fa1 Suppress utils/Utf8Test on Dartium for now.
TBR=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6787 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-20 10:11:02 +00:00
antonm@google.com b777033656 Add #library to make test run properly under DRT.
TBR=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6786 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-20 09:58:12 +00:00
ahe@google.com 43a6504688 Add test case for utils/utf8/utf8.dart.
Review URL: https://chromiumcodereview.appspot.com//9190042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6784 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-20 09:27:26 +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
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
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
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
kasperl@google.com da29bdcace Remove frog dependencies from lib/compiler.
Start importing the URI library using dart:uri rather than
dotting our way to the right directory in lib.

R=ahe@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6511 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 12:05:45 +00:00
sigmund@google.com 18d120acdc update status of a couple tests: some configurations are run, but should be
skipped.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6481 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-12 21:50:23 +00:00
sigmund@google.com 656e98150b unittest step2: bye bye to multiple entrypoints for unittest
Review URL: https://chromiumcodereview.appspot.com//10037027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6480 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-12 21:38:25 +00:00
regis@google.com 85e4a9c054 Do not require type class to be finalized when performing a type test.
However, make sure that the interfaces are resolved (issue 2523).
A later change will cleanup interface resolution code.
Review URL: https://chromiumcodereview.appspot.com//10050034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6446 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-12 00:18:43 +00:00
iposva@google.com ec56bb2c25 Workaround http://dartbug.com/2523 :
- Expect crash when running debug mode DummyCompilerTest.
Review URL: https://chromiumcodereview.appspot.com//10058001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6413 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 13:09:43 +00:00
sigmund@google.com cca364ce76 change status files to make it possible to run test.py -c frog,dart2js -r none.
Except for standalone, this mostly skips all other tests. The configurations
frog_none and dart2js_none these have been ignored for now by the bots, enabling
those tests should be done as needed.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6382 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-10 20:56:37 +00:00
dgrove@google.com ca61f09608 Move unittest into lib, and put it into the SDK.
Review URL: http://codereview.chromium.org//9802015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5956 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-28 22:26:14 +00:00
ahe@google.com dc099c4a00 Move frog/leg to lib/compiler/implementation.
Review URL: https://chromiumcodereview.appspot.com//9873021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5926 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-28 08:54:01 +00:00