aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/style/parsing/basic_shape.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove testing feature from style crateManish Goregaokar2017-08-071-108/+0
|
* Refactor BorderRadius and move it to the border modulesAnthony Ramine2017-05-281-58/+0
| | | | BorderRadius now parses itself reusing Rect<T>.
* Use Rect in InsetRectAnthony Ramine2017-05-251-14/+9
|
* Refactor PositionAnthony Ramine2017-05-101-1/+1
| | | | | | | | | | | | | | | | | | A specified position is now a struct made of two values of different types, the first one being PositionComponent<X>, and the second one PositionComponent<Y>. A position component is represented by the new enum PositionComponent<Side>, with the three values Center, Length(LengthOrPercentage), and Side(Side, Option<LengthOrPercentage>). Side keywords are represented by the X and Y enums, which don't include a value for the center keyword anymore. They are accompanied by the Side trait, which allows us to determine whether a side keyword is "left" or "top". This refactor simplified the parsing and serialisation code and exposed bugs in it, where it would reject valid <position> values followed by arbitrary tokens, and where it would fail to prefer "left" to "right" when serialising positions in basic shapes.
* Centralize ParserContext for testsJ. Ryan Stinnett2017-04-141-4/+1
| | | | | | | To simplify adding additional data to `ParserContext`, this moves test usages to a few shared locations, instead of being spread across many tests. MozReview-Commit-ID: 1OahV797eq
* Pull rule_type into ParserContextJ. Ryan Stinnett2017-04-121-1/+1
| | | | | | | Absorb `rule_type` into the `ParserContext` so that it's easier to pass down to deeper levels of the parser. MozReview-Commit-ID: DjBNytLxGKX
* Auto merge of #15869 - Iakis:NegBordRad, r=Wafflespeanutbors-servo2017-03-091-0/+16
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reject negative border radius Replacerd Parse in parse_one_set_of_border_values with parse_non_negative and added tests for it --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X ] `./mach build -d` does not report any errors - [ X] `./mach test-tidy` does not report any errors - [X ] These changes fix #15345 (github issue number if applicable). <!-- Either: --> - [X ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15869) <!-- Reviewable:end -->
| * Fix and tests for negative border radius#2017-03-091-0/+16
| |
* | Invalid three value positions are no longer acceptedshubDhond2017-02-231-2/+1
|/
* fix #15492Alon Levy2017-02-121-0/+3
|
* Fix the unit tests to use contextRavi Shankar2016-11-271-3/+6
|
* Fix the unit tests to make use of local ToCssRavi Shankar2016-11-071-8/+9
|
* Tests for 3+ value positions in basic shapesManish Goregaokar2016-09-011-0/+13
|
* Handle specialized serialization of <position> in basic shapes (fixes #13083)Manish Goregaokar2016-09-011-5/+0
|
* Change parsing behavior and implement to_computed_value functionNazım Can Altınova2016-08-271-0/+4
|
* Handle clip-path in styloManish Goregaokar2016-08-191-0/+1
|
* Address review commentsManish Goregaokar2016-08-051-24/+24
|
* Add serialize_four_sides, use for serializing BorderRadiusManish Goregaokar2016-08-021-5/+45
|
* Add roundtrip parsing tests for basic_shape/positionManish Goregaokar2016-08-021-1/+97
|
* Remove unused importsManish Goregaokar2016-08-021-0/+3