Commit Graph

1035 Commits

Author SHA1 Message Date
Steven Orvell
d64a9c27e5 Do lazy behavior copying only when legacyOptimizations is set 2018-11-09 18:48:48 -08:00
Steven Orvell
310c7ead07 Behavior property copying fixes
* ensure element has `is` on prototype early as this is sometimes checked in user code.
* ensure properties copied onto elements from info/behaviors are forced to configurable so they can be re-configured by later behaviors.
* add `_noAccessors` optimization for faster property copying
2018-11-09 18:18:06 -08:00
Steven Orvell
65a3149b8c Ensure initial static classes are preserved when a class$ binding is present
This ensures ShadyCSS scoping classes are not removed when a class binding's initial literal value is set.
2018-11-09 18:03:55 -08:00
Steven Orvell
cf30a8cc35 Avoid copying certain properties from behaviors
This better matches what Polymer 1.x did for:
* hostAttributes
* listeners
* properties
* observers
2018-11-09 11:31:35 -08:00
Daniel Freedman
e00bf99326 skip some tests that never really worked in ShadyDOM 2018-11-07 15:40:07 -08:00
Daniel Freedman
ec00d26b58 Move __activateDir into check instead of replace
Remove unused imports in testing
2018-11-07 15:21:06 -08:00
Steven Orvell
d5e0043abc Manually merge changes from #5418 2018-11-06 15:59:23 -08:00
Kevin Schaaf
6dd3456940 Apply LegacyDataMixin to TemplatizeInstanceBase. Fixes #5422 2018-11-01 23:15:56 -07:00
Steven Orvell
926a673556 Fixes #5420
This branch actually fixes this issue. A behavior specified template should win over a template specified via a dom-module. Updating the test here, which was validating the wrong result.
2018-11-01 16:02:18 -07:00
Steven Orvell
a08c9840d6 Updates ported from perf-opt branch
Merging manually from https://github.com/Polymer/polymer/pull/5418.
2018-10-31 19:21:04 -07:00
Steven Orvell
b211436f48 rename test file. 2018-10-31 18:16:42 -07:00
Steven Orvell
e752636cb7 Adds basic legacy support for ShadyDOM.unPatch (WIP)
* Polymer.dom uses ShadyDOM.wrap
* LegacyElementMixin _attachDOM uses ShadyDOM.wrap
2018-10-26 15:13:56 -07:00
Serhii Kulykov
448093b6dc Cleanup modulizer conversion leftovers (#5347) 2018-09-06 11:07:57 +01:00
Kevin Schaaf
c3912b9962 Merge branch 'master' into 5262-kschaaf-legacy-undefined-3.x 2018-08-27 17:30:54 -07:00
Kevin Schaaf
7a67e34d90 Merge pull request #5317 from Polymer/export-version
Export the current Polymer version in polymer-element.js
2018-08-27 14:30:49 -07:00
Kevin Schaaf
ae1b4173b0 Updates based on code review. Add computed tests. 2018-08-24 11:45:33 -07:00
Kevin Schaaf
e385e49b40 Add legacy-data-mixin as 1.x->2.x/3.x migration aide. Fixes #5262. 2018-08-21 10:53:48 -07:00
Kevin Schaaf
589ee496a9 Merge pull request #5304 from Polymer/strict-template-policy
[3.x] Introduce strictTemplatePolicy
2018-08-14 14:27:31 -07:00
Tim van der Lippe
2957e9d4b8 Move version to ElementMixin prototype 2018-08-14 12:44:33 +02:00
Alexander Marks
7644464cae Add test for direct assignment to template. 2018-08-10 13:14:55 -07:00
Steve Orvell
59405b57b3 Merge pull request #5261 from Polymer/double-properties-invocation
Ensure properties is only invoked once
2018-08-03 14:10:54 -07:00
Tomek Wytrębowicz
db2f3cc71c Make event notification handler read the value from currentTarget, (#5313)
instead of target which may not be bound to any data.

Fixes https://github.com/Polymer/polymer/issues/5308
2018-08-02 13:14:36 +02:00
Tim van der Lippe
9576bef4d9 Merge branch 'master' into double-properties-invocation 2018-08-02 11:22:34 +02:00
Kevin Schaaf
c4b94a02d1 Revert to legacy template getter, update tests. 2018-07-24 11:48:02 -07:00
Kevin Schaaf
376f44c4d2 More updates based on code review. 2018-07-23 22:48:25 -07:00
Kevin Schaaf
36c4dfa99f Updates based on code review. 2018-07-20 20:33:02 -07:00
Kevin Schaaf
a0c5268c9b Fix lint warnings. 2018-07-18 10:02:46 -07:00
Kevin Schaaf
47ade191de Catch errors on top window using uncaughtErrorFilter
Works around safari quirk when running in iframe
2018-07-17 17:42:47 -07:00
Kevin Schaaf
8667b8955a Use setting via setStrictTemplatePolicy export. 2018-07-17 17:42:46 -07:00
Kevin Schaaf
625372ea8c Add tests. 2018-07-17 17:42:46 -07:00
Kevin Schaaf
a78732ffe7 Extend Safari exceptions beyond 10.1 2018-07-12 17:57:34 -07:00
Kevin Schaaf
b1aa3058ca Ignore shady CSS scoping in getComposedHTML 2018-07-11 12:25:26 -07:00
Tim van der Lippe
84455c9ceb Fix method to force CE polyfill on in 3.x 2018-06-28 12:45:47 +02:00
Tim van der Lippe
63c7fc0026 Ensure properties is only called once 2018-06-16 14:06:58 +02:00
Tim van der Lippe
617cb4c995 Remove dom-module in test 2018-06-16 13:59:40 +02:00
Daniel Freedman
44e725b851 fix lint 2018-05-14 17:44:34 -07:00
Daniel Freedman
358a1c6708 Port disabled fixes from 2.x
Related to #5190
Port of #5230 to 3.x
2018-05-14 17:37:43 -07:00
Kevin Schaaf
ecf36f8ac8 Fix lint warning 2018-05-08 15:31:16 -07:00
Steve Orvell
4f3be61eb5 Merge pull request #5222 from Polymer/3.x-remove-template-strings
Removing support for returning strings from template getter.
2018-05-08 13:02:27 -07:00
Kevin Schaaf
ba4491d558 Removing support for returning strings from template getter.
(Per previous documented deprecation: https://www.polymer-project.org/2.0/docs/devguide/dom-template#templateobject)
2018-05-08 12:29:01 -07:00
Tim van der Lippe
eb72d5aabc Add serve command to package.json and update package-lock.json 2018-05-06 15:17:30 +02:00
Kevin Schaaf
8527886093 Exclude all Edge versions from keyframe/font tests. 2018-05-04 09:45:44 -07:00
Kevin Schaaf
90946038af Merge branch '3.x' into 3.x-linter-warnings 2018-04-30 15:07:25 -07:00
Steven Orvell
a11febe7d7 Fix test typo on Chrome 2018-04-30 12:10:00 -07:00
Steven Orvell
8b5803c293 Fixes IE11 test issues
Use <template>.innerHTML when adding test elements to main document. Works around a template polyfill issue (https://github.com/webcomponents/template/issues/40) by setting innerHTML on a <template> element so that inner templates are correctly updated.
2018-04-30 10:55:18 -07:00
Steven Orvell
26747422d3 Fixes styling tests related to using HTML Imports
* [styling-scoped.html] remove test for <link rel="import" type="css"> as this is no longer supported
* [custom-style-async.html] convert test that used importHref to use dynamic import
2018-04-26 17:18:07 -07:00
Steven Orvell
a4d80d0929 Update to webcomponents 2.0.0 and webcomponents-bundle.js 2018-04-26 15:43:17 -07:00
Tim van der Lippe
268313d148 Merge branch '3.x-tests' into 3.x-linter-warnings 2018-04-26 12:19:51 +02:00
Kevin Schaaf
bff03b2d7f Fix meaningful whitespace in test assertion 2018-04-23 22:43:37 -07:00
Kevin Schaaf
3f24f71d06 Fix latent mistake using old SD API 2018-04-23 22:24:21 -07:00