Commit Graph

1421 Commits

Author SHA1 Message Date
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 fdc29a9ed5 regenerate fixed custom_elements polyfill
fixes an issue in the previous package, it was missing MutationObservers which it expects included in the binary generated by Grunt.
This did not happen because the sources are pulled in from a relative path, rather than being included in the repository, and there was unfortunately no error issued.

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32263 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-03 21:52:24 +00:00
kevmoo@google.com d808a3ce93 pkg/unittest: renamed new test, marked as failing on dartium due to issue 13921
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32260 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-03 20:11:33 +00:00
sigurdm@google.com 797e38b133 Mark test as slow.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32246 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-03 14:23:30 +00:00
floitsch@google.com 8d666f47b9 Mark noscript_test as flaky.
Review URL: https://codereview.chromium.org//130913014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32229 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-01 01:38:26 +00:00
kevmoo@google.com 2c3153d6cb pkg/unittest fix status file post r32188
also fixed a test name

R=dgrove@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32198 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-31 16:19:13 +00:00
johnniwinther@google.com 7b52480b56 Align source mirrors with runtime mirrors.
BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32195 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-31 14:15:26 +00:00
jmesserly@google.com 77f39712b7 mark flaky ie9 tests
Review URL: https://codereview.chromium.org//151103002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32187 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-31 02:09:10 +00:00
sigmund@google.com fdc6d43083 Improve how we handle packages/ HTML imports. This improves resolution of URLs containing
"package/" under the web/ directory. Resolution under 'lib' is the same, but it and gives better suggestions if the path looks wrong. This summarizes what changed:

- source file: lib/b.html

  import to "packages/c/d.html" was error, now is error + suggestion
  import to "../packages/c/d.html" was error, now is error + suggestion
  import to "../../packages/c/d.html" was resolved, now is resolved too

- source file: lib/a/b.html

  import to "packages/c/d.html" was error, now is error + suggestion
  import to "../packages/c/d.html" was error, now is error + suggestion
  import to "../../packages/c/d.html" was error, now is error + suggestion
  import to "../../../packages/c/d.html" was resolved, now is resolved too

- source file: web/b.html

  import to "packages/c/d.html" was and continues to be resolved
  import to "../packages/c/d.html" was error, now is resolved

- source file: web/a/b.html

  import to "packages/c/d.html" was error, now is resolved
  import to "../packages/c/d.html" was and continues to be resolved
  import to "../../packages/c/d.html" was and continues to be resolved

Note: polymer-build and development mode are slightly different: polymer-build
detects and issues an error for bad paths inside lib/. These are not detected by
our package-resolution in loader.dart, but as long as users are not creating
symlinks by hand, Dartium should detect if the paths are wrong.

When we switch to start using pub-serve by default, we should be able to go back
to the web-ui style of using "package:" urls directly in HTML.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32170 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-30 20:51:28 +00:00
floitsch@google.com 9e6ec633f9 Mark collection/test/priority_queue_test as slow.
Review URL: https://codereview.chromium.org//149023003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32167 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-30 18:35:16 +00:00
ricow@google.com 57eb514346 Revert 32053 - this was already covered by revision 32041
The dartium failures is another test

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32066 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-28 12:22:30 +00:00
ricow@google.com fc6f39d6e9 Mark pkg/third_party/angular_tests/browser_test/core_dom/cookies as failing on dartium
This started failing after r32035

Filed issue 16354 to track this

R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32053 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-28 07:54:17 +00:00
scheglov@google.com b175f41369 Issue 16346. Ignore non-HTML template.
https://code.google.com/p/dart/issues/detail?id=16346

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32051 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-28 03:55:52 +00:00
blois@google.com 6cafb2cb2f Skipping dartanalyzer for Angular tests
Latest Angular bits appear to be crashing the analyzer.

CL which updated Angular is https://code.google.com/p/dart/source/detail?r=32035.

BUG=
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32041 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-27 23:26:41 +00:00
blois@google.com 2a4b069b1a Updating Angular version
We missed some Angular-breaking changes because the parser tests were marked as failing due to some known Angular/Dart1.1 incompatibilities, but those have been fixed in Angular. Updating to this version has the parser tests passing cleanly.

