Commit Graph

1720 Commits

Author SHA1 Message Date
sigmund@google.com 728114e4c6 Update status on browser-only tests.
Review URL: https://codereview.chromium.org//26967009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28779 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 04:27:45 +00:00
jmesserly@google.com 38c4cd1f6b package:observe fix various api issues
in particular:
provide oldValue/newValue/target in PropertyChangeRecord -- https://code.google.com/p/dart/issues/detail?id=12075
use == in notifyPropertyChange -- https://code.google.com/p/dart/issues/detail?id=12463
remove Mixin/Base suffix -- https://code.google.com/p/dart/issues/detail?id=13353
remove ChangeRecord.changes -- https://code.google.com/p/dart/issues/detail?id=14128

other changes:
rename PropertyChangeRecord.field to .name (it's not just fields)
PathObserver rethrows errors from inside the getter/setter to help debug those
PathObserver now looks up Map keys using Strings instead of Symbols.
generic type on PropertyChangeRecord, MapChangeRecord

I stopped short of adding "target" to List/Map change record but am interested in a follow up to address that: https://code.google.com/p/dart/issues/detail?id=14157

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28774 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 03:32:40 +00:00
sigmund@google.com 6c4e38b81e Practically remove boot.js, adds the initialization from the Dart side of
things, and fixes examples to work this way.

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28773 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 02:43:50 +00:00
zra@google.com 3f5cacdc87 Updates status file for slow test on simarm, simmips
Review URL: https://codereview.chromium.org//26174004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28727 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-16 15:20:21 +00:00
kustermann@google.com a43e7cf2c8 Mark pkg/barback/test/too_many_open_files_test as slow
TBR=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28724 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-16 13:41:34 +00:00
lrn@google.com 8b1d5720f7 Change "typedef" to "class" in core library and related tests.
R=floitsch@google.com, johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28712 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-16 09:02:46 +00:00
jmesserly@google.com 6d5f00c4ab rebuild shadow_dom at 12db94a66c79aa203d2dd59d239c60a3b3d44ed0
R=dgrove@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28705 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-16 02:49:57 +00:00
rnystrom@google.com bd4f848856 Use file pool to handle running out of file descriptors.
BUG=https://code.google.com/p/dart/issues/detail?id=13752

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28702 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-16 00:59:47 +00:00
jmesserly@google.com d583f16e4f add @MirrorsUsed to observe/polymer/polymer_exprs pkgs
Fairly straightforward. @observable and @CustomTag are metaTargets, so no changes needed for types that use those. The only other changes are for data binding to objects with built in change notification. In that case, we add package:observe's @reflectable annotation. Other than that, just a few other things in mirrors that are now locked down appropriately to only reflect on the things they need.

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28689 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-15 22:55:47 +00:00
jmesserly@google.com ceb15d891c fix PolymerElement.bind to call reflectPropertyToAttribute w/ prop name
This is the fix for issue 14060
Polymer.js fix is at: https://github.com/Polymer/polymer/pull/319

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28688 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-15 22:41:19 +00:00
justinfagnani@google.com 03eb80a189 Maintain referential integrity of proxy instances in dart:js
Rename DartProxy to DartObject in JavaScript to be symmetrical with JsObject

R=ahe@google.com, alexandre.ardhuin@gmail.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28686 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-15 21:43:16 +00:00
nweiz@google.com 999840c105 Track the original assets more efficiently in Phase.
R=rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28685 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-15 21:40:59 +00:00
sigmund@google.com 24eb8baa5a Small fix to boot.js so it can work with CSP if an existing html-import tag is
present.

Note: this will be deleted soon when we deprecate boot.js (a week or so).

R=jmesserly@google.com, sergeygs@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28675 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-15 19:10:53 +00:00
blois@google.com f2573b0a0a Converting Polymer's WebComponentsLoaded to an onReady future
This avoids double-firing of the event when the CustomElements polyfill is present and allows tests to wait for the future without worrying about missing the event.

BUG=
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28665 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-15 17:37:24 +00:00
jmesserly@google.com 958feffd78 fix dart2js warnings in polymer_expressions pkg
BUG=
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28627 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-15 02:54:24 +00:00
blois@google.com 43d834bae9 Updating todomvc for some polymer changes
Should have caught some earlier, but I just added the base class validation.

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28624 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-15 00:52:15 +00:00
blois@google.com 74bf998319 Fixing polymer example code for Polymer element change
TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28623 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-15 00:42:10 +00:00
blois@google.com 89978b4e03 Fixing Polymer linter warnings error on transform changes
TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28622 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-15 00:20:57 +00:00
blois@google.com 1cb69bc901 Fixing bots after Polymer element integration
TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28621 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-14 23:46:17 +00:00
blois@google.com 4d0d82a043 Updating Polymer to derive from custom elements.
BUG=
R=jmesserly@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28617 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-14 22:46:54 +00:00
pquitslund@google.com e9e3dd9606 Formatter library entry-point for the masses (w/ gypi update).
(Note the manual change in resource_sources.gypi.  I verified that this works locally.)

R=jmesserly@google.com, johnmccutchan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28613 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-14 21:46:06 +00:00
pquitslund@google.com f3ea6bd578 Another SVN mv and stab at build greeness [TBR].
Review URL: https://codereview.chromium.org//26262005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28601 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-14 18:52:19 +00:00
pquitslund@google.com 5df969e78f Revert of move in quest for greenness [TBR].
Review URL: https://codereview.chromium.org//27233002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28600 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-14 18:44:10 +00:00
pquitslund@google.com 9bea8ece04 Proper formatter library for popular consumption.
R=brianwilkerson@google.com, keertip@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28596 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-14 18:36:35 +00:00
lrn@google.com 8922b1065c Add EfficientLength marker interface to some iterabels.
Use that in List.from and other methods to be more efficient when possible.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28575 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-14 10:40:00 +00:00
floitsch@google.com 43bbab4e09 Mark error_test as timeout.
Review URL: https://codereview.chromium.org//27103002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28570 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-12 16:49:40 +00:00
floitsch@google.com 0f7a0bd7b1 Rename runAsync to scheduleMicrotask.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28569 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-12 15:52:17 +00:00
floitsch@google.com fcf5c20aeb Mark prop_attr_reflection_test as failing.
Review URL: https://codereview.chromium.org//27090003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28566 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-12 13:53:20 +00:00
floitsch@google.com dc9c5f42ed Redo StreamTransformers so they work with Stack traces.
Since this involved a breaking change I cleaned up more of the
StreamTransformer API.

This CL also deprecates the getAttachedStackTrace method.

R=ajohnsen@google.com, lrn@google.com, nweiz@google.com, rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28562 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-12 12:34:34 +00:00
blois@google.com 1f788e54c9 Marking Polymer's prop_attr_reflection_test as fail
Change in symbol name is causing test to fail, opened bug.

TBR
BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28560 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-12 00:22:34 +00:00
justinfagnani@google.com cee2b116ce Revert "Maintain referential integrity of proxy instances in dart:js"
This reverts commit bf87105c535cd2f6fa28904547b4e9f2804bc301.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28557 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 21:28:15 +00:00
terry@google.com 8992076c3c - Added @mixin and @include support for top-level and declarations.
- Added parameter support for mixins.
- Support var definition with multiple parameters as an @include parameter.
- Support @extend and @extend with nested selectors.
- Removed hoisting var and cycle checks - can only reference known vars.
- Added bunch of tests.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28555 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 21:03:04 +00:00
justinfagnani@google.com b2316c569a Maintain referential integrity of proxy instances in dart:js
Rename DartProxy to DartObject in JavaScript to be symmetrical with JsObject

R=ahe@google.com, alexandre.ardhuin@gmail.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28547 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 20:24:18 +00:00
alanknight@google.com 8cb396fafb Mark the intl file-reading tests slow on debug mips
R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28529 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 17:10:20 +00:00
rnystrom@google.com 2c095c78d9 Make pub build use barback.
BUG=https://code.google.com/p/dart/issues/detail?id=13880
R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28524 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 16:17:06 +00:00
ajohnsen@google.com 86e664e645 Preserve '\' in filenames for uploads, as Windows/IE contains them.
BUG=http://code.google.com/p/dart/issues/detail?id=13928
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28515 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 12:36:14 +00:00
floitsch@google.com 4be547c705 Adapt streams for additional stackTrace argument.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28511 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 12:02:20 +00:00
floitsch@google.com 956243966a Add second argument to Future error handlers.
R=lrn@google.com, nweiz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28510 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 11:42:39 +00:00
lrn@google.com a144c11369 Make JSON encoder take extra function argument to use instead of toJson calls.
Defaults to callin toJson() on unconvertible objects.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28507 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 11:34:50 +00:00
kustermann@google.com b24a73c137 Remove unittest-based wrapping from our testing scripts
The unittest-based wrapping of tests is completely broken and will be removed
with this CL. ('none-drt' is the last configuration where we currently still do
unittest-based wrapping.)

BUG=
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28501 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 09:01:17 +00:00
lrn@google.com 04c230b114 Add Set.lookup method to get the instance in the set.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28499 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 07:16:20 +00:00
rnystrom@google.com 88e476d0d9 Fix observe package to work with new barback logger.
BUG=
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28492 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 00:21:40 +00:00
rnystrom@google.com 8abeb673a2 Improve barback/pub logging.
Barback now lets you provide a logger, and pub gives it one that
pipes through pub's logging infrastructure. I'll need this to
get pub build using barback and easily testable with well-defined
console output.

BUG=https://code.google.com/p/dart/issues/detail?id=13880
R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28486 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-10 23:16:59 +00:00
jmesserly@google.com b16ddf6c12 use symbol literals instead of const ctor
R=rnystrom@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28485 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-10 22:55:17 +00:00
sigmund@google.com 5df1c0d7f9 Fix bug in polymer expressions where input-value bindings are incorrectly
updated twice, losing the cursor position.

BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28480 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-10 21:29:07 +00:00
sethladd@google.com 0ee64024d9 clarify docs for onmutation
BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28473 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-10 19:51:25 +00:00
zra@google.com a644c01748 Updates status file for flaky test on simmips.
Review URL: https://codereview.chromium.org//26855003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28456 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-10 15:04:31 +00:00
ajohnsen@google.com 326f48d476 Expand usage of defaultEncoding in HttpBody in the http_server package.
This fixes a few cases where other default encodings was used. Given
that we operate with the concept of a default encoding, to use that
encoding makes more sense.

BUG=https://code.google.com/p/dart/issues/detail?id=13928
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28453 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-10 14:08:55 +00:00
blois@google.com 1426a55a47 Adding platform patches to allow custom elements polyfill to work with Shadow DOM.
The specific issue was that elements existing in the page before the tag was registered was causing issues. This is encountered with the <polymer-element> tag.
BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28434 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-10 00:30:08 +00:00
pquitslund@google.com 3c769a4598 Formatter method cascade indents.
In keeping with the current style guide suggestion:

"DO use four spaces for method cascades."

R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28427 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-09 22:34:48 +00:00