Commit Graph

3622 Commits

Author SHA1 Message Date
Kevin Schaaf
596b6901d1 Merge pull request #3413 from Polymer/style-fixes
Includes changes from a few style related PRs and adds more tests
2016-02-12 19:26:10 -08:00
Steve Orvell
55876ca2cf Merge pull request #3408 from Polymer/3063-kschaaf-extend-template
Ensure _propertySetter is installed first. Fixes #3063
2016-02-12 19:18:56 -08:00
Steven Orvell
7da9a38fcd fix lint errors 2016-02-12 19:16:17 -08:00
Steven Orvell
f2c1d4a5eb Minor fixes based on review. 2016-02-12 19:05:15 -08:00
Steven Orvell
f8289fec8c Merge branch 'master' into style-fixes
Conflicts:
	test/unit/styling-scoped-elements.html
	test/unit/styling-scoped.html

+ fix test on Safari that uses computed url style.
2016-02-12 17:50:02 -08:00
Steve Orvell
605e5fe24f Merge pull request #3406 from TimvdLippe/var-with-parenthesis
Fix parsing of parenthesis in default of variable declaration
2016-02-12 17:41:16 -08:00
Kevin Schaaf
b870fe0a7b Update comments. 2016-02-12 17:24:21 -08:00
Kevin Schaaf
d4b53b32a6 Merge pull request #3414 from Polymer/lint-tests
Lint the tests
2016-02-12 17:05:15 -08:00
Daniel Freedman
d81f6bc37a ordering issue for when assert is defined in native html imports 2016-02-12 12:39:39 -08:00
Daniel Freedman
e5063ca643 Lint the tests
Also, fix all the lint errors in the tests
2016-02-12 12:25:01 -08:00
Steven Orvell
5a493d84ad Add support for one-of attribute selector while not breaking support for general sibling combinator. Fixes #3023. Fix taken from #3067. 2016-02-12 11:42:59 -08:00
Kevin Schaaf
de039f8603 Merge pull request #3354 from kaste/patch-1
Fix: There is no effect of kind 'computedAnnotation'
2016-02-12 09:45:35 -08:00
Steve Orvell
a4cc272320 Merge pull request #3222 from nazar-pc/fix-for-scoping-empty-class
Fix for scoping when class is not specified on element
2016-02-11 12:44:05 -08:00
Daniel Freedman
1b5fc9acb7 [ci skip] move linting into before_script stage
If lint is in before_script, it will fail before running tests, which
is less confusing
2016-02-11 12:38:48 -08:00
Steven Orvell
c00c47f40e Fix lint error and uncomment test. 2016-02-11 12:36:32 -08:00
Steven Orvell
71c41ed62d Add test for overriding property based :host selector from outside. 2016-02-11 11:12:45 -08:00
Steven Orvell
b0e16f07a2 Add comment and fix typo 2016-02-11 10:46:01 -08:00
Steven Orvell
a61028ea49 Merge branch 'master' into style-fixes 2016-02-11 10:26:28 -08:00
Kevin Schaaf
6362f60095 Ensure _propertySetter is installed first. Fixes #3063 2016-02-10 18:02:04 -08:00
Tim van der Lippe
926d0e5274 Fix parsing of parenthesis in default of variable declaration 2016-02-10 23:47:52 +01:00
Daniel Freedman
441103159f Merge pull request #3382 from Polymer/eslint
Use ESLint for Polymer
2016-02-08 16:48:50 -08:00
Daniel Freedman
cd4259551d Rename _mapRule to _mapRuleOntoParent
Makes the function name much more explicit about its purpose
2016-02-08 16:39:35 -08:00
Daniel Freedman
10d200432e Merge branch 'master' into eslint 2016-02-08 14:42:02 -08:00
Daniel Freedman
acdfc1e097 Test with ESLint enabled
Fix linter errors
2016-02-08 14:04:17 -08:00
Steven Orvell
e2accaf1ef Merge branch 'master' into style-fixes 2016-02-05 17:17:37 -08:00
Steve Orvell
5215695e71 Merge pull request #3383 from Polymer/3288-kschaaf-attr-config-fix
Configure attr's with property effects. More robust fix for #3288.
2016-02-05 17:14:43 -08:00
Kevin Schaaf
a3641e29b0 Use deserialize from the node. 2016-02-05 17:06:40 -08:00
Daniel Freedman
d84d75be20 Actually execute case-map
This was missing from #3213
2016-02-05 17:02:14 -08:00
Daniel Freedman
040787c048 Merge pull request #3213 from TimvdLippe/fix-consecutive-uppercase-casemap
Add unit test suite for CaseMap
2016-02-05 16:48:39 -08:00
Daniel Freedman
2586ede5ac Merge pull request #3279 from nazar-pc/case-convertion-performance-improvement
Improved performance of Polymer.CaseMap.* functions
2016-02-05 16:48:15 -08:00
Daniel Freedman
c7554d9daa [ci skip] .eslintrc is deprecated, add .json suffix
`no-cond-assing: [2, "except-parens"]` is default, removing
2016-02-05 15:28:59 -08:00
herr kaste
db7c32491c Make the test more look like a spec 2016-02-05 23:28:47 +01:00
Kevin Schaaf
0f55d1dbe4 Configure attr's with property effects. More robust fix for #3288. 2016-02-05 12:46:54 -08:00
Daniel Freedman
f3c4bb1cd6 Use ESLint for Polymer
Modified version of #2600

