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

Replacing Node.rootNode for Node.getRootNode. #13703

Merged
merged 1 commit into from Oct 14, 2016
Merged

Conversation

@Rafagd
Copy link
Contributor

Rafagd commented Oct 11, 2016

  • Changed the specification for the Node element to reflect the new standard.
  • Changed the implementation of the NodeMethod.

I'm still waiting for some answers for the questions I've posted on #13699, but I'm already doing the pull request so I can get some feedback as well.


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

This change is Reviewable

@highfive
Copy link

highfive commented Oct 11, 2016

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.

@highfive
Copy link

highfive commented Oct 11, 2016

Heads up! This PR modifies the following files:

  • @KiChjang: components/script/dom/node.rs, components/script/dom/webidls/Node.webidl
@highfive
Copy link

highfive commented Oct 11, 2016

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
[Pure]
readonly attribute Node rootNode;
Node getRootNode(optional GetRootNodeOptions options);

This comment has been minimized.

@Ms2ger

Ms2ger Oct 13, 2016

Contributor

I would prefer if you declared this as Node getRootNode();, without the argument. That makes it more obvious that the argument is not implemented yet.

This comment has been minimized.

@Rafagd

Rafagd Oct 13, 2016

Author Contributor

I've removed the optional argument.

@Ms2ger
Copy link
Contributor

Ms2ger commented Oct 13, 2016

Code looks good, but I expect we'll need to update some test expectations.

@bors-servo try

@bors-servo
Copy link
Contributor

bors-servo commented Oct 13, 2016

Trying commit 7b68746 with merge 3da821c...

bors-servo added a commit that referenced this pull request Oct 13, 2016
Replacing Node.rootNode for Node.getRootNode.

- Changed the specification for the Node element to reflect the new standard.
- Changed the implementation of the NodeMethod.

I'm still waiting for some answers for the questions I've posted on #13699, but I'm already doing the pull request so I can get some feedback as well.

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

bors-servo commented Oct 13, 2016

💔 Test failed - mac-rel-wpt1

@Rafagd
Copy link
Contributor Author

Rafagd commented Oct 13, 2016

@Ms2ger Is there a way for me to only run the failed tests?

@KiChjang
Copy link
Member

KiChjang commented Oct 13, 2016

@Rafagd You need to update the test expectations located in tests/wpt/metadata/dom/interfaces.html.ini and tests/wpt/metadata/dom/nodes/rootNode.html and tests/wpt/metadata/dom/historical.html.

@Rafagd
Copy link
Contributor Author

Rafagd commented Oct 13, 2016

Oh, now I get it. Working on it.

Copy link
Member

KiChjang left a comment

By default, all tests are expected to PASS. You can simply remove the lines of code where it's expected to FAIL instead of changing them to PASS.

@KiChjang
Copy link
Member

KiChjang commented Oct 13, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Oct 13, 2016

Trying commit 00dca6c with merge 9d408f4...

bors-servo added a commit that referenced this pull request Oct 13, 2016
Replacing Node.rootNode for Node.getRootNode.

- Changed the specification for the Node element to reflect the new standard.
- Changed the implementation of the NodeMethod.

I'm still waiting for some answers for the questions I've posted on #13699, but I'm already doing the pull request so I can get some feedback as well.

---
<!-- 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 #13699 (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/13703)
<!-- Reviewable:end -->
@Rafagd
Copy link
Contributor Author

Rafagd commented Oct 13, 2016

@KiChjang I'm removing the PASS tests now

@Rafagd
Copy link
Contributor Author

Rafagd commented Oct 13, 2016

@KiChjang I suppose I can remove those 2 files that only have the lines below, right?

[rootNode.html] type: testharness

@KiChjang
Copy link
Member

KiChjang commented Oct 13, 2016

Yes.

@KiChjang
Copy link
Member

KiChjang commented Oct 13, 2016

bors-servo added a commit that referenced this pull request Oct 13, 2016
Replacing Node.rootNode for Node.getRootNode.

- Changed the specification for the Node element to reflect the new standard.
- Changed the implementation of the NodeMethod.

I'm still waiting for some answers for the questions I've posted on #13699, but I'm already doing the pull request so I can get some feedback as well.

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

bors-servo commented Oct 13, 2016

Trying commit 53a6182 with merge 1ba7e59...

@bors-servo
Copy link
Contributor

bors-servo commented Oct 13, 2016

@KiChjang
Copy link
Member

KiChjang commented Oct 13, 2016

@Rafagd You'll now need to squash all your commits into one, and we're ready to land this!

@Rafagd
Copy link
Contributor Author

Rafagd commented Oct 14, 2016

Everything is squashed into a single commit now.

@Ms2ger
Copy link
Contributor

Ms2ger commented Oct 14, 2016

Thanks!

@bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Oct 14, 2016

📌 Commit 0074d2a has been approved by Ms2ger

@bors-servo
Copy link
Contributor

bors-servo commented Oct 14, 2016

Testing commit 0074d2a with merge fbe96d1...

bors-servo added a commit that referenced this pull request Oct 14, 2016
Replacing Node.rootNode for Node.getRootNode.

- Changed the specification for the Node element to reflect the new standard.
- Changed the implementation of the NodeMethod.

I'm still waiting for some answers for the questions I've posted on #13699, but I'm already doing the pull request so I can get some feedback as well.

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

bors-servo commented Oct 14, 2016

💔 Test failed - linux-rel-wpt

@highfive
Copy link

highfive commented Oct 14, 2016

  ▶ FAIL [expected PASS] /_mozilla/css/inline_block_opacity_change.html
  └   → /_mozilla/css/inline_block_opacity_change.html aed6845267bba6c52d3aa69c4889449b454d8117
/_mozilla/css/inline_block_opacity_change_ref.html febec1b4730afab195f280694dad47200b09ea3c
Testing aed6845267bba6c52d3aa69c4889449b454d8117 == febec1b4730afab195f280694dad47200b09ea3c
@KiChjang
Copy link
Member

KiChjang commented Oct 14, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Oct 14, 2016

Testing commit 0074d2a with merge 697e197...

bors-servo added a commit that referenced this pull request Oct 14, 2016
Replacing Node.rootNode for Node.getRootNode.

- Changed the specification for the Node element to reflect the new standard.
- Changed the implementation of the NodeMethod.

I'm still waiting for some answers for the questions I've posted on #13699, but I'm already doing the pull request so I can get some feedback as well.

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

bors-servo commented Oct 14, 2016

💔 Test failed - linux-rel-css

@KiChjang
Copy link
Member

KiChjang commented Oct 14, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Oct 14, 2016

Previous build results for arm32, arm64, linux-dev, linux-rel-wpt, mac-dev-unit, mac-rel-wpt1, windows-dev are reusable. Rebuilding only linux-rel-css, mac-rel-css, mac-rel-wpt2...

@bors-servo
Copy link
Contributor

bors-servo commented Oct 14, 2016

@bors-servo bors-servo merged commit 0074d2a into servo:master Oct 14, 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
@Rafagd Rafagd deleted the Rafagd:my_changes branch Oct 14, 2016
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.

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