Only manual change was to the pkg.status file.

BUG=
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32035 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-27 22:27:53 +00:00
fschneider@google.com fb5e6077bd Undo workaround for a bug with compile-type of the context value.
I think this was fixed already with https://codereview.chromium.org/102053010/.

BUG=dartbug.com/15652
R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31885 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-16 14:13:24 +00:00
srdjan@google.com 95c0b631ce Skip timeouting test for simarm checked-mode.
R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31856 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-15 22:10:30 +00:00
nweiz@google.com ef19c6611d Take a broader approach to filtering out bogus Mac OS watcher events.
With luck, this should unflake the test.

R=rnystrom@google.com
BUG=16079

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31853 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-15 21:49:31 +00:00
ajohnsen@google.com a2e7f7a53c Reapply r31820 with a 'slow' status file marker.
BUG=16023
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31826 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-15 12:12:12 +00:00
ricow@google.com f00ed4ba58 Revert revision 31820
This is causing timeouts on docgen package test

Nathan: Please work with Anders/Florian to figure out what is wrong and how to correctly utilize the streams. I don't have enough domain knowledge to figure this out.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31821 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-15 08:28:10 +00:00
ricow@google.com 890f614f82 Fix scheduled stream usage of asBroadcastStream
This was causing tiemouts on the bots

BUG: 16023

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31820 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-15 07:52:24 +00:00
efortuna@google.com f3cae6f52b Adjust test status for multi_test_library.
BUG=
R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31796 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-14 18:58:42 +00:00
iposva@google.com b7ea8f1845 - Remove tests with timeout triggered when running the harness
with the VM.
- Mark flaky test.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31773 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-14 03:27:38 +00:00
alanknight@google.com 3d90cff43e Read Intl.message examples argument as a map, not a string
BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31749 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-13 17:58:43 +00:00
scheglov@google.com cf456d685b Translate index.
No tests yet.
I'll need some time to find out how to translate Mockito based tests to Dart.

R=brianwilkerson@google.com, devoncarew@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31729 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-13 01:12:17 +00:00
kevmoo@google.com 71d8ab2559 pkg/http: fixed analyzer warnings
R=nweiz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31726 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-11 01:56:51 +00:00
kevmoo@google.com 37b2d7173a pkg/unittest: add @proxy to Mock
Also: fixed analyzer errors

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31725 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-11 01:47:57 +00:00
blois@google.com 9dbf2f636c Enabling Angular tests on dart2js DRT, Dartium & VM
With the combined test and the 'slow' keyword, hopefully the dart2js compile times are under control.

BUG=15955
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31723 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-11 00:56:25 +00:00
blois@google.com 646b97ce6f Merging all of the Angular tests into a single file to cut down on dart2js compile times. Using htmlIndividualConfig to cut down on how many tests are run at a time and to fail individual tests.
Each individual test was taking ~28s locally to compile, now the entire combined test is taking about the same.

This is still disabled overall as the dart2js compilation times are still timing out.

BUG=
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31718 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-10 22:54:27 +00:00
nweiz@google.com 5bcf2c4379 Only expect the polling test to time out on the VM.
It won't time out on e.g. the analyzer.

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31716 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-10 22:11:56 +00:00
nweiz@google.com 2c7860874e Mark watcher/directory_watcher/polling_test as timing out.
R=rnystrom@google.com
BUG=16023

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31712 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-10 21:57:03 +00:00
nweiz@google.com ea8b5c598b Mark the polling directory watcher test as slow.
R=rnystrom@google.com
BUG=16023

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31708 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-10 21:22:26 +00:00
nweiz@google.com fb7ec85e6a Use stream matchers to unflake the mac OS watcher tests.
R=rnystrom@google.com
BUG=15024

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31705 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-10 20:36:33 +00:00
kevmoo@google.com 5fe1013ee4 resolved StaticWarning in http_server tests
R=pquitslund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31704 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-10 20:29:41 +00:00
kustermann@google.com 54b71bdbe2 Reaply "Use a real package-root for all of our samples (and tests inside a package) instead of buildDir/packages/"
R=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31694 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-10 15:15:37 +00:00
kustermann@google.com 8afb1d4844 Revert "Use a real package-root for all of our samples (and tests inside a package) instead of buildDir/packages/"
Review URL: https://codereview.chromium.org//130743005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31693 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-10 12:58:33 +00:00
kustermann@google.com 76e4bdeb0c Use a real package-root for all of our samples (and tests inside a package) instead of buildDir/packages/
For all tests that depend on other packages (e.g. samples) we can
 - use packages from pub.dartlang.org
 - use packages from pub.dartlang.org with overrides for the packages we have
   in the dart repository.

