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

[#411] Add some tests for default-initialized roots #451

Merged
merged 4 commits into from Dec 22, 2018

Conversation

@longwusha
Copy link
Contributor

longwusha commented Dec 21, 2018

  1. At the current stage, I only completed the test code for JSVal; I need to know how to implement several other types of default values in order to complete all the test code.
  2. The default value of JSVal's current implementation is undefined, so we should use the is_undefined() method to verify the result.

This change is Reviewable

tests/rooting.rs Outdated Show resolved Hide resolved
@longwusha
Copy link
Contributor Author

longwusha commented Dec 21, 2018

@jdm

I have merged these two methods together.

@jdm
Copy link
Member

jdm commented Dec 21, 2018

@bors-servo r+
Thanks! This looks great!

@bors-servo
Copy link
Contributor

bors-servo commented Dec 21, 2018

📌 Commit b50cccf has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Dec 21, 2018

Testing commit b50cccf with merge cd98538...

bors-servo added a commit that referenced this pull request Dec 21, 2018
[#411] Add some tests for default-initialized roots

1. At the current stage, I only completed the test code for JSVal; I need to know how to implement several other types of default values in order to complete all the test code.
2. The default value of JSVal's current implementation is undefined, so we should use the is_undefined() method to verify the result.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/451)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Dec 21, 2018

💔 Test failed - status-travis

src/rust.rs Outdated Show resolved Hide resolved
@jdm
Copy link
Member

jdm commented Dec 22, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Dec 22, 2018

📌 Commit d01b430 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Dec 22, 2018

Testing commit d01b430 with merge e2d07dc...

bors-servo added a commit that referenced this pull request Dec 22, 2018
[#411] Add some tests for default-initialized roots

1. At the current stage, I only completed the test code for JSVal; I need to know how to implement several other types of default values in order to complete all the test code.
2. The default value of JSVal's current implementation is undefined, so we should use the is_undefined() method to verify the result.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/451)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Dec 22, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: jdm
Pushing e2d07dc to master...

@bors-servo bors-servo merged commit d01b430 into servo:master Dec 22, 2018
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
@longwusha
Copy link
Contributor Author

longwusha commented Dec 22, 2018

This is my first code commit under the servo organization. This is a good start. Thank you very much for your patience!

@jdm
Copy link
Member

jdm commented Dec 22, 2018

Thank you for your contribution!

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.

None yet

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