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
--HG--
extra : transplant_source : %3F%003%24%88k%5CP%26%21%87I%BE%FE%DC%B4C%A9%91%BB
Rename document -> doc for consistency and parent to panel
for test compatibility.
MozReview-Commit-ID: KHT7plLtNQc
--HG--
extra : rebase_source : 3860dcef5daac2d4b2c4475043e85b7548b255a9
extra : intermediate-source : af95214eecb280ed4ad858ce6b62a3fe5d3f6a7f
extra : source : 887cbcaf18e70bc12a51b8dbdb1e9fe4aee44385
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
Add support for both syntax in CssColor
Add support in value increment
Edit several tests to make sure we handle these syntaxes all across the inspector (display swatch,
color increment, unit switching, …).
MozReview-Commit-ID: FLw9va3i8H0
--HG--
extra : transplant_source : m%24%C9%E1%EFQ%18%C3%0C%8F%C6%DB%E8%E5%D2%7D%A8c%5Bl
This patch was generated by the command:
find * -type f -exec sed -i -f ../mozpropsub {} \;
in the root of the repository, with the file ../mozpropsub containing:
s/-moz-padding-end\>/padding-inline-end/g
s/-moz-padding-start\>/padding-inline-start/g
s/-moz-margin-end\>/margin-inline-end/g
s/-moz-margin-start\>/margin-inline-start/g
s/-moz-border-end\>/border-inline-end/g
s/-moz-border-end-color\>/border-inline-end-color/g
s/-moz-border-end-style\>/border-inline-end-style/g
s/-moz-border-end-width\>/border-inline-end-width/g
s/-moz-border-start\>/border-inline-start/g
s/-moz-border-start-color\>/border-inline-start-color/g
s/-moz-border-start-style\>/border-inline-start-style/g
s/-moz-border-start-width\>/border-inline-start-width/g
s/\<MozPaddingEnd\>/paddingInlineEnd/g
s/\<MozPaddingStart\>/paddingInlineStart/g
s/\<MozMarginEnd\>/marginInlineEnd/g
s/\<MozMarginStart\>/marginInlineStart/g
s/\<MozBorderEnd\>/borderInlineEnd/g
s/\<MozBorderEndColor\>/borderInlineEndColor/g
s/\<MozBorderEndStyle\>/borderInlineEndStyle/g
s/\<MozBorderEndWidth\>/borderInlineEndWidth/g
s/\<MozBorderStart\>/borderInlineStart/g
s/\<MozBorderStartColor\>/borderInlineStartColor/g
s/\<MozBorderStartStyle\>/borderInlineStartStyle/g
s/\<MozBorderStartWidth\>/borderInlineStartWidth/g
The diffs for the following files:
layout/style/nsCSSPropAliasList.h
layout/style/test/property_database.js
layout/style/test/test_value_computation.html
were then manually removed from the patch.
MozReview-Commit-ID: 8fbYnlZcn9U
- StyleRuleActors now parse declarations and send them within the form
- Each declaration also contains isValid flag
- Parsing is still done client side for old backends (back compat)
- Declarations are sent with the form, so updated every time the rule changes
- Also made StyleRuleActors send the declarations array for element styles, and made canSetRuleText true for this, since we can simply set the style attribute
MozReview-Commit-ID: 2nI4bRyvwwi
--HG--
extra : rebase_source : 0ccfaeb0edb0b1a60a7c0d741295d61ad66ac57e