Commit Graph

1526 Commits

Author SHA1 Message Date
kathyw@google.com 2ff7bb2447 One-liners for unittest and matcher.
Also had to give a one-liner to stack_trace, to work around a doc generation issue (dartbug.com/13246).

R=gram@google.com

Review URL: https://codereview.chromium.org//23828006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27398 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-11 19:28:17 +00:00
lrn@google.com 18362b2cf4 Revert "Convert HashSet, LinkedHashSet to factory methods and custom implementations."
Triggers an error in html tests on dartium.

Review URL: https://codereview.chromium.org//23451045

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27392 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-11 16:19:45 +00:00
kathyw@google.com bc2a4fae5b Copyedit pass over args library description; fixed some example code
R=mcampione@google.com, rnystrom@google.com

Review URL: https://codereview.chromium.org//23603002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27388 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-11 15:35:01 +00:00
lrn@google.com c5bb6f7b15 Convert HashSet, LinkedHashSet to factory methods and custom implementations.
R=floitsch@google.com

Review URL: https://codereview.chromium.org//23859008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27378 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-11 12:35:57 +00:00
jmesserly@google.com 68a3655f3e add timeout as an option for polymer/example IE tests
Review URL: https://codereview.chromium.org//24097004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27361 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-10 23:03:10 +00:00
jmesserly@google.com 58700e061f fix pkg.status file for polymer/example/component/news test
Review URL: https://codereview.chromium.org//23903039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27360 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-10 22:33:52 +00:00
jmesserly@google.com 00c31d8951 mark polymer test failing on safari, ie
BUG=

Review URL: https://codereview.chromium.org//23531038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27358 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-10 22:08:58 +00:00
jmesserly@google.com 05705dad2f fix polymer tests -- replace run.sh and run tests using bots
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org//24077003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27353 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-10 21:21:55 +00:00
pquitslund@google.com 07e4dfdb43 Ensure formatted CUs end with a newline (dartbug.com/13188).
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//23458038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27352 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-10 21:17:21 +00:00
pquitslund@google.com 79f133550d Optional trailing comma support for list and map literals.
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//23451037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27350 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-10 18:34:05 +00:00
pquitslund@google.com 1d8cee96ee Fix to NOT traverse linked directories when formatting (dartbug.com/13187).
We *may* allow support for this in the future but either way the default (as set here) should be false.

R=brianwilkerson@google.com, kevmoo@j832.com

Review URL: https://codereview.chromium.org//23461044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27349 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-10 18:32:21 +00:00
pquitslund@google.com 8c13dc887a Formatter sanity-checking (via token stream verification).
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//23480055

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27343 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-10 17:10:41 +00:00
ricow@google.com d463e8ac03 Mark pkg/crypto/test/hmac_sha256_test as flaky
We already have issue 12502 to track this.

R=kustermann@google.com

Review URL: https://codereview.chromium.org//24056006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27335 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-10 13:00:12 +00:00
nweiz@google.com 7385f9c3a8 Support transformers that depend on other transformers.
R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//24016002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27322 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-10 00:48:12 +00:00
terry@google.com 88f208988c Include tests for polyfill and without polyfill
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org//23868008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27320 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-09 23:16:12 +00:00
blois@google.com b904bf81ba Revert "Revert "Tag extensions""
Original CL is the first patch, changes follow. Includes fixes for Chrome test failures and Firefox type check issues.

BUG=
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//23442011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27313 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-09 22:03:43 +00:00
kevmoo@j832.com a8eafbee60 Update urls for polymer
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//23509007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27310 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-09 20:45:45 +00:00
kevmoo@j832.com 77851b1065 pkg/mdv: remove reference to pkg/serialization
IdentityMap is no longer used

R=jmesserly@google.com

Review URL: https://codereview.chromium.org//23724022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27306 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-09 19:29:12 +00:00
lrn@google.com 0f1e912d9d Reapply "Make LinkedHashMap also have a factory constructor and be customizable""
The change was reverted due to failing Dartium tests that were not easily handelable on a Friday afternoon.

