Commit graph

87586 commits

Author SHA1 Message Date
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
codefu@google.com da07089568 DynamicElementImplementation: return dynamic type
MemberBuilder: accept broken methods
DeltaAnalyzer: Corelib types

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@133 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:50:13 +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
floitsch@google.com 251cb020ec Add comments to DateTimeTest.
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@131 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:28:14 +00:00
sgjesse@google.com 63782c5c50 Disable process tests on Linux
They can cause timeout once in a while.

R=ager@google.com

BUG=dart:1
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@130 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:25:30 +00:00
floitsch@google.com 63dd99d5e6 Remove TimeZone comment.
R=ngeoffray@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@129 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:19:02 +00:00
floitsch@google.com ad89e94d67 Fix bad merge.
Unbreaks build.
TBR=ngeoffray

R=ngeoffray@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@128 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:04:55 +00:00
sgjesse@google.com 6abaad8aa1 Restructured socket tests and fixed readUntil on InputStream
Most of the socket tests where written with closing both the server and client ends of the socket. However on Windows this can lead to errors once in a while (WSAECONNRESET). The tests now closes the socket in the client and and waits for a close event on the server side.

The readUntil on InputStream did not take data in the internal buffer into account. This has been fixed and the related test have been rewritten to check for two patterns which together will match all the input.

R=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@126 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:47:49 +00:00
floitsch@google.com 1229e5b8db Implement Date.weekday.
Review URL: https://chromereviews.googleplex.com/3541012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@125 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:47:41 +00:00
floitsch@google.com 410583d73d Get rid of duration in TimeZone class.
Review URL: https://chromereviews.googleplex.com/3538012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@124 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:35:56 +00:00
ager@google.com 30ede18056 Implement first version of directory listing library on Windows.
R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@123 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:28:05 +00:00
floitsch@google.com 885419a1bb Add missing files from last commit (121).
TBR=ngeoffray.
R=ngeoffray@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@122 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:26:48 +00:00
floitsch@google.com 382580f9a7 Rename Time to Duration and adapt methods.
Review URL: https://chromereviews.googleplex.com/3536013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@121 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:21:57 +00:00
karlklose@google.com d95c89a2f4 Allow #import and #source in multi tests.
Review URL: https://chromereviews.googleplex.com/3511021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@119 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:13:03 +00:00
zundel@google.com d13c2d80f7 Simplifies a couple of tests that are failing in the compiler.
This doesn't actually fix anything, just makes a couple of tests simpler.
These tests are meant to test the visibility of symbols in libraries,
but there was some extra baggage in the test that might make it
fail for unrelated reasons.

BUG=5406175

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@118 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 13:51:37 +00:00
floitsch@google.com 57fb110ca4 Update isolate.status file.
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@117 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 12:43:02 +00:00
zundel@google.com 10c5e2ec41 Include variable setting for Mac
R=benl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@116 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 12:29:12 +00:00
jgw@google.com 4265230569 Fixes declaration of named-parameter trampoline parameters
(to avoid name conflicts with explicit ones).
BUG=5404211

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@115 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 12:27:59 +00:00
benl@google.com 7413962616 Review URL: https://chromereviews.googleplex.com/3532014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@113 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 11:40:31 +00:00
benl@google.com 7ddf68b7b3 Review URL: https://chromereviews.googleplex.com/3507025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@112 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 11:19:01 +00:00
ngeoffray@google.com 84c81a082d Conditionnaly cleanup after running a command.
Review URL: https://chromereviews.googleplex.com/3546016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@111 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 11:04:54 +00:00
ager@google.com 7d4f364d53 Minor changes to documentation generation.
Filter out private classes so no file is generated for them.

R=ngeoffray@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@110 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 11:02:55 +00:00
floitsch@google.com 19610c461e Unbreak the build.
Update status file, while investigating what's going wrong.

TBR=ngeoffray

