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

JS Error Event Interface (NCSU Team: ronak, shreya, sayali) v 1.0 #3822

Closed
wants to merge 4 commits into from

Conversation

@RonakNisher
Copy link
Contributor

RonakNisher commented Oct 28, 2014

Resolved all compilation errors

@hoppipolla-critic-bot
Copy link

hoppipolla-critic-bot commented Oct 28, 2014

Critic review: https://critic.hoppipolla.co.uk/r/2999

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@jdm
Copy link
Member

jdm commented Oct 28, 2014

Instead of opening multiple pull requests, can you continue adding commits to the previously-opened one so that our review tool can be used effectively?

@jdm
Copy link
Member

jdm commented Nov 13, 2014

Getting better! Please be careful about matching the code style in other files, especially in regards to consistent indentation and spacing. Also be sure to run ./mach test-tidy to catch problems like missing license headers and trailing whitespace early!

@jdm
Copy link
Member

jdm commented Nov 17, 2014

Much improved! I've left some more comments on Critic again, as there are still some formatting problems.

@jdm
Copy link
Member

jdm commented Nov 18, 2014

Very close! There are only three remaining issues; once they're fixed, these changes can be rebased against master and merged :)

@jdm
Copy link
Member

jdm commented Nov 19, 2014

Yay! Please rebase all of these changes on top of the latest code and squash them into a single commit (https://ariejan.net/2011/07/05/git-squash-your-latests-commits-into-one/), and this is ready to merge!

@Ms2ger
Copy link
Contributor

Ms2ger commented Nov 19, 2014

@RonakNisher: initErrorEvent no longer exists, please remove it. Also make sure to run web-platform-tests and update expected failures where necessary (documentation under /tests/wpt/README.md).

@RonakNisher RonakNisher force-pushed the RonakNisher:master branch from c98fa86 to 005f068 Nov 22, 2014
@RonakNisher
Copy link
Contributor Author

RonakNisher commented Nov 22, 2014

@Ms2ger , Removing the initErrorEvent caused compile time errors.

It says , "not all trait items implemented, missing: InitErrorEvent "

@jdm
Copy link
Member

jdm commented Nov 22, 2014

@RonakNisher You will need to remove both the Rust implementation and the WebIDL method declaration.

@jdm
Copy link
Member

jdm commented Nov 25, 2014

@RonakNisher The problem is that you're using a master revision from October 15, so the dom_struct attribute does not exist yet. Similar DOM structures use the cocktail of jstraceable, privatize, and must_root, as your original commit did.

@RonakNisher
Copy link
Contributor Author

RonakNisher commented Nov 26, 2014

@jdm , Should I update my master revision ?

@RonakNisher RonakNisher reopened this Nov 26, 2014
@jdm
Copy link
Member

jdm commented Nov 26, 2014

It appears that you did.

@RonakNisher
Copy link
Contributor Author

RonakNisher commented Nov 26, 2014

@jdm, yeah I had to. I thought the error was due to a mismatch in my local servo so I pulled in the latest changes. As of now, servo is compiling but I'm unsure of the way forward with removing the InitErrorEvent method. Its being called directly in the "new" method. I'm not sure how can I use this while calling the error event

@RonakNisher
Copy link
Contributor Author

RonakNisher commented Nov 27, 2014

@jdm ,@Ms2ger : Removed the initErrorEvent. I've run the web-platform-tests too but I could not find anything to add / edit in the .ini file in Metadata. It showed that it passed the test when the expectation was FAIL. should we be adding these too ?
(Here is the link to the partial output of running the web-platform-tests http://pastebin.com/j6KtRz5F )

@jdm
Copy link
Member

jdm commented Nov 27, 2014

@RonakNisher: When there's an expected failure but the test passes, the annotation should be removed from the ini file, eg:

[ErrorEvent interface: existence and properties of interface object]
  expected: FAIL

should have both lines deleted.

@jdm
Copy link
Member

jdm commented Nov 27, 2014

@RonakNisher Also, could you rebase the Critic review onto afc144a by following the steps at https://github.com/servo/servo/wiki/Github-&-Critic-PR-handling-101? That will allow me to leave a few more review comments.

@jdm
Copy link
Member

jdm commented Nov 27, 2014

To be specific, starting at the Use the "Rebase Branch" step and using the revision that I specified; it's the SHA1 of the parent that the steps talk about.

@jdm
Copy link
Member

jdm commented Nov 27, 2014

Thanks for doing the rebase! Don't forget to press the "Enable tracking" button, too.

@jdm
Copy link
Member

jdm commented Nov 27, 2014

Super close! Two last small issues remaining :)

@jdm
Copy link
Member

jdm commented Nov 28, 2014

@RonakNisher RonakNisher force-pushed the RonakNisher:master branch 2 times, most recently from a1fc594 to 38f5fa3 Nov 28, 2014
bors-servo pushed a commit that referenced this pull request Nov 28, 2014
Resolved all compilation errors
@jdm
Copy link
Member

jdm commented Nov 28, 2014

Sorry @RonakNisher, the extra attributes have to go:

dom/errorevent.rs:26:1: 26:15 error: conflicting implementations for trait `dom::bindings::trace::JSTraceable` [E0119]
dom/errorevent.rs:26 #[jstraceable]
                     ^~~~~~~~~~~~~~
note: in expansion of #[jstraceable]
dom/errorevent.rs:26:1: 26:15 note: expansion site

Please remove the attributes that are not dom_struct, amend the commit (git commit -a --amend) and force push the change.

@RonakNisher RonakNisher force-pushed the RonakNisher:master branch from 38f5fa3 to 89b8f5f Nov 28, 2014
@jdm
Copy link
Member

jdm commented Dec 2, 2014

@RonakNisher It appears Shreya's changes got mixed into this branch, and I did not notice that you had updated it to remove the attributes that were causing problems before. Could you rebase your first commit against master, and reset the branch so Shreya's changes aren't included? This should be ready to merge when that happens.

@RonakNisher RonakNisher force-pushed the RonakNisher:master branch from 43b5070 to 89b8f5f Dec 2, 2014
@RonakNisher
Copy link
Contributor Author

RonakNisher commented Dec 2, 2014

@jdm , done. I'm getting better at undoing changes on git :P

bors-servo pushed a commit that referenced this pull request Dec 2, 2014
Resolved all compilation errors
@jdm
Copy link
Member

jdm commented Dec 2, 2014

Sorry, the code changed under you:

dom/errorevent.rs:53:28: 53:34 error: mismatched types: expected `dom::bindings::global::GlobalRef<'_>`, found `&dom::bindings::global::GlobalRef<'_>` (expected enum dom::bindings::global::GlobalRef, found &-ptr)
dom/errorevent.rs:53                            global,
                                                ^~~~~~

I'll make the fix and merge this myself in ~4 hours unless you get to it first.

bors-servo pushed a commit that referenced this pull request Dec 2, 2014
Rebased from #3822.
RonakNisher added 4 commits Oct 25, 2014
Removed InitErrorEvent

trying to resolve trace error

moving init in constrictor

removed InitErrorEvent

removed partial from WebIDL, changes in new method and updated test in .ini file

refactoring new_uninitialized

removed unused imports
@RonakNisher RonakNisher force-pushed the RonakNisher:master branch from 119b5a9 to b04e790 Dec 4, 2014
bors-servo pushed a commit that referenced this pull request Dec 5, 2014
Rebased from #3822.
bors-servo pushed a commit that referenced this pull request Dec 5, 2014
Rebased from #3822.
bors-servo pushed a commit that referenced this pull request Dec 5, 2014
Rebased from #3822.
bors-servo pushed a commit that referenced this pull request Dec 5, 2014
Rebased from #3822.
bors-servo pushed a commit that referenced this pull request Dec 5, 2014
Rebased from #3822.
bors-servo pushed a commit that referenced this pull request Dec 5, 2014
Rebased from #3822.
@jdm
Copy link
Member

jdm commented Dec 5, 2014

Merged in #4230. Hooray!

@jdm jdm closed this Dec 5, 2014
@RonakNisher
Copy link
Contributor Author

RonakNisher commented Dec 5, 2014

Awesome. Thank you so much for your help :)

On 10:46AM, Fri, Dec 5, 2014 Josh Matthews notifications@github.com wrote:

Closed #3822 #3822.


Reply to this email directly or view it on GitHub
#3822 (comment).

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

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