Review URL: https://codereview.chromium.org//23872008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27284 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-09 10:49:32 +00:00
jmesserly@google.com 518fcf5825 fix dart2js warnings when compiling polymer_expressions
it might be a dart2js bug, but I'm not sure the generic adds anything here, so removed it.

R=justinfagnani@google.com

Review URL: https://codereview.chromium.org//23609017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27267 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-06 20:33:25 +00:00
jmesserly@google.com e6ce53bcb7 ignore trailing whitespace in polymer transform test
R=dgrove@google.com

Review URL: https://codereview.chromium.org//23772007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27265 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-06 20:31:37 +00:00
justinfagnani@google.com 9a5b4c3092 Add null literals
BUG=
R=cbracken@google.com, jmesserly@google.com

Review URL: https://codereview.chromium.org//23458017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27263 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-06 19:59:40 +00:00
lrn@google.com 761f55b1b9 Revert "Make LinkedHashMap also have a factory constructor and be customizable"
Dartium expectations expects "LinkedHashMap" and gets "_LinkedHashMap".

Review URL: https://codereview.chromium.org//23890008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27250 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-06 14:29:04 +00:00
lrn@google.com 64359158ab Make LinkedHashMap also have a factory constructor and be customizable
R=floitsch@google.com

Review URL: https://codereview.chromium.org//23494027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27246 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-06 13:01:54 +00:00
dgrove@google.com d85315c307 Make expectations match reality by altering whitespace.
TBR=jmesserly@google.com

Review URL: https://codereview.chromium.org//23767006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27223 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-05 23:55:07 +00:00
jmesserly@google.com 337880c0d4 fixed TodoMVC tests to include deploying to JS
R=kustermann@google.com, sigmund@google.com

Review URL: https://codereview.chromium.org//23678009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27222 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-05 23:00:41 +00:00
kevmoo@j832.com 85e045313e adding HtmlEscape to dart:convert
BUG=https://code.google.com/p/dart/issues/detail?id=1657
R=blois@google.com, floitsch@google.com, rnystrom@google.com

Review URL: https://codereview.chromium.org//23492002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27211 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-05 20:30:56 +00:00
jmesserly@google.com 8982e4916f update shadowdom polyfill to latest.
Note: all of the changes to .debug.js and .min.js come from upstream

