blois@google.com
edf9910602
Re-apply "Adding a mechanism to 'upgrade' the Dart type of elements"
...
With fixes for:
- Expected analyzer static error in the unittest.
- Added browser/interop.js to the HTML file
BUG=
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//224113003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35080 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-15 20:50:46 +00:00
kevmoo@google.com
0300517879
Tests: remove usage of interop.js
...
R=sigmund@google.com
Review URL: https://codereview.chromium.org//233063005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34957 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-11 01:18:32 +00:00
blois@google.com
b4a3e6ced6
Revert "Adding a mechanism to 'upgrade' the Dart type of elements"
...
This reverts commit 34615 because it's breaking some bots (not sure why).
TBR
BUG=
Review URL: https://codereview.chromium.org//220403008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34622 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-01 22:59:54 +00:00
blois@google.com
0e64dc971c
Adding a mechanism to 'upgrade' the Dart type of elements
...
This is to allow custom Dart wrappers for Polymer elements to provide improved JS custom element integration.
The Dartium portion of this is at https://codereview.chromium.org/188083002
BUG=
R=jmesserly@google.com , sra@google.com
Review URL: https://codereview.chromium.org//177113014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34615 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-01 20:17:31 +00:00
johnniwinther@google.com
cc574e5db6
Add regression test for CL 194523002
...
BUG=
R=floitsch@google.com
Review URL: https://codereview.chromium.org//214443002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34470 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-27 13:15:27 +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
blois@google.com
22b82a2e29
Updating custom element wrapper test
...
Behavior has changed since custom elements are no longer being upgraded when in templates.
BUG=16656
R=vsm@google.com
Review URL: https://codereview.chromium.org//151563006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32607 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-12 17:24:11 +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
blois@google.com
8a68b71569
Adding @MirrorsUsed to html/custom/mirrors test
...
This is to cut down on dart2js compilation time, try to speed the test up some.
TBR
BUG=
Review URL: https://codereview.chromium.org//134623007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31728 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-11 02:20:05 +00:00
jmesserly@google.com
20b120eba2
Fix for dart2js mirrors caching with custom elements
...
Custom elements code is from https://github.com/dart-lang/CustomElements/pull/4
R=sigmund@google.com
Review URL: https://codereview.chromium.org//112613003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31296 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 19:55:57 +00:00
jmesserly@google.com
d700bba3e4
fix custom elements that extend tags like "section"
...
Some tags don't have their own HTMLElement subclass (because they lack unique DOM properties), but it should still be possible to extend them.
R=blois@google.com
Review URL: https://codereview.chromium.org//90113002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30833 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-03 23:46:43 +00:00
regis@google.com
7b18b7c4ff
Second attempt at fixing html test.
...
I really have no idea what I am doing here, but the test now passes.
Dartium folks, please have a look.
Review URL: https://codereview.chromium.org//59883004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29940 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 21:53:22 +00:00
regis@google.com
43d64b38f8
Fix typo in html test.
...
Review URL: https://codereview.chromium.org//59843006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29936 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 21:08:25 +00:00
blois@google.com
c49df8bd12
Commenting out template_wrappers test while investigating crashes
...
TBR
BUG=
Review URL: https://codereview.chromium.org//55503002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29714 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 22:53:47 +00:00
blois@google.com
4525b95f8e
Adding test for old wrappers causing multiple upgrades
...
This is the test for https://codereview.chromium.org/54833003/
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//55153002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29704 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 21:16:23 +00:00
blois@google.com
39733ff298
Removing window.console.log from js_custom_test
...
IE does not declare window.console when debugger is not open.
TBR
BUG=
Review URL: https://codereview.chromium.org//47073010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29625 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 01:48:08 +00:00
blois@google.com
366b2364da
Tests for premature GC of custom elements within template contents
...
BUG=14483
R=vsm@google.com
Review URL: https://codereview.chromium.org//49673003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29612 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 00:29:22 +00:00
blois@google.com
02d745044d
Adding tests for accessing custom elements from alternate script contexts
...
BUG=14597
R=vsm@google.com
Review URL: https://codereview.chromium.org//52913003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29591 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 21:46:03 +00:00
blois@google.com
c1a11e55d5
Adding validation that Custom element constructor has zero args
...
BUG=13800
R=vsm@google.com
Review URL: https://codereview.chromium.org//30283002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29011 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 17:20:46 +00:00
blois@google.com
980834fe33
Validating that types which require extendsTag actually provide it
...
BUG=14292
R=vsm@google.com
Review URL: https://codereview.chromium.org//32703006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29004 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 16:14:17 +00:00
efortuna@google.com
8e4205db3a
Reapply remove upgradeCustomElement methods.
...
BUG=
R=blois@google.com
Review URL: https://codereview.chromium.org//33593003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28960 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 21:55:40 +00:00
efortuna@google.com
37989cf2ce
"Reverting 28947"
...
TBR
BUG=
Review URL: https://codereview.chromium.org//33643002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28949 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 20:48:18 +00:00
efortuna@google.com
3a4a3ba95f
Remove Platform.upgrateCustomElements.
...
BUG=
R=blois@google.com
Review URL: https://codereview.chromium.org//31993005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28947 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 20:21:28 +00:00
blois@google.com
e7aef33a2c
Fixing custom element type extensions in Dartium to have correct native type ID
...
This is in support of the recent change to write the native type ID to the Dart wrappers
Dart changes for https://codereview.chromium.org/27769002/
BUG=14190
R=vsm@google.com
Review URL: https://codereview.chromium.org//29033003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28899 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-18 23:43:45 +00:00
blois@google.com
e3b35dabb6
Renaming Node.document back to Node.ownerDocument
...
With custom elements, the document instance variable creates an odd conflict with the document global.
BUG=14099
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//27602002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28810 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 17:55:38 +00:00
blois@google.com
ceb07acde3
Fixing status of document.register test for dart2js tests
...
I added this test for Dartium, but it's failing on dart2js.
TBR
BUG=
Review URL: https://codereview.chromium.org//27220003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28606 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-14 19:45:07 +00:00
blois@google.com
5a06040888
Dart changes for https://codereview.chromium.org/26571005/
...
Ensuring that custom elements have correct super classes.
BUG=
Review URL: https://codereview.chromium.org//27222003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28603 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-14 19:29:42 +00:00
blois@google.com
6d3acc0175
Test fixes for CustomElement upgrade changes
...
This is the Dart portion of https://codereview.chromium.org/27183006
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//26700003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28598 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-14 18:38:28 +00:00
blois@google.com
c2f5471669
Removing Element.createdCallback
...
This was a placeholder for before dart2js converted to the constructor, can now be removed.
BUG=
R=sra@google.com
Review URL: https://codereview.chromium.org//26592009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28465 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-10 16:59:19 +00:00
blois@google.com
108dec86bd
Fixing Node.clone not returning upgraded custom elements.
...
This was an issue for Polymer as the templates are cloned with shallow clones.
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//25719003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28363 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-08 16:02:49 +00:00
blois@google.com
c6b1d91f34
Implementing custom element's attributeChanged callback in Dartium
...
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//25793002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28232 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 17:37:51 +00:00
blois@google.com
05bb03642d
Implementing CustomElement's attributeChanged callback in dart2js.
...
BUG=
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//25325004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28168 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-02 15:57:56 +00:00
blois@google.com
c71f315c8d
Fixing analyzer issues in tests.
...
BUG=
Review URL: https://codereview.chromium.org//25614002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28124 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 22:01:25 +00:00
blois@google.com
1aa8a7be0e
Adding Element.created constructor and .created constructors to all subclasses. Also ensuring generative constructor for all superclasses.
...
This is for post-construction custom element creation.
Element.created is public, then the base classes of that get private ._created constructors.
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//24653006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28120 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 21:26:06 +00:00
blois@google.com
5eed34b47d
Running entered & left view events in Dartium
...
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//24623003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28023 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 19:48:53 +00:00
blois@google.com
354c4dd5ad
Revert "Revert "Start of dartium custom element lifecycle event support.""
...
Primary changes are that a fast-path has been added for the single-argument Document.createElement and the systemnative.py changes were split out to CL https://codereview.chromium.org/24661002/ .
This is dependent on https://codereview.chromium.org/24677002/
First patch is the original, second is the updates.
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//24491003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27921 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 23:15:09 +00:00
blois@google.com
3fd115d5e3
Revert "Start of dartium custom element lifecycle event support."
...
This reverts commit 27718 to see if it gets performance back down.
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//24479002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27897 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 17:56:53 +00:00
blois@google.com
209e413a5c
Retry of custom element lifecycle events.
...
First patch is the original, changes were:
- Shadow DOM upgrade landed as separate CL
- CustomElement polyfill wasn't always firing WebComponentsLoaded event (causing timeouts on FF and IE), fixed polyfill.
- Dartium test exclusions were not working
BUG=
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//23498053
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27841 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 19:14:16 +00:00
blois@google.com
6def065afd
Revert "Dart2js support for custom element lifecycle events"
...
This reverts commit 27729. Shadow DOM polyfill appears to have regressed some tests and some issues are coming up with the browser controller.
BUG=
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//24251016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27730 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-21 00:46:48 +00:00
blois@google.com
fb8f32bcc4
Dart2js support for custom element lifecycle events
...
BUG=
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//24096027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27729 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-20 23:49:12 +00:00
blois@google.com
34f58a8209
Start of dartium custom element lifecycle event support.
...
These are the Dart repo changes paired with https://codereview.chromium.org/24294002/
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//23817006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27718 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-20 18:40:11 +00:00
blois@google.com
d312cbbd08
Exposing document.createElement
...
As part of removing all $dom_ APIs, making this one public. There are valid scenarios for creating elements in other documents.
BUG=
R=efortuna@google.com
Review URL: https://codereview.chromium.org//24084004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27415 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-12 00:00:39 +00:00
blois@google.com
fbc6cd91aa
Updating Dartium status and IE9 status
...
Dartium tests started passing because changes for polyfill triggered expected behavior for Dartium, even though the bug is still active.
Updated tests for some IE9 expectations, but still failing and needs further investigation.
TBR
BUG=
Review URL: https://codereview.chromium.org//23513029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27321 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-09 23:34:38 +00:00
blois@google.com
b904bf81ba
Revert "Revert "Tag extensions""
...
Original CL is the first patch, changes follow. Includes fixes for Chrome test failures and Firefox type check issues.
BUG=
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//23442011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27313 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-09 22:03:43 +00:00
blois@google.com
6570db562c
Revert "Basic functionality is working with JS native support and polyfill, still some issues with dart2js typechecking."
...
This reverts commit r26935. Failing in FF checked on type extension and IE9 on synchronous constructor upgrading, need to investigate.
TBR
BUG=
Review URL: https://codereview.chromium.org//23567006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26938 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 19:37:23 +00:00
blois@google.com
5607d75eca
Basic functionality is working with JS native support and polyfill, still some issues with dart2js typechecking.
...
BUG=
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//23190026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26935 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 19:08:19 +00:00
blois@google.com
38047d896e
Fixing custom/created_callback test for Safe HTML
...
TBR
BUG=
Review URL: https://codereview.chromium.org//23495005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26762 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-28 02:49:47 +00:00
blois@google.com
93c361dd36
This is an updated version of https://codereview.chromium.org/16374007/
...
Original submission is the first patch, fixes are the second.
There were two issues with the original-
- Issue with URI sanitization where relative URIs on IE were being dropped.
- Analyzer issue on missing members for CustomElement.
BUG=
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//23525003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26757 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-28 01:03:01 +00:00
blois@google.com
a85f2a8d4c
Changing onCreated callback to created.
...
Brings it in-line with the browser's createdCallback and Polymer's created. Avoid conflict with event names.
Dartium changes are https://codereview.chromium.org/23494005
BUG=
R=jacobr@google.com
Review URL: https://codereview.chromium.org//23451006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26754 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 23:51:42 +00:00
blois@google.com
24e9f22c90
Revert "First rev of Safe DOM"
...
This reverts commit 26681.
Some IE issues with URL validation that I need to investigate further.
BUG=
Review URL: https://codereview.chromium.org//23523002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26682 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 02:18:48 +00:00