Commit Graph

68 Commits

Author SHA1 Message Date
sigmund@google.com ce94c4f472 New versions to publish for observe & polymer. Needed now that pub depends on
barback >= 0.11.0

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31141 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-13 18:35:16 +00:00
jmesserly@google.com b17630d1af workaround for event handlers: don't return StreamSubscription as model
https://code.google.com/p/dart/issues/detail?id=15574

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31092 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-11 23:52:09 +00:00
nweiz@google.com 113bd79bc6 Make pkg/path 1.0.0 and upgrade dependencies appropriately.
All existing packages that use pkg/path (other than pkg/stack_trace,
which has already been updated) are compatible with both the pre-1.0
and post-1.0 path API, so I've marked their version constraints as
">=0.9.0 <2.0.0". I've also incremented their patch versions and I
intend to release new versions as soon as this CL lands.

R=alanknight@google.com, efortuna@google.com, jmesserly@google.com, rnystrom@google.com, scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31005 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 00:24:01 +00:00
ahe@google.com cc9464d96f Add @reflectable to NoSuchMethodModel
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30851 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-04 11:14:51 +00:00
sigmund@google.com 0211a4edbb update polymer to include the latest barback.
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30689 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 00:55:11 +00:00
jmesserly@google.com d804dc59e3 Add license info to pkgs so we can pub lish directly
The LICENSE was automagically added by tools/publish_pkg.py