I also simplified our patch, because we are now almost unforked upstream code (we just have a couple of fixes they haven't merged yet). In particular we can't use _ShadowDOMPolyfill$isGeneratedWrapper so we go back to 'GeneratedWrapper'.

I'm trying to align our build logic more closely to:
https://github.com/Polymer/platform/blob/master/gruntfile.js#L10, hence the use of their build.json files.

This fixes: https://code.google.com/p/dart/issues/detail?id=13054

R=efortuna@google.com

Review URL: https://codereview.chromium.org//23548014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27210 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-05 20:26:10 +00:00
alanknight@google.com 47b25f4236 Fix off-by-one error in computing the quarter in date formatting
R=efortuna@google.com

Review URL: https://codereview.chromium.org//23494030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27202 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-05 17:41:38 +00:00
nweiz@google.com edad0a6ed2 Fix a subtle bug in barback.
When a [PhaseOutput.removeListeners] was called, the output was re-added to the [Phase] but its removal event wasn't re-subscribed. This meant that if that output was later removed, the phase got into an inconsistent state where it would perform operations on a removed output.

R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//23803006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27170 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-05 00:13:36 +00:00
nweiz@google.com a9861a6cf5 Stop working around issue 9535.
R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//23654008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27169 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-05 00:02:40 +00:00
sigmund@google.com 315a51b392 Add a polymer validator: a linter/analysis that will replace the old
dwc.analyzer. This analysis covers what we used to have before, but hooks into
barback (so we'll be able to see assets that are generated too).

I plan to delete analyzer.dart and compiler.dart next, but decided to do so in a
separate CL.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org//23452010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27162 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-04 22:37:46 +00:00
scheglov@google.com 7f0d7dfd18 Tweaks for previous java2dart CL.
Missed them in previous CL...

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//23874014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27155 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-04 22:00:55 +00:00
efortuna@google.com b0e059159f Adjust CustomElement as properties again.
BUG=
R=blois@google.com

Review URL: https://codereview.chromium.org//23969002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27146 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-04 20:11:11 +00:00
sigmund@google.com 3fba647ba8 Apply several phases only to entrypoint files (which currently are identified as
those inside the web/ or test/ directory), and hide doctype warnings when
processing non entrypoint files.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org//23478015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27142 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-04 19:49:43 +00:00
scheglov@google.com e6ce94adab java2dart improvement - use field if getter/setter are trivial.
Also analyzer_experimental snapshot.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//23769004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27138 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-04 19:17:38 +00:00
floitsch@google.com 0fa2f91c3c remove use of deprecatedFutureValue from html5lib
R=floitsch@google.com

Review URL: https://codereview.chromium.org//23480032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27122 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-04 13:15:59 +00:00
sigmund@google.com b5e920e0bf Reenable polymer_expressions syntax_test.
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//23437019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27088 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-04 01:59:07 +00:00
nweiz@google.com fb3e580c5c Support loading transformer plugins from pub.
This is still missing some functionality, most notably the ability for
a transformer to import transformed code.

R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//23625002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27085 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-04 00:43:24 +00:00
scheglov@google.com e8f8262517 New analyzer_experimental snapshot.
And java2dart improvements for better inner classes support.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//23461019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27078 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-03 21:46:33 +00:00
alanknight@google.com e0234b8da6 Allow creating VariableSubstitution by name or by index
R=efortuna@google.com

Review URL: https://codereview.chromium.org//23449021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27077 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-03 21:46:41 +00:00
pquitslund@google.com f8c8395201 Formatter comment-handling improvements.
A bit messy but ready to checkpoint. Should handle the major cases.

R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//23589005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27074 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-03 19:21:14 +00:00
lrn@google.com eaf1021a87 Make HashMap constructor a factory.
Add optional parameters that aren't supported yet.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//23513010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27044 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-03 11:45:12 +00:00
ricow@google.com 713a068bc2 Remove suppression for issue 12429
This is fixed by the v8 roll in revision 27038

R=kustermann@google.com

Review URL: https://codereview.chromium.org//23537012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27042 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-03 11:16:38 +00:00
ahe@google.com c4540b4034 Pub integration tests sometimes need more than 20 seconds.
Also, revert "Increase timeout of some pub tests."

This reverts commit r26976.

BUG=http://dartbug.com/12983
R=kustermann@google.com

Review URL: https://codereview.chromium.org//23444032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27031 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-03 08:33:04 +00:00
johnniwinther@google.com 4c7b97d041 Remove reference to unimported Future.
BUG=

Review URL: https://codereview.chromium.org//23551007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27030 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-03 08:28:11 +00:00
johnniwinther@google.com 3d22a350b3 First pass at asynchronous input loading in dart2js.
R=ahe@google.com, johnniwinther@google.com

Review URL: https://codereview.chromium.org//17759007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27028 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-03 08:04:38 +00:00
scheglov@google.com 2407a0bc51 Restore pkg.status item.
TBR

R=ahe@google.com
BUG=

Review URL: https://codereview.chromium.org//23536010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27021 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-02 19:41:46 +00:00
scheglov@google.com 5f27a4f4ad java2dart improvements and new analyzer_experimental snapshot.
1. All enums extend Enum class.
2. Remove more unneeded parentheses.
3. Remove type arugments for types with all wildcards.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//23852002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27020 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-02 19:01:22 +00:00
lrn@google.com 53dc9ba034 Change the field and constructor parameter types of NoSuchMethodError to Symbol.
The NSME uses strings for names. It should use symbols.

This change modifies the VM libraries only enough to make the signature change
not crash. It will probably need cleanup to ensure that symbols are passed
to the internal constructor directly, instead of strings that have to be
converted.

(Also fixes a type error in Map.fromIterable that was hit by the code).

BUG= http://dartbug.com/11190
R=ahe@google.com, regis@google.com

Review URL: https://codereview.chromium.org//23486007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26985 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-02 05:57:49 +00:00