Commit Graph
4 Commits
Author SHA1 Message Date
Julian Descottes 6b7d986d94 Bug 1275081 - Part 2: Add inplace editor tests using mocked CSS property/values suggestions. r=tromey
In order to keep testing indexes & total number of displayed suggestions,
added two tests relying on mocked suggetions list.

The inplace-editor API has been modified to allow mocking the suggestions.

Helper methods in devtools/client/shared/test have been moved to a new
test helper helper_inplace_editor.js, loaded by all inplace-editor
tests of this test suite.

CLOSED TREE

MozReview-Commit-ID: LuXelKF0kY
2016-05-25 23:24:28 +02:00
J. Ryan Stinnett 530b903fcf Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey
For simple rules like function spacing, we can auto-fix these across the code
base so they are followed in a consistent way.

To generate this patch, I ran:

./mach eslint devtools --no-ignore --fix

After this, I reverted any changes to third party files that we really do want
to ignore.

MozReview-Commit-ID: 6Q8BApkAW20
2016-05-18 12:49:23 -05:00
Julian Descottes c02a0587ed Bug 1261827 - inplace-editor: copyTextStyles should not copy line-height property;r=pbro
Only text styles should be copied between the replaced element and the input.
Other styles are still copied between the input and the measurement element.

MozReview-Commit-ID: 7YSWtjLgH2z
2016-04-04 16:26:37 +02:00
Julian Descottes 2b8ac3a5ab Bug 1143742 - part2: multiline inplace-editor should support a maxWidth option;r=gl
The inplaceEditor now supports a maxWidth configuration option which can either
be a number or a method returning a number. This maxWidth will be applied to the
hidden element used in order to autosize the input.

MozReview-Commit-ID: JTiCQ3HK5bn
2016-03-31 00:59:16 +02:00