Note: for shadow_dom and polymer I copied the LICENSE/PATENTS/AUTHORS from the corresponding polymer-js pkgs (it's the same as Dart project but says "Polymer" instead of "Dart").

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30641 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 20:20:05 +00:00
rmacnak@google.com f9b308941d Remove use of deprecated mirror API from pkg/observe.
R=gbracha@google.com, jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30640 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 19:55:08 +00:00
jmesserly@google.com 8c178dc26d bump pubspecs for package release
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30597 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 23:25:39 +00:00
jmesserly@google.com aa2ac62a8d add isEmpty/isNotEmpty to ObservableList reflection
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30588 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 22:10:22 +00:00
jmesserly@google.com 873ea4fb9d fix script tags -- remove special case handling for polymer-element
also enforce one-dart-script-per-document rule
also fixes bug about inlining all content, not just polymer-element

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30486 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 22:13:52 +00:00
sigmund@google.com 55ee7003b7 Fix in compound path observer: this fixes the error we saw in our manual testing
of todomvc.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30121 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-08 19:02:35 +00:00
sigmund@google.com 536f92456d Ensure we run the observable transform on PolymerElement (fixes issue 14942)
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30089 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-08 00:32:54 +00:00
iposva@google.com 1cae21b556 - Reverting mirror changes.
Review URL: https://codereview.chromium.org//62373008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30029 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 02:07:37 +00:00
iposva@google.com a2d280501e - Reverting mirror changes.
Review URL: https://codereview.chromium.org//63563003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30027 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 01:48:45 +00:00
rmacnak@google.com bc897425e1 Cascaded mirror removal revert.
Review URL: https://codereview.chromium.org//63363003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30024 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 01:20:51 +00:00
rmacnak@google.com 1caa73df59 Remove implementations of mirror methods not in the API from the VM. Update tests.
R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30005 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 22:30:45 +00:00
dgrove@google.com 18ca7d0036 Re-land r29957 (add versions and constraints for packages and samples), with
SDK constraints bumped from 1.0.0 to 0.8.10+6 .

R=ricow@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29986 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 18:28:22 +00:00
ajohnsen@google.com 61f6c51990 Revert "add versions and constraints for packages and samples"
This is currently blocking us from testing samples.

BUG=
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29960 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 09:09:18 +00:00
jmesserly@google.com 02638c5760 add versions and constraints for packages and samples
- all packages at 0.9.0, except "analyzer" which had a version already
- dependencies at ">=0.9.0 <0.10.0" except analyzer is ">=0.10.0 <0.11.0"
- sdk constraint ">=1.0.0 <2.0.0"

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29957 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 03:27:58 +00:00
jmesserly@google.com e3a2bc779e fix observe tests
looks like I was testing locally against an older VM, before the recent fix for unknown types

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29633 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 02:50:36 +00:00
jmesserly@google.com 33fa4d5eba introduce ObservableList.listChanges to keep list changes separate from property changes
this is part of addressing: 13554, 14157, 13359

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29630 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 02:31:50 +00:00
floitsch@google.com 7006de6f23 Remove deprecated parts of dart:async.
Attempt to fix most uses of the deprecated features.

R=floitsch@google.com, nweiz@google.com, rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29628 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 02:24:29 +00:00
sigmund@google.com 54f9873540 Fix logging call in path_observer (issue 14617)
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29597 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 22:17:20 +00:00
ahe@google.com 36e2df1a1d Mirrors overhaul.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29551 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 14:58:58 +00:00
lrn@google.com f0a1c922a2 Reapply "Remove @deprecated features."
R=scheglov@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29535 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 12:09:15 +00:00
jmesserly@google.com 7b3123e02a Update our TemplateBinding port
https://github.com/Polymer/TemplateBinding/tree/ed3266266e751b5ab1f75f8e0509d0d5f0ef35d8

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29500 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 23:26:20 +00:00
jmesserly@google.com 084dc19054 fix PathObserver to avoid try+catch
also fixes staticwarnings

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29498 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 22:18:37 +00:00
lrn@google.com 57efa5da8c Revert "Remove @deprecated features."
There were more uses of the deprecated features.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29443 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 12:54:37 +00:00
lrn@google.com 72e1d263dc Remove @deprecated features.
R=alanknight@google.com, rnystrom@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29438 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 12:00:44 +00:00
kustermann@google.com 94ebff2225 Bugfix in test.dart, adding of specialized test outcomes for analyzer
This CL will:
 - fix a bug in the legacy AnalyzerCommandOutputImpl class (in certain cases
   we did not report that the analyzer was missing a warning).
 - make the outcome of running the analyzer on a test be one of:
   * CompileTimeError
   * MissingCompileTimeError
   * StaticWarning
   * MissingStaticWarning
 - Make status file updates using the new Expectation markers
 - Remove support for '@static-clean':
     Previously running the analyer on a test could either result in
     'Pass' or in 'Fail'. The '@static-clean' annotation has been used
     as a (poor) mechanism to distinguish between errors and warnings.
     Having the 4 markers mentioned above means we can remove '@static-clean'
 - Remove 100 lines of rotted legacy code in our testing scripts.
 - Make a status file entry for every test that has analyzer errors or warnings

R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29350 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-28 10:39:38 +00:00
scheglov@google.com 7ac0b7d0bd Rename analyzer_experimental to analyzer.
R=jmesserly@google.com, pquitslund@google.com, danrubel@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29302 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 23:59:38 +00:00
scheglov@google.com e85ecab139 Fix build after analyzer_experimental API change.
TBR

R=jmesserly@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29265 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 17:58:41 +00:00
jmesserly@google.com 04c0d63166 fix build due to mdv -> template_binding rename
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29058 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 02:25:05 +00:00
jmesserly@google.com 821e6fec2a Several fixes here to fix bugs and get our tests into a reliable state:
* customElementsReady future. We don't fire Polymer.onReady until custom elements are ready too

* deploy without dart.js by default. This is the expected deployment mode for real apps. Also make sure we test this on DRT and compiler==js, so Pete can change Dartium without causing build breaks :)

* stop using "package:observe" test "performMicrotaskCheckpoint" hack in Polymer. This was too blunt; it affected timing of all async operations. Instead we only trigger Observable.dirtyCheck. It's using the latest Zone API as well.

