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

Conversation

@SunyDays
Copy link
Contributor

SunyDays commented Apr 23, 2016

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

close #10738


This change is Reviewable

@highfive
Copy link

highfive commented Apr 23, 2016

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

highfive commented Apr 23, 2016

Heads up! This PR modifies the following files:

  • @KiChjang: components/script/dom/document.rs
@highfive
Copy link

highfive commented Apr 23, 2016

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
Contributor Author

SunyDays commented Apr 23, 2016

Ok!

@frewsxcv
Copy link
Member

frewsxcv commented Apr 23, 2016

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)))),

This comment has been minimized.

Copy link
@frewsxcv

frewsxcv Apr 24, 2016

Member

There's a + at the beginning of this line

@frewsxcv
Copy link
Member

frewsxcv commented Apr 24, 2016

Looks good! Can you squash your commits?

@SunyDays
Copy link
Contributor Author

SunyDays commented Apr 24, 2016

@frewsxcv, done!

@frewsxcv
Copy link
Member

frewsxcv commented Apr 24, 2016

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
Contributor Author

SunyDays commented Apr 24, 2016

@frewsxcv, of course

@frewsxcv
Copy link
Member

frewsxcv commented Apr 24, 2016

Thanks for your contribution! 🎉

@bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Apr 24, 2016

📌 Commit b910db3 has been approved by frewsxcv

@bors-servo
Copy link
Contributor

bors-servo commented Apr 24, 2016

Testing commit b910db3 with merge 2862f9b...

bors-servo added 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

bors-servo commented Apr 24, 2016

💔 Test failed - mac-rel-wpt

@highfive
Copy link

highfive commented Apr 24, 2016

  ▶ 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
@frewsxcv
Copy link
Member

frewsxcv commented Apr 24, 2016

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

@bors-servo
Copy link
Contributor

bors-servo commented Apr 25, 2016

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

@bors-servo
Copy link
Contributor

bors-servo commented Apr 26, 2016

Testing commit bacb1c7 with merge 4456715...

bors-servo added 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

bors-servo commented Apr 27, 2016

💔 Test failed - linux-rel

@highfive
Copy link

highfive commented Apr 27, 2016

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

frewsxcv commented Apr 27, 2016

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

@bors-servo
Copy link
Contributor

bors-servo commented Apr 27, 2016

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

@SunyDays
Copy link
Contributor Author

SunyDays commented Apr 27, 2016

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

@frewsxcv
Copy link
Member

frewsxcv commented Apr 27, 2016

@frewsxcv
Copy link
Member

frewsxcv commented Apr 27, 2016

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

@SunyDays
Copy link
Contributor Author

SunyDays commented Apr 27, 2016

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

@frewsxcv
Copy link
Member

frewsxcv commented Apr 27, 2016

Thanks again!

@bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Apr 27, 2016

📌 Commit 7d24426 has been approved by frewsxcv

1 similar comment
@bors-servo
Copy link
Contributor

bors-servo commented Apr 27, 2016

📌 Commit 7d24426 has been approved by frewsxcv

bors-servo added 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

bors-servo commented Apr 27, 2016

Testing commit 7d24426 with merge 311dd0f...

@bors-servo
Copy link
Contributor

bors-servo commented Apr 27, 2016

@bors-servo bors-servo merged commit 7d24426 into servo:master Apr 27, 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
@SunyDays SunyDays deleted the SunyDays:errorevent_argument branch Apr 27, 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.

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