This CL does NOT include test-specific package-roots for dartium. Dartium will request a URL containing
"packages" when it encounters a package import. Our HTTP server will then serve from buildDir/packages.
This needs to change when we have test specific VMOptions for dartium.

For normal tests (without a pubspec.yaml on the path to dart/, we still use buildDir/packages).

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31691 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-10 12:29:55 +00:00
nweiz@google.com b356c28cae Fix an incorrect name in pkg.status for stream matcher tests.
R=rnystrom@google.com
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31640 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-09 00:54:12 +00:00
nweiz@google.com c100b07926 Mark scheduled_matcher_test as failing on the browser.
R=rnystrom@google.com
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31632 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-08 22:50:36 +00:00
kustermann@google.com fea1fe4570 Status file updates for PASSing tests
Review URL: https://codereview.chromium.org//127883002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31599 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-08 09:38:38 +00:00
blois@google.com fcfba211c3 Disabling Angular tests while some reliability issues get worked out
Tests are failing intermittently. Also tests are taking ~1min each to compile and appear to be slowing down the bots quite a bit.
BUG=
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31596 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-08 01:16:59 +00:00
blois@google.com fb63b6ba9f Disabling some Angular tests in unchecked mode.
The tests require checked mode (some of them have an explicit check for checked mode).

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31530 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 01:42:47 +00:00
blois@google.com ba857ec76f Disabling Angular tests on everything except for DRT
Appear to be a lot of browser-specific failures, our test matrix is different than Angulars. So will need to investigate & fix a bunch of them.
TBR
BUG=
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31529 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 01:07:29 +00:00
blois@google.com 9d8df56a98 Adding Shadow DOM polyfill to Angular tests
Some of the Angular tests require shadow dom, so adding the polyfill to all of the HTML tests.

Updated files are:
 - pkg/pkg.status
 - third_party/pkg/update_angular.sh

All others are auto-generated.

BUG=15929
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31527 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 00:43:48 +00:00
blois@google.com 3779e0770e Adjusting test status for Angular
Working on the proper fix, just changing expectations for now.

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31525 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 00:00:25 +00:00
blois@google.com 9e35fd81c3 Adding Angular and dependent packages for testing
This adds Angular tests to run in Dart's test suite.

Notes-
 - All files under pkg/third_party/angular_test are auto-generated by update_angular.sh
 - All files under third_party/pkg/angular are from Angular sources (with the exception of REVISION)

Modifed / Created files:
 - third_party/pkg/update_perf.sh
 - third_party/pkg/update_route_hierarchical.sh
 - third_party/pkg/update_perf.sh
 - third_party/pkg/update_all.sh
 - third_party/pkg/update_di.sh
 - third_party/pkg/update_js.sh
 - third_party/pkg/update_angular.sh
 - pkg/pkg.status

BUG=
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31518 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-06 23:09:58 +00:00
vsm@google.com 5e3937addf Changes for Chrome 32
Once we're ready to switch ... some paths have changed from 31.

R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31486 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-06 17:12:25 +00:00
lrn@google.com 047b32681d Create associated packages for the dart:collection and dart:async libs.
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31260 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 11:57:56 +00:00
ajohnsen@google.com 08f69d0284 Mark http_test as flaky, due to optimizing compiler.
BUG=
R=fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31163 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-16 14:58:11 +00:00
kustermann@google.com 3ad420f867 Followup status file update for polymer tests ie9 after fixing timeout issues
Review URL: https://codereview.chromium.org//99583010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31135 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-13 15:02:34 +00:00