Commit Graph

124 Commits

Author SHA1 Message Date
kevmoo@google.com d31141e045 pkg/polymer: remove css_lib dependency
Subsumes https://codereview.chromium.org/63693002/

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31346 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-20 19:47:33 +00:00
lrn@google.com e6e524063c Add missing files from previous commit.
Review URL: https://codereview.chromium.org//118783004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31268 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 12:57:38 +00:00
rmacnak@google.com 52cf356d6c Remove reflectedType hack from Polymer.
R=ahe@google.com, jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31235 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-18 18:19:55 +00:00
sigmund@google.com 645e2e3e4b Fix how we compute _packageRoot in loader.dart. This is to fix a rare
canonicalization bug (see https://code.google.com/p/dart/issues/detail?id=15694)

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31232 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-18 17:19:00 +00:00
sigmund@google.com f5e5bd9b54 Fix type error, add tests for it, get package ready for a patch release.
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31174 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-16 21:03:46 +00:00
sigmund@google.com f809a49118 Add linter by default for polymer's pub-build, also cleans up the linter code.
Now that barback support listening for log messages, we can remove the logging
hooks we temporarily added in our linter.

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31110 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-12 21:04:19 +00:00
jmesserly@google.com 7d27c27ada fix linter on svg
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31108 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-12 20:42:12 +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
sigmund@google.com 3fa5cd90ae Fix != null bug (issue 14751)
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31038 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 21:06:00 +00:00
whesse@google.com 4a1c80cde0 Change polymer tests to use internal test_controller, not unittest/test_controller.
BUG=
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31021 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 15:33:49 +00:00
jmesserly@google.com 036d497ed5 work around for https://github.com/Polymer/TemplateBinding/issues/150
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31008 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 03:23:17 +00:00
rmacnak@google.com 9a5c770381 Remove use of deprecated mirror API from code that only runs against dart2js.
R=ahe@google.com, jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30902 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-05 17:52:42 +00:00
sethladd@google.com 0626ec4534 clarify that users of Polymer mixin have to call polymerCreated
BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30800 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-02 17:58:37 +00:00
jmesserly@google.com 94c2d48c6c [polymer.dart] fix *Changed observers inheriting.
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30561 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 03:04:25 +00:00
jmesserly@google.com 283c81ee64 "Reverting 30388"
This is a new TodoMVC based on Polymer's version, now fixed on IE. Also fixes two other bugs in how we were handling styles:
* scoped styles were broken unless browser supported them natively
* link rel=stylesheet for external styles was broken

(restore) https://code.google.com/p/dart/source/detail?r=30387
(revert) https://code.google.com/p/dart/source/detail?r=30388

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30554 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-21 23:10:50 +00:00
sigmund@google.com 2eb07c48c5 Fix resolution of packages in pub-build to allow '../../packages/foo/bar'
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30495 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-21 01:40:17 +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
jmesserly@google.com 9d6ecc1505 "Reverting 30387"
There are some issues on IE with pushState, Event.returnValue, and styles. Strangely, http://todomvc.com/architecture-examples/polymer/index.html which this was ported from has none of these issues. :|

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30388 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-19 05:16:12 +00:00
jmesserly@google.com 773917fa80 Update TodoMVC based on https://github.com/polymer/todomvc
Other than the TodoMVC changes, this has 2 polymer fixes:
* removes incorrect linter messages
* fix issue 12434 -- external stylesheets did not work

port is of d33386ccd4c84cb5b89391bd958e97c5de7c2a01

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30387 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-19 04:28:45 +00:00
rmacnak@google.com 08c253a629 Remove use of deprecated mirror functions from Polymer.
BUG=http://dartbug.com/14931
BUG=http://dartbug.com/14878
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30292 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-14 21:44:08 +00:00
sigmund@google.com eca75496b9 Filter only .html files in web, keep those in lib/. This is as a temporary
solution for dartbug.com/15038.  Once dartbug.com/14187 is fixed, we can remove
this extra check.

Note: because anything in lib/ is copied under build/packages/foo, I noticed
that the editor will not display any warnings there (they are considered the
same as warning from other packages). So even with this new filter, we still
achive our goal of keeping the build output warning free.

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30216 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-13 02:25:16 +00:00
sigmund@google.com 303e25eb32 Use logger for polymer loader warning
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30169 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-11 20:00:55 +00:00
sigmund@google.com fcb74c7a3f Add a build filter (only necessary HTML files are emitted) and logic to use .min.js by default, but keeps it disabled until the dart2js/mirrors bugs are addressed (dartbug.com/14720).
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30164 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-11 18:39:47 +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 d27c33b5b2 - Reverting mirror changes.
Review URL: https://codereview.chromium.org//61873007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30028 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 01:57:18 +00:00
rmacnak@google.com c3cf0dde46 Fix some users of removed mirror API.
R=gbracha@google.com, jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30016 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 00:24:53 +00:00
sigmund@google.com 260edd95ea Switch to new main semantics (fixes issue 14797)
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29870 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 01:51:58 +00:00
sigmund@google.com 0dec0a0694 Configure polymer transformers based on whether pub is running the build or
serve command.

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29710 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 22:27:44 +00:00
rnystrom@google.com 810915f01a Pass in "mode" to transformer plugins.
BUG=https://code.google.com/p/dart/issues/detail?id=14538
R=nweiz@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29690 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 20:04:27 +00:00
jmesserly@google.com ecb7314ef2 fix warning in polymer script_compactor
Review URL: https://codereview.chromium.org//53253004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29634 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 02:54:56 +00:00
jmesserly@google.com 489f51a41b fix barback and polymer build warnings
R=nweiz@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29631 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 02:41:01 +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 97d8be2f42 Fix builder.dart - avoid breaking users, print a warning instead and continue
with a default.

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29588 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 21:30:57 +00:00
sigmund@google.com 73d3885f63 Fixes to build.dart after Options() was removed
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29584 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 20:45:50 +00:00
whesse@google.com 40c7befb81 Remove uses of Options in polymer lint and deploy tools.
BUG=
R=sgjesse@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29569 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 17:44:08 +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
lrn@google.com 7a76ad7834 Add @proxy to annotations.dart.
Remove package:meta

R=bak@google.com, brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29525 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 10:25:08 +00:00
jmesserly@google.com c574e860ec polymer warning clean
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29505 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 00:48:07 +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
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
jmesserly@google.com 9c3dd5d2fd fix event logging
R=sethladd@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29414 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 06:07:32 +00:00
sigmund@google.com 3336d7d194 Inherit @published from base class (fix issue 13937)
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29412 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 03:40:47 +00:00
sigmund@google.com 2a8f2fd63f Return zone from initPolymer
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29410 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 02:54:48 +00:00
sigmund@google.com c70f1f7cf5 Build fixes: adds arguments to the pub-build plugin to configure whether 'js'
and 'csp' options. Ensure we can call main in the generated code (no need to
export init.dart anymore).

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29409 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 02:50:58 +00:00
sigmund@google.com ba1b2e34d6 Fix suggestions about using init.dart
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29336 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-27 23:50:56 +00:00
blois@google.com 18ea023a9d Fixes from polymer.dart API review
Primary breaking changes are:
 - polymer/platform.dart is removed
 - Rather than platform.flush, use scheduleMicrotask(Observable.dirtyCheck)
 - Rather than endOfMicrotask, use either scheduleMicrotask or Future.value
 - Polymer.job removed, use Timer instead (and upvote bug 14414 for timer.restart if you really want the job semantics)

This change is bringing up some really weird timing issues in the tests- I don't think any are inherent to the change itself but is more indicative of larger issues.

BUG=13666
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29311 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-26 16:33:25 +00:00
sigmund@google.com 68386823d1 Update polymer to commit b7200854b2441a22ce89f6563963f36c50f5150d
This brings over the changes to event dispatching.

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29303 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-26 00:42:21 +00:00