Commit Graph

17 Commits

Author SHA1 Message Date
sigmund@google.com c4a107e9e6 Reapply change that makes path-observer more agressive with property lookups.
Additionally fixes template-iterator to be robust in the precense of these
errors.

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34456 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-26 23:04:21 +00:00
sigmund@google.com 3d15f6da40 Prevent more timeouts.
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34076 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-18 23:02:13 +00:00
sigmund@google.com 9699cfad20 Fix test timeouts. I forgot to include observe/mirrors_used.dart in tests from
other packages. They got big enough that dart2js times out.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33795 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-18 01:21:47 +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
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
jmesserly@google.com 7d71bc988d introduce web_components pkg to replace shadow_dom, html_import, custom_element. This new package is 100% compatible with the polyfills used by http://www.polymer-project.org/
Deletes:
  pkg/shadow_dom
  pkg/custom_element (except web_ui stuff)
  pkg/html_import

Adds:
  pkg/web_components, with README.md and build instructions

Changes:
  pkg/html5lib -- deprecate queryAll/query in favor of *Selector
  pkg/polymer -- test fixes & a few small changes to work with new polyfills, mostly in build
  tests/html/custom -- can't load the CE polyfill at runtime, must now be injected statically via an HTML page, similar to the style @blois used for some custom element tests.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32533 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-11 01:15:05 +00:00
jmesserly@google.com ae365d94aa big update to observe, template_binding, polymer
The biggest changes are in pkg:observe where we picked up a lot of optimizations to PathObserver/CompoundObserver.

template_binding gets one-time bindings, synchronous expansion, and lightweight "bindable" objects.

The tests are heavily refactored to use Future instead of the hacky observeTest/performMicrotaskCheckpoint pattern (I have been slowly changing the style for new tests, but observe-js made the change for all of them. yay!). Oh and the performMC stuff is gone from pkg:observe now.

There's also a new pkg:polymer feature for observation, which was ported so we are at a consistent baseline. (http://www.polymer-project.org/polymer.html#observeblock)

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32342 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-05 22:23:00 +00:00
jmesserly@google.com b6c4597563 attempt to reduce IE flakiness in template_bind_test
I think the issue is that IE9/10 don't have native mutation observers, so the timing of mutation observers isn't (necessarily) any faster than "new Future". What we do now is wait for the "option" to get expanded before trying to run the test.

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30646 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 21:49:54 +00:00
jmesserly@google.com faf0b24b95 load MutationObserver polyfill for IE
needed for the template_binding test

also adds to pubspec.yaml

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29861 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 00:01:32 +00:00
jmesserly@google.com d93ec94300 fix selected index binding to not count microtasks
https://code.google.com/p/dart/issues/detail?id=13968

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29851 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-04 22:10:48 +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
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
jmesserly@google.com 34085ccdb5 port Node.bind to bd0a0591920da9091b326627a46a104a92c7efe7
the first step to fix https://code.google.com/p/dart/issues/detail?id=13950

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29294 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 21:39:06 +00:00
jmesserly@google.com 0acc931fc4 port polymer data binding tests
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29139 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 00:59:31 +00:00
jmesserly@google.com bfab5f3693 remove type annotation from AttributeMapWrapper
for some reason dart2js doesn't like this
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29100 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 17:22:19 +00:00
jmesserly@google.com 72d5dcb0cd fix template_binding tests on safari/ie
TemplateElement is not supported on these platforms *

* in Polymer, the ShadowDOM polyfill takes care of this so it will work okay.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29059 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 03:59:22 +00:00
jmesserly@google.com 360ea42322 Rename mdv -> template_binding, remove experiemntal apis from dart:html
essentially, we trade off reduce dart:html API surface area for more annoying usage of these APIs. Since Polymer hides most of this, I suspect it won't be too annoying in practice.

Sample usage:

    nodeBind(node).bind(...)

    templateBind(node).model = ...;

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29057 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 02:11:49 +00:00