- Ignores experimental and demo folders
- A few style tweaks
- Rename gulp task to `gulp lint`, and cause it to emit non-zero status
  for travis testing

Thanks to @fredj for the base PR
2016-02-05 12:08:01 -08:00
Daniel Freedman
d6e7033ac0 Merge branch 'eslint' of https://github.com/fredj/polymer into fredj-eslint 2016-02-05 10:58:41 -08:00
Tim van der Lippe
56df8f7346 Add test suite for effects order 2016-02-05 15:42:54 +01:00
Tim van der Lippe
ee9a60085b Add unit test suite for CaseMap 2016-02-05 14:14:55 +01:00
Steven Orvell
162f81ea0d Fixes for IE style ordering issue. 2016-02-04 19:03:28 -08:00
Steven Orvell
b5ba9a8219 Fixes #3326. Changes inspired by #3276 and #3344 2016-02-04 17:55:52 -08:00
Steve Orvell
9968266e74 Merge pull request #3163 from Polymer/allow-keyframe-style-transformation
Non-destructive `@keyframes` rule transformation.
2016-02-04 15:20:42 -08:00
Kevin Schaaf
473a1ee717 Merge pull request #2486 from mgiuffrida/patch-1
Allow newlines in computed binding argument list
2016-02-04 14:54:40 -08:00
Chris Joel
b9f2482eb5 Non-destructive @keyframes rule transformation.
Previously, the transformer did not disambiguate selectors in `@media`
blocks and keyframes in `@keyframes` blocks. Now, the transformer can
safely transform `@keyframes` blocks. Before a selector is transformed,
if the selector has a parent, it is checked. If the checked parent is a
`@keyframes` rule, the selector transformation is skipped.

Element-specific `@keyframes` are suffixed with the scoped element name.
For example, `@keyframes foo` in an element scoped with `x-el-0` will by
transformed to `@keyframes foo-x-el-0`. References to that animation in
the element's local styles will be updated as well.

Added tests for the new keyframes transformation.
2016-02-04 14:52:25 -08:00
Kevin Schaaf
a6d948553a Merge pull request #3373 from Polymer/filaraujo-feature/domTemplate
dom-template: parentProps should not override argument based props
2016-02-04 12:56:15 -08:00
Kevin Schaaf
eb70ea9731 Merge remote-tracking branch 'origin' into filaraujo-feature/domTemplate 2016-02-04 11:45:22 -08:00
Kevin Schaaf
e81145c114 Merge pull request #2291 from jakemac53/isDebouncerActive
make isDebouncerActive actually return a bool
2016-02-04 11:43:50 -08:00
Steve Orvell
c24355f789 Merge pull request #3374 from Polymer/3288-kschaaf-fix-regression
Fix test regression from PR 3289
2016-02-04 10:32:10 -08:00
Kevin Schaaf
5205d6ab1f Fix test regression from PR 3289 2016-02-04 10:30:56 -08:00
Kevin Schaaf
aeb44de787 Move test and add to runner. 2016-02-04 09:55:18 -08:00
Kevin Schaaf
d69ee9a35e Merge branch 'feature/domTemplate' of https://github.com/filaraujo/polymer into filaraujo-feature/domTemplate 2016-02-04 09:29:37 -08:00
Jacob MacDonald
dee9b981a8 make isDebouncerActive actually return a bool 2016-02-04 07:01:25 -08:00