Commit Graph

25510 Commits

Author SHA1 Message Date
nweiz@google.com 9260e1620b Roll forward commits r33138, r33135, and r33134.
These commits were rolled back because r33134 exposed a case where barback was
able to deadlock. r33391 removed the root cause of the deadlock, so these
commits can be rolled forward again.

R=rnystrom@google.com
BUG=16612

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33400 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-06 22:28:10 +00:00
scheglov@google.com 151c4c3a7d Improved 'has' properties translation.
New analyzer snapshot.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33399 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-06 22:18:26 +00:00
jmesserly@google.com b218f342fd [polymer] interop with polymer-element and polymer.js
* let polymer.js register polymer-element
* let polymer.js bootstrap for polymer.dart
* hook polymer-element's register, if it's a Dart class go down the Dart code path

building polymer.concat.js (debug only) requires https://github.com/Polymer/polymer-dev/pull/9

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33398 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-06 22:04:20 +00:00
nweiz@google.com 8a8e27205e Move Barback to a more thoroughly push-based model.
This had a couple smaller ramifications:

* Instead of onDirty streams, most nodes now emit onDone streams that indicate
  when they have no more processing to do.

* AssetCascade was made more similar to other nodes; the BuildResult aggregation
  is now done entirely in PackageGraph.

R=rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33391 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-06 19:31:56 +00:00
kustermann@google.com 7e29f42833 Change tests to use test.py's test_controller.js, cleanup in browser_controller
This change makes all remaining tests use test.py's test_controller.js:
We have our own way of testing using test.py and that might change any time.
It's therefore not wise to rely on functionality in the unittest framework. If
we kept test_controller.js in the unittest package, we'd need to make a breaking
change whenever we change the behavior of test_controller.js. So this file was
forked into tools/testing/dart/test_controller.js.

After this, all our tests will use tools/testing/dart/test_controller.js. It is
therefore no longer necessary for the browser_controller to support the old
mechanism of posting back results. By removing this legacy code, we can ensure,
that the driving page of browser_controller will only react on valid messages
which were ment for it.
Context:
Some tests (e.g. dromaeo) might use postMessage internally, maybe even for
testing that postMessage is working. But the driving window should only react
on valid messages ment for it, ignoring any other messages.

R=blois@google.com, efortuna@google.com, ricow@google.com, whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33365 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-06 10:37:53 +00:00
kevmoo@google.com 86c9d79275 pkg/oauth2 bringing tests into 2014
R=nweiz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33357 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-06 00:13:44 +00:00
danrubel@google.com 9e21e89d95 gracefully degrade with response to client if fail to access client specified dart sdk
+ return response if client specifies inaccessible sdk
+ cleanup JSON encode/decode references
+ cleanup channel close processing

R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33355 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-05 23:30:45 +00:00
asiva@google.com a45d35263d Revert https://code.google.com/p/dart/source/detail?r=33346
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33353 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-05 23:17:06 +00:00
kevmoo@google.com e3c86256e7 pkg/unittest: much cleaner support for arbitrary args in expectAsync functions
remove calls to deprecated methods in tests
whitespace cleanup

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33346 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-05 21:41:40 +00:00
kevmoo@google.com a76de995b0 Adding 'preview' to typedef
Removed call to non-existent _moveDirectoryAndReplace
updated min scheduled_test version

R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33338 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-05 18:48:44 +00:00
danrubel@google.com dc1d6bcacf guard against invalid request id / method
BUG=
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33337 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-05 18:40:29 +00:00
danrubel@google.com 2231a169fd restructure client api to use streams
+ restructure client api to use streams for notifications and responses
+ client waits for server shutdown response
+ cleanup channel tests

R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33330 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-05 15:41:08 +00:00
scheglov@google.com 9d622fc1d9 Unroll 'synchronized {}' in java2dart.
...and corresponding 'analyzer' snapshot.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33318 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-05 02:30:21 +00:00
sigmund@google.com f85faddb7c More fixes for compact_vm_config. The previous CL handled prints that occurred
when tests are passing, I didn't catch the print statements that occur on test
failures.

