Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for background shorthand parsing #14271

Merged
merged 1 commit into from Nov 19, 2016

Conversation

@linclark
Copy link
Contributor

linclark commented Nov 18, 2016

This PR adds tests for parsing the background shorthand.

Copies & adapts the tests from mask.rs (minus the mode test), and adds a test for comma separated declarations.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #13548 (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because they are tests

This change is Reviewable

@highfive
Copy link

highfive commented Nov 18, 2016

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @larsbergstrom (or someone else) soon.

@Manishearth
Copy link
Member

Manishearth commented Nov 18, 2016

r? @canaltinova

@bors-servo delegate=canaltinova

@bors-servo
Copy link
Contributor

bors-servo commented Nov 18, 2016

✌️ @canaltinova can now approve this pull request

@canova
Copy link
Member

canova commented Nov 18, 2016

Code looks good. Thanks for doing this!
@bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Nov 18, 2016

📌 Commit fdd8bf6 has been approved by canaltinova

use style::properties::longhands::{background_origin, background_position, background_repeat, background_size};
use style::properties::shorthands::background;
use style::stylesheets::Origin;
use url::Url;

This comment has been minimized.

Copy link
@Manishearth

Manishearth Nov 18, 2016

Member

This will have to be servo_url::ServoUrl (and youll have to replace occurrences of Url below with ServoUrl). URL handling for style was changed since you made this pull request, which is why Travis CI is failing.

Please rebase over master and make this change (let me know if you need help!)

@wafflespeanut
Copy link
Member

wafflespeanut commented Nov 18, 2016

So, the tests will fail anyway.

@bors-servo r-

@linclark linclark force-pushed the linclark:13548-bg-parsing-test branch from fdd8bf6 to 9f49da9 Nov 18, 2016
@linclark
Copy link
Contributor Author

linclark commented Nov 18, 2016

Ah, thanks for the pointer @Manishearth. Fixed and pushed

@canova
Copy link
Member

canova commented Nov 18, 2016

Oh right, I missed the new url. Thanks for pointing it @Manishearth!
@bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Nov 18, 2016

📌 Commit 9f49da9 has been approved by canaltinova

@bors-servo
Copy link
Contributor

bors-servo commented Nov 19, 2016

Testing commit 9f49da9 with merge 1956129...

bors-servo added a commit that referenced this pull request Nov 19, 2016
Add tests for background shorthand parsing

<!-- Please describe your changes on the following line: -->
This PR adds tests for parsing the background shorthand.

Copies & adapts the tests from mask.rs (minus  the mode test), and adds a test for comma separated declarations.

---
<!-- 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 #13548 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because they are tests

<!-- 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/14271)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 19, 2016

💔 Test failed - linux-rel-wpt

@highfive
Copy link

highfive commented Nov 19, 2016

  ▶ FAIL [expected PASS] /_mozilla/css/incremental_trailing_whitespace_a.html
  └   → /_mozilla/css/incremental_trailing_whitespace_a.html da54041086f2975f8e3c776d2283ad6609e6862a
/_mozilla/css/incremental_trailing_whitespace_ref.html f5d0147c8bddbdc772a7e5e86c7c9e433fcd486b
Testing da54041086f2975f8e3c776d2283ad6609e6862a == f5d0147c8bddbdc772a7e5e86c7c9e433fcd486b
@KiChjang
Copy link
Member

KiChjang commented Nov 19, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Nov 19, 2016

Testing commit 9f49da9 with merge 72ebb74...

bors-servo added a commit that referenced this pull request Nov 19, 2016
Add tests for background shorthand parsing

<!-- Please describe your changes on the following line: -->
This PR adds tests for parsing the background shorthand.

Copies & adapts the tests from mask.rs (minus  the mode test), and adds a test for comma separated declarations.

---
<!-- 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 #13548 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because they are tests

<!-- 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/14271)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 19, 2016

@bors-servo bors-servo merged commit 9f49da9 into servo:master Nov 19, 2016
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

8 participants
You can’t perform that action at this time.