* mixin ChangeNotifier explicitly. This is mainly to fix a quirk of our test environment (test server loads "packages/polymer" in untransformed mode, causing it to pick up Observable instead of ChangeNotifier).

* fix change watchers to blacklist "attributeChanged" :)

* fix serializeValue to only use the runtime value

* fix deserializeValue to get the right Type for dart:core types

* cleanup prop_attr_reflection_test to use mutation observer

R=blois@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28956 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 21:49:51 +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
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 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
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
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
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
jmesserly@google.com cf3dcfba4c Port Polymer.js Core, the github.com/polymer/polymer code.
Ports all features except where JS interop is blocking us (declaration/path.js and instance/style.js). In particular, this has:
  //   src/declaration/attributes.js
  //   src/declaration/events.js
  //   src/declaration/polymer-element.js
  //   src/declaration/properties.js
  //   src/declaration/prototype.js
  //   src/declaration/styles.js
  //   src/instance/attributes.js
  //   src/instance/base.js
  //   src/instance/events.js
  //   src/instance/mdv.js
  //   src/instance/properties.js
  //   src/instance/utils.js
  //   src/lib/deserialize.js
  //   src/lib/job.js
  //   src/lib/dom.js -- not needed in Dart
  //   src/lib/lang.js -- not needed in Dart
  //   src/lib/super.js -- not needed in Dart

There's also a big architectural change: polymer-element data is now stored in the PolymerDeclaration class, which is separate from PolymerElement. This allows us to avoid duplicate work on every constructor, and should significantly speed up instance creation.

All code is from the same revision:
https://github.com/Polymer/polymer/blob/4dc481c11505991a7c43228d3797d28f21267779

The remaining unported files are for relatively minor features. "declaration/path.js" is for asset URL resolution, and we might have a Pub-based solution instead. "instance/style.js" has an opt-in, advanced style polyfill. It needs "ShadowCSS.shimPolyfillDirectives", and probably isn't too hard to make work in a follow up change.

Other changes:
* attributeChanged lifecycle method is implemented.
* ObservableAnnotation is public so Polymer's @published can subclass it
* bindProperty renamed to onPropertyChange to avoid conflict with Polymer member of the same name.
* polymer/lib/boot.js preload's polymer-element and link[rel=stylesheet]

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28134 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 23:45:37 +00:00
jmesserly@google.com 61f2476f38 fix observe transform to preserve metadata
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28133 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 23:36:46 +00:00
kathyw@google.com ef3f516570 one-liners for a few polymer-related libraries
R=jmesserly@google.com, mcampione@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27500 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-13 20:25:19 +00:00
jmesserly@google.com 877f440f28 fix observing superclass fields, issue 13255
this was previously blocked by a mirrors bug, but no longer.

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27402 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-11 20:34:32 +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
jmesserly@google.com 7a091dcfca Turn on Polymer TodoMVC tests on Dart buildbots
The biggest changes are to the examples, but there's a small tweak to test_suite.dart as well, so it can load the HTML files.

For now, we only test the development loop (content_shell+Dart VM). I'm working on changes to enable us to test the deploy story with dart2js.

R=kustermann@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26943 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 21:09:06 +00:00
sigmund@google.com bd53fa0cc8 Change in deploy.dart to make it easier to run in run.sh without running pub.
You probably will delete some of this, but wanted to have things working better.

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26900 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 02:00:05 +00:00
scheglov@google.com d5491a3c48 Fix build for pub after new analyzer_experimental snapshot.
R=brianwilkerson@google.com, jmesserly@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26883 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-29 17:22:33 +00:00
kevmoo@j832.com 331b9d2500 pkg/observe: wrapMicrotask should return the result the provided testCase
pkg/observe: removed unused imports

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26837 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-29 02:09:44 +00:00
sigmund@google.com 02a943a09d Fix observable transform bug introduced in a recent change, add regression tests
for it.

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26836 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-29 01:32:19 +00:00