BUG=
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33317 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-05 01:41:52 +00:00
nweiz@google.com 3ef00de5cd Use zones to capture unexpected errors in barback.
Rather than being extremely diligent about capturing and piping
asynchronous errors within barback, we can now rely on the zone API to
put all of them where they belong.

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33315 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-05 00:12:10 +00:00
sigmund@google.com 6fc637437f fix printing in compact vm config (this broke after the changes to make stdout
purely async (see dartbug.com/17269)

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33312 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-04 23:30:08 +00:00
scheglov@google.com 12558a8511 New analzyer snapshot.
Replace isInstanceOf() with a predicate.

Tweaks for other packages.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33304 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-04 21:50:40 +00:00
scheglov@google.com 1f8c20a04d Update and analyzer snapshot with AST -> Ast rename.
R=brianwilkerson@google.com, rnystrom@google.com, blois@google.com, karlklose@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33296 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-04 20:02:28 +00:00
alanknight@google.com 36ce3317fe Allow a single translation to be from multiple differently-named sources
BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33255 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-04 00:50:42 +00:00
scheglov@google.com 79e687be71 Add timing info for file IO into Dart based analyzer.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33191 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-01 19:47:36 +00:00
jmesserly@google.com 99a74be0f8 "Reverting 33183"
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33184 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-01 04:13:31 +00:00
jmesserly@google.com bde74b4050 [polymer] import all elements
Imports polymer-elements and polymer-ui-elements into (for now) the polymer package. This will allow us to begin to reuse the JavaScript custom elements.

Notes:

In an ideal world we would have some way of importing these straight from Bower, probably via Pub. However we don't have support for that.

It would also be nice to have separate Pub packages, at least for polymer-elements and polymer-ui-elements (the lovely Dart ports @ http://pub.dartlang.org/packages/polymer_elements follow this pattern). However that too depends on some kind of Pub+Bower integration, as they use (at least) the convention of "components/" for dependencies instead of "packages/" or "assets/".

So for now, we'll import them into package:polymer.

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33183 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-01 03:03:36 +00:00
kevmoo@google.com a8cc9f7b19 pkg/docgen: sort items in index.txt
Makes it easier to investigate diffs

R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33181 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-28 23:35:59 +00:00
jmesserly@google.com 94e8331759 [smoke] add homepage field to pubspec
[browser] use "author" instead of "authors" (the latter expects a list, I think)

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33180 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-28 23:26:20 +00:00
jmesserly@google.com 8e879d691e [pkgbuild tests] adjust status files
adjusts status to match new state of uploads

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33179 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-28 23:24:15 +00:00
jmesserly@google.com fdc39a2711 [polymer] update pubspecs to prepare for -pre.0 release
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33178 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-28 22:59:23 +00:00
scheglov@google.com 7f73657ad6 New analyzer snapshot.
No 'isInstanceOf' changes yet.
Just current state with changes required to adopt to the API changes in Java.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33176 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-28 22:52:15 +00:00
kevmoo@google.com ff045973cf pkg/unittest: changelog tweaks
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33173 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-28 22:22:45 +00:00
kevmoo@google.com 6e00b2d299 pkg/docgen: remove test print
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33170 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-28 20:37:08 +00:00
rnystrom@google.com 8e346de58b Support nested matchers in deep equality matching.
R=kevmoo@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33164 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-28 17:30:56 +00:00
blois@google.com 86f6fac791 Refactoring resolvers to make them able to be run in parallel.
With pub build and pub serve the same transformer can be run on the same asset in parallel. We want to maintain the cache between the runs, so making the resolver pipeline these requests.

In addition, refactoring to dramatically change the role of ResolverTransformer- previously it was a transformer that automatically kept the AST up to date, but this does not work well when in a pipeline of transformers that are generating or modifying code. What was ResolverTransformer is Resolvers- a cache of resolvers for which individual transformers now need to request the resolver from.

ResolverTransformer is now a mixin which can be used to automatically release a Resolver when it's done being used.

BUG=
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33163 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-28 16:58:18 +00:00
jmesserly@google.com 0a27306b5c [polymer] add bower files to import elements
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33147 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-28 03:06:49 +00:00
jmesserly@google.com 7b750888b2 [polymer] skip linter in tests
Arguably we should only be linting things reachable from deployment in deploy mode, but that's a bigger change.

Combined with the previous CL for inline scripts (https://codereview.chromium.org/180933002/) this is enough to import polymer's many HTML elements without causing tests to timeout/fail/run out of memory due to unnecessary scanning ~300 HTML files.

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33146 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-28 03:04:37 +00:00
jmesserly@google.com fd8b2caf4b [polymer] combine script extractor and import inliner
The goal is to ensure we aren't processing HTML files that aren't reachable from the entry point(s).

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33145 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-28 02:50:03 +00:00
nweiz@google.com 1e6b7a27bd Revert commits r33138, r33135, and r33134.
r33134 introduced bugs that require a reasonably substantial refactor, and the
other two built on top of it.

R=rnystrom@google.com
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33144 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-28 01:14:24 +00:00
danrubel@google.com 1af9a60950 (TBR) skip analysis server test on browser
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33140 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-27 23:07:48 +00:00
nweiz@google.com 6ff0a8e42d Add a dependency on collection to barback's pubspec.
R=rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33138 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-27 22:51:06 +00:00
nweiz@google.com 9a629d93b7 Split barback's transform_test into multiple smaller test files.
R=rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33135 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-27 22:13:27 +00:00
nweiz@google.com d11e95b5be Barback transforms now pass through the primary input by default.
R=rnystrom@google.com
BUG=16612

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33134 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-27 21:49:19 +00:00
jmesserly@google.com 8dc1cbbc3c [polymer] fix import inliner to only rewrite URL attributes once per node
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33133 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-27 21:23:40 +00:00
danrubel@google.com dbb20f6746 split client and server channels
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33131 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-27 20:23:37 +00:00
alanknight@google.com 7f492f387b Add 'meaning' to Intl.messages
BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33126 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-27 18:24:31 +00:00
ricow@google.com cfa7aa9f3e Remove unittest pkg suppression for repository packages
Review URL: https://codereview.chromium.org//178103003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33109 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-27 07:26:14 +00:00
sigmund@google.com e7b072aa72 Update platform.js to latest.
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33107 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-27 02:45:28 +00:00
nweiz@google.com e1417820f8 Bump the pkg/scheduled_test version to 0.10.0.
Also add a changelog.

BUG=17154
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33106 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-27 02:19:30 +00:00
alanknight@google.com efa247df26 Relax string literal requirements on arguments
BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33103 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-27 00:24:49 +00:00
blois@google.com 8cc2666896 Skipping Angular tests which are timing out in unchecked mode.
I was initially not repro'ing this in dart2js and only Dartium, but am now seeing them in dart2js as well. The issue appears to be rooted in Angular's new dirty checking- it's stuck in a loop.

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33097 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-26 22:25:49 +00:00
kevmoo@google.com 4ad14f8935 pkg/collection: fix version
updated unittest max version
removed unused import

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33090 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-26 21:22:22 +00:00
blois@google.com ce90d15398 Skipping Angular tests timing out on Dartium
The dirty checking test is a new one, but the ng_repeat test is existing (though something obviously changed on it).

Skipping while investigating what the issue is.

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33085 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-26 20:55:28 +00:00
nweiz@google.com 05cde44446 scheduled_test/unittest_compatibility_test is failing due to issue 7728.
R=rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33082 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-26 20:25:27 +00:00