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

Implement the errorevent argument to Document::createEvent #10816

Merged
merged 1 commit into from Apr 27, 2016
Merged

Implement the errorevent argument to Document::createEvent #10816

merged 1 commit into from Apr 27, 2016

Conversation

SunyDays
Copy link

new_uninitialized function on ErrorEvent has already been in components/script/dom/errorevent.rs

close #10738


This change is Reviewable

@highfive
Copy link

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

@highfive
Copy link

Heads up! This PR modifies the following files:

  • @KiChjang: components/script/dom/document.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Apr 23, 2016
@highfive
Copy link

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!

@jdm
Copy link
Member

jdm commented Apr 23, 2016

Thanjs for the PR! In the future, please leave a comment in issues before starting to work on them. It avoids any chance that multiple people accidentally work on an issue at the same time.

@SunyDays
Copy link
Author

Ok!

@frewsxcv
Copy link
Contributor

It looks like this pull request also includes #10814. Either remove that commit in this pull request, or just close the other issue and combine them into this one.

@@ -2168,6 +2169,8 @@ impl DocumentMethods for Document {
&TouchList::new(&self.window, &[]),
)
)),
"errorevent" =>
+ Ok(Root::upcast(ErrorEvent::new_uninitialized(GlobalRef::Window(&self.window)))),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a + at the beginning of this line

@frewsxcv
Copy link
Contributor

Looks good! Can you squash your commits?

@SunyDays
Copy link
Author

@frewsxcv, done!

@frewsxcv
Copy link
Contributor

Sorry, one more thing. Can you retitle the commit from "squash commits" to "Implement the errorevent argument to Document::createEvent" or something more meaningful?

@frewsxcv frewsxcv assigned frewsxcv and unassigned metajack Apr 24, 2016
@SunyDays
Copy link
Author

@frewsxcv, of course

@frewsxcv
Copy link
Contributor

Thanks for your contribution! 🎉

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit b910db3 has been approved by frewsxcv

@highfive highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Apr 24, 2016
@bors-servo
Copy link
Contributor

⌛ Testing commit b910db3 with merge 2862f9b...

@highfive highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Apr 24, 2016
bors-servo pushed a commit that referenced this pull request Apr 24, 2016
Implement the errorevent argument to Document::createEvent

new_uninitialized function on ErrorEvent has already been in components/script/dom/errorevent.rs

close #10738

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

💔 Test failed - mac-rel-wpt

@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Apr 24, 2016
@highfive
Copy link

  ▶ Unexpected subtest result in /workers/Worker_dispatchEvent_ErrorEvent.htm:
  │ FAIL [expected PASS] document.createEvent(&#39;ErrorEvent&#39;)
  │   → assert_throws: should not be supported function &#34;function () {
    document.createEvent(&#34;ErrorEvent&#34;);
  }&#34; did not throw
  │ 
  │ @http://web-platform.test:8000/workers/Worker_dispatchEvent_ErrorEvent.htm:22:1
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1397:20
  │ test@http://web-platform.test:8000/resources/testharness.js:495:9
  └ @http://web-platform.test:8000/workers/Worker_dispatchEvent_ErrorEvent.htm:21:1

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Apr 24, 2016
@frewsxcv
Copy link
Contributor

This now depends on web-platform-tests/wpt#2890.

@frewsxcv frewsxcv added S-blocked-on-external Something, somewhere else, needs to happen before this PR can be merged. and removed S-tests-failed The changes caused existing tests to fail. labels Apr 24, 2016
@bors-servo
Copy link
Contributor

☔ The latest upstream changes (presumably #10819) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Apr 25, 2016
@highfive highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Apr 26, 2016
@bors-servo
Copy link
Contributor

⌛ Testing commit bacb1c7 with merge 4456715...

bors-servo pushed a commit that referenced this pull request Apr 26, 2016
Implement the errorevent argument to Document::createEvent

new_uninitialized function on ErrorEvent has already been in components/script/dom/errorevent.rs

close #10738

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

💔 Test failed - linux-rel

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Apr 27, 2016
@highfive
Copy link

  ▶ Unexpected subtest result in /workers/Worker_dispatchEvent_ErrorEvent.htm:
  └ PASS [expected FAIL] document.createEvent(&#39;ErrorEvent&#39;)

@frewsxcv
Copy link
Contributor

Cool, looks like you need to mark that test as passing now 👍

@bors-servo
Copy link
Contributor

☔ The latest upstream changes (presumably #10820) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Apr 27, 2016
@SunyDays
Copy link
Author

@frewsxcv, I can't find where to mark that test as passing

@frewsxcv
Copy link
Contributor

frewsxcv commented Apr 27, 2016

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Apr 27, 2016
@frewsxcv
Copy link
Contributor

@SunyDays Can you squash :) Sorry for all these steps

@SunyDays
Copy link
Author

@frewsxcv, oh yes, I really sorry that i forgot it

@frewsxcv
Copy link
Contributor

frewsxcv commented Apr 27, 2016

Thanks again!

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 7d24426 has been approved by frewsxcv

1 similar comment
@bors-servo
Copy link
Contributor

📌 Commit 7d24426 has been approved by frewsxcv

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. S-needs-rebase There are merge conflict errors. labels Apr 27, 2016
bors-servo pushed a commit that referenced this pull request Apr 27, 2016
Implement the errorevent argument to Document::createEvent

new_uninitialized function on ErrorEvent has already been in components/script/dom/errorevent.rs

close #10738

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

⌛ Testing commit 7d24426 with merge 311dd0f...

@bors-servo
Copy link
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt

@bors-servo bors-servo merged commit 7d24426 into servo:master Apr 27, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Apr 27, 2016
@SunyDays SunyDays deleted the errorevent_argument branch April 27, 2016 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement the "errorevent" argument to Document::createEvent
8 participants