Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(488)

Issue 29823005: fixes to polymer, gets tests back to a stable state (Closed)

Created:
7 years, 2 months ago by Jennifer Messerly
Modified:
7 years, 2 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

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 Committed: https://code.google.com/p/dart/source/detail?r=28956

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 36

Patch Set 4 : review changes #

Patch Set 5 : #

Patch Set 6 : remove defer #

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+436 lines, -184 lines) Patch
pkg/custom_element/lib/polyfill.dart View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
pkg/observe/lib/src/dirty_check.dart View 1 2 chunks +51 lines, -1 line 0 comments Download
pkg/observe/lib/transform.dart View 1 4 chunks +31 lines, -9 lines 0 comments Download
pkg/observe/test/transform_test.dart View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
pkg/pkg.status View 1 2 chunks +0 lines, -6 lines 0 comments Download
pkg/polymer/lib/builder.dart View 1 2 3 6 chunks +32 lines, -4 lines 0 comments Download
pkg/polymer/lib/deploy.dart View 1 4 chunks +19 lines, -6 lines 0 comments Download
pkg/polymer/lib/platform.dart View 1 1 chunk +2 lines, -4 lines 0 comments Download
pkg/polymer/lib/polymer.dart View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
pkg/polymer/lib/src/build/common.dart View 1 1 chunk +20 lines, -1 line 0 comments Download
pkg/polymer/lib/src/build/polyfill_injector.dart View 1 2 3 3 chunks +30 lines, -3 lines 0 comments Download
pkg/polymer/lib/src/declaration.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
pkg/polymer/lib/src/instance.dart View 1 2 6 chunks +19 lines, -18 lines 0 comments Download
pkg/polymer/lib/src/loader.dart View 1 2 3 1 chunk +29 lines, -17 lines 0 comments Download
pkg/polymer/test/attr_deserialize_test.dart View 1 chunk +2 lines, -0 lines 0 comments Download
pkg/polymer/test/attr_mustache_test.dart View 1 chunk +2 lines, -0 lines 0 comments Download
pkg/polymer/test/build/all_phases_test.dart View 1 4 chunks +4 lines, -12 lines 0 comments Download
pkg/polymer/test/build/polyfill_injector_test.dart View 1 3 chunks +16 lines, -3 lines 0 comments Download
M pkg/polymer/test/instance_attrs_test.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/polymer/test/prop_attr_reflection_test.dart View 1 4 chunks +60 lines, -58 lines 0 comments Download
M pkg/polymer/test/publish_attributes_test.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M samples/third_party/todomvc/test/listorder_test.dart View 1 2 3 2 chunks +24 lines, -17 lines 0 comments Download
M samples/third_party/todomvc/test/markdone_test.dart View 1 2 3 2 chunks +13 lines, -11 lines 0 comments Download
M samples/third_party/todomvc/web/editable_label.dart View 1 1 chunk +11 lines, -9 lines 0 comments Download
M samples/third_party/todomvc/web/todo_row.dart View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Jennifer Messerly
7 years, 2 months ago (2013-10-21 20:24:51 UTC) #1
Siggi Cherem (dart-lang)
this is looking really cool - mostly minor comments, and a couple questions, but overall ...
7 years, 2 months ago (2013-10-21 21:07:42 UTC) #2
blois
https://codereview.chromium.org/29823005/diff/50001/pkg/custom_element/lib/polyfill.dart File pkg/custom_element/lib/polyfill.dart (right): https://codereview.chromium.org/29823005/diff/50001/pkg/custom_element/lib/polyfill.dart#newcode38 pkg/custom_element/lib/polyfill.dart:38: return new js.JsObject.fromBrowserObject(document).hasProperty('register'); document.supportsRegister? https://codereview.chromium.org/29823005/diff/50001/pkg/polymer/lib/builder.dart File pkg/polymer/lib/builder.dart (right): https://codereview.chromium.org/29823005/diff/50001/pkg/polymer/lib/builder.dart#newcode272 ...
7 years, 2 months ago (2013-10-21 21:08:11 UTC) #3
Siggi Cherem (dart-lang)
https://codereview.chromium.org/29823005/diff/50001/pkg/polymer/lib/src/loader.dart File pkg/polymer/lib/src/loader.dart (right): https://codereview.chromium.org/29823005/diff/50001/pkg/polymer/lib/src/loader.dart#newcode37 pkg/polymer/lib/src/loader.dart:37: // this is run after all HTML imports are ...
7 years, 2 months ago (2013-10-21 21:10:24 UTC) #4
Siggi Cherem (dart-lang)
https://codereview.chromium.org/29823005/diff/50001/pkg/polymer/lib/builder.dart File pkg/polymer/lib/builder.dart (right): https://codereview.chromium.org/29823005/diff/50001/pkg/polymer/lib/builder.dart#newcode272 pkg/polymer/lib/builder.dart:272: * * `--no-js`: deploy replaces *.dart scripts with *.dart.js. ...
7 years, 2 months ago (2013-10-21 21:32:24 UTC) #5
Jennifer Messerly
https://codereview.chromium.org/29823005/diff/50001/pkg/custom_element/lib/polyfill.dart File pkg/custom_element/lib/polyfill.dart (right): https://codereview.chromium.org/29823005/diff/50001/pkg/custom_element/lib/polyfill.dart#newcode38 pkg/custom_element/lib/polyfill.dart:38: return new js.JsObject.fromBrowserObject(document).hasProperty('register'); On 2013/10/21 21:08:12, blois wrote: > ...
7 years, 2 months ago (2013-10-21 21:42:56 UTC) #6
blois
lgtm
7 years, 2 months ago (2013-10-21 21:47:29 UTC) #7
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/29823005/diff/50001/pkg/polymer/lib/src/loader.dart File pkg/polymer/lib/src/loader.dart (right): https://codereview.chromium.org/29823005/diff/50001/pkg/polymer/lib/src/loader.dart#newcode37 pkg/polymer/lib/src/loader.dart:37: // this is run after all HTML imports ...
7 years, 2 months ago (2013-10-21 21:48:03 UTC) #8
Jennifer Messerly
thanks! FYI "defer" was not needed, so I removed. I can't upload due to appengine ...
7 years, 2 months ago (2013-10-21 21:49:35 UTC) #9
Jennifer Messerly
7 years, 2 months ago (2013-10-21 21:50:11 UTC) #10
Message was sent while issue was closed.
Committed patchset #8 manually as r28956 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698