Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove whitespace when serializing operators in attribute selectors #17203
Conversation
highfive
commented
Jun 7, 2017
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @mbrubeck (or someone else) soon. |
|
From
|
|
You'll need to update the tests in components/selectors/parser.rs to be ok with spaces too. |
|
@bors-servo try |
Remove whitespace when serializing operators in attribute selectors <!-- Please describe your changes on the following line: --> --- <!-- 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 #17181. <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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/17203) <!-- Reviewable:end -->
|
|
|
@bors-servo try hm, infra |
|
Hey, sorry for the delay. I'm out of town right now and will get this fixed in the next few days. |
|
@jyc had fixes for the tests here, perhaps he can help take this over the finish line? |
|
Please rebase your changes instead of merging, (followed by a force-push) |
|
@bors-servo r+ |
|
|
Remove whitespace when serializing operators in attribute selectors <!-- Please describe your changes on the following line: --> --- <!-- 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 #17181. <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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/17203) <!-- Reviewable:end -->
|
|
|
|
Please apply the following patch after rebasing on to master: (Alternatively, use https://github.com/manishearth/servo/tree/pr-17203 or tick the "allow maintainers to push changes" box on this pull request) diff --git a/tests/wpt/metadata/selectors/attribute-selectors/attribute-case/cssom.html.ini b/tests/wpt/metadata/selectors/attribute-selectors/attribute-case/cssom.html.ini
index 4b2a69d..ed81ef0 100644
--- a/tests/wpt/metadata/selectors/attribute-selectors/attribute-case/cssom.html.ini
+++ b/tests/wpt/metadata/selectors/attribute-selectors/attribute-case/cssom.html.ini
@@ -1,65 +1,41 @@
[cssom.html]
type: testharness
- [[foo="bar"\] /* sanity check */ getting CSSRule#cssText]
- expected: FAIL
-
[[foo="bar"\] /* sanity check */ getting CSSStyleRule#selectorText]
expected: FAIL
[[foo="bar"\] /* sanity check */ setting CSSStyleRule#selectorText]
expected: FAIL
- [[foo="bar"\] /* sanity check */ getting CSSRule#cssText in @media]
- expected: FAIL
-
[[foo="bar"\] /* sanity check */ getting CSSStyleRule#selectorText in @media]
expected: FAIL
[[foo="bar"\] /* sanity check */ setting CSSStyleRule#selectorText in @media]
expected: FAIL
- [[foo="bar" i\] getting CSSRule#cssText]
- expected: FAIL
-
[[foo="bar" i\] getting CSSStyleRule#selectorText]
expected: FAIL
- [[foo="bar" i\] getting CSSRule#cssText in @media]
- expected: FAIL
-
[[foo="bar" i\] getting CSSStyleRule#selectorText in @media]
expected: FAIL
- [[foo="bar" /**/ i\] getting CSSRule#cssText]
- expected: FAIL
-
[[foo="bar" /**/ i\] getting CSSStyleRule#selectorText]
expected: FAIL
[[foo="bar" /**/ i\] setting CSSStyleRule#selectorText]
expected: FAIL
- [[foo="bar" /**/ i\] getting CSSRule#cssText in @media]
- expected: FAIL
-
[[foo="bar" /**/ i\] getting CSSStyleRule#selectorText in @media]
expected: FAIL
[[foo="bar" /**/ i\] setting CSSStyleRule#selectorText in @media]
expected: FAIL
- [[foo="bar"/**/i\] getting CSSRule#cssText]
- expected: FAIL
-
[[foo="bar"/**/i\] getting CSSStyleRule#selectorText]
expected: FAIL
[[foo="bar"/**/i\] setting CSSStyleRule#selectorText]
expected: FAIL
- [[foo="bar"/**/i\] getting CSSRule#cssText in @media]
- expected: FAIL
-
[[foo="bar"/**/i\] getting CSSStyleRule#selectorText in @media]
expected: FAIL
</details> |
|
@achiwhane Are you planning to address the previous comment? |
|
|
|
|
|
@bors-servo: r- |
|
|
|
Closing due to inactivity. |
achiwhane commentedJun 7, 2017
•
edited
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is