R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@109 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 10:48:22 +00:00
ngeoffray@google.com 61486c2267 Small clenaup in the python scripts to make sure all tests get their Cleanup method called.
Review URL: https://chromereviews.googleplex.com/3534013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@108 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 10:47:32 +00:00
floitsch@google.com 15727ed074 Rename DateTime to Date.
Review URL: https://chromereviews.googleplex.com/3529013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@107 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 10:14:49 +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
floitsch@google.com 98d704a3cb Remove Date class and remove .time from DateTime.
Review URL: https://chromereviews.googleplex.com/3508024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@103 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 09:20:30 +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
jgw@google.com e2daa7e89b Remove support for variadic parameters.
Review URL: https://chromereviews.googleplex.com/3528012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@101 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 08:28:42 +00:00
ngeoffray@google.com 808542f40b Move co10 tests to tests/co19.
Review URL: https://chromereviews.googleplex.com/3538014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@100 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 08:06:12 +00:00
srdjan@google.com 5dd35f18ae Fix crash in test.py when timing out.
Review URL: https://chromereviews.googleplex.com/3543017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@99 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:59:02 +00:00
sgjesse@google.com cc0ffa0766 Minor changes to Socket and File
* align the definition of the exception class with how ProcessException ended up
* add constants for redability

R=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@98 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:57:34 +00:00
srdjan@google.com b0af113468 Address Siva's suggestion.
Review URL: https://chromereviews.googleplex.com/3546013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@97 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:46:45 +00:00
kasperl@google.com b0772a497d Remove more uses of the old syntax for optional arguments.
@antonm: I still have to filter out all the Dart code in:

  client/html/generated/...

and the file:

  client/generated/src/interface/WebKitCSSMatrix.dart

I hope we can fix this soon.

R=ngeoffray@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@96 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:37:15 +00:00
ngeoffray@google.com a13f376270 Update status file to get bot greens.
Review URL: https://chromereviews.googleplex.com/3544014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@95 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:18:59 +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
johnlenz@google.com b2918972e8 Changes to allow the ClosureJsBackend to give people some options to play with:
- introduce a "fastDraft" mode that only runs the main code-removal passes and runs in about half the time and but produces code 2x the size (but still less than 10% of the original).
- allows it to run in an quasi-incremential mode by consuming the incrementially generated js (cuts ~4s off the build time but source maps are useless).
- allow source map generation to be turned off (saves a couple seconds).
- turns off not useful check passes and makes the rest switchable.

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@91 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 06:41:19 +00:00
johnlenz@google.com 30232ec2c0 Remove more class name references from optimized code. Only removes 800 bytes from swarm.
Review URL: https://chromereviews.googleplex.com/3548012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@90 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 05:51:25 +00:00
sra@google.com ea49561596 Mark parameters with [Optional=CallWithDefaultValue] as not optional.
This extended attribute was recently added to many WebKit IDL
operations to mark arguments that were accepted as missing.
Many are stupid legacy behaviour, like NodeList.item(index).
We don't want Dart to have such a broad API.

An example change is  2f24f20493

There will be some parameters marked as [Optional=CallWithDefaultValue] that
really should be optional.  We will discover those and have to whitelist them.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@89 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 04:30:51 +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
arv@google.com f5de883b77 Dart DOM: Implement dataAttributes Map.
BUG=None
TEST=None

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@83 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 23:32:35 +00:00
hausner@google.com b8a55bf3d7 Initializer expressions must not access 'this'
Catch explicit and implicit accesses to 'this' in initializer list of constructors.
Review URL: https://chromereviews.googleplex.com/3517020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@81 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 22:39:25 +00:00
cshapiro@google.com 9a664c355d Wrap method bodies in a NoGCScope when receiving raw pointer arguments.
BUG=5413582

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@80 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 22:38:38 +00:00
vsm@google.com 12b69ca3ba New named optional arguments syntax
BUG=5218494

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@79 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 22:35:00 +00:00
arv@google.com 3501cc95ce Dart DOM: Rename query to queryAll and queryOne to query.
BUG=None
TEST=None

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@77 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 22:19:09 +00:00
sigmund@google.com ebd67ed258 htmlconverter: suggestions from dstockwell
Review URL: https://chromereviews.googleplex.com/3532012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@76 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 22:01:57 +00:00
arv@google.com 57051017bd Revert "Add Element data property"
This reverts commit r71.

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@74 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 21:43:54 +00:00
arv@google.com 515c527ecd Dart DOM: Fix syntax error.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@73 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 21:43:42 +00:00
arv@google.com 1e650a0e64 Add Element data property
BUG=None
TEST=None

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@71 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 20:40:39 +00:00
fabiomfv@google.com 02fc5cc91f add debugging compiler flags:
--human-readable-output : generates readable source code in optimized output. 
--disable-type-optimizations : disables type optimizations. 
Review URL: https://chromereviews.googleplex.com/3513020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@70 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 20:40:38 +00:00