Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement FileReader #6172 #6205
Conversation
highfive
commented
May 28, 2015
|
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. |
hoppipolla-critic-bot
commented
May 28, 2015
|
Critic review: https://critic.hoppipolla.co.uk/r/5116 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 |
|
Thanks for the contribution @farodin91! Could you rebase and squash everything into a single commit (or multiple self-contained commits) to ease reviewing? |
|
Also, Travis complained:
|
|
Review status: 18 of 20 files reviewed, 7 unresolved discussions, all commit checks successful.
components/script/dom/filereader.rs, line 154 [r13] (raw file): components/script/dom/filereader.rs, line 164 [r13] (raw file): components/script/dom/filereader.rs, line 181 [r13] (raw file): components/script/dom/filereader.rs, line 197 [r13] (raw file): components/script/dom/webidls/FileReader.webidl, line 32 [r13] (raw file): I'm looking at https://w3c.github.io/FileAPI/#APIASynch components/script/dom/webidls/FileReader.webidl, line 35 [r13] (raw file): tests/wpt/metadata/FileAPI/fileReader.html.ini, line 2 [r13] (raw file): How did you update the text expectations -- using update-wpt, or by hand? (the format may have changed since I last had a close look so ICBW) Comments from the review on Reviewable.io |
|
This looks good! I left some comments on the review for some peripheral changes (If you don't understand what I meant by any one of them or have other questions; feel free to ask!). I'll get to the bulk of the review later today I'm a bit unsure of which spec we're looking at here, could you edit in spec links for all the methods? |
|
Review status: 18 of 20 files reviewed, 4 unresolved discussions, all commit checks successful. components/script/dom/webidls/FileReader.webidl, line 32 [r13] (raw file): components/script/dom/webidls/FileReader.webidl, line 35 [r13] (raw file): tests/wpt/metadata/FileAPI/fileReader.html.ini, line 2 [r13] (raw file): Comments from the review on Reviewable.io |
|
Review status: 18 of 20 files reviewed, 1 unresolved discussion, all commit checks successful. tests/wpt/metadata/FileAPI/fileReader.html.ini, line 2 [r13] (raw file): Comments from the review on Reviewable.io |
|
Review status: 18 of 20 files reviewed, 1 unresolved discussion, all commit checks successful. tests/wpt/metadata/FileAPI/fileReader.html.ini, line 2 [r13] (raw file): Comments from the review on Reviewable.io |
|
You need to do it with --log-raw If nothing changes then we're good |
|
During the run crash by this reason glx::MakeCurrent failed #6042 Review status: 18 of 20 files reviewed, 1 unresolved discussion, all commit checks successful. Comments from the review on Reviewable.io |
|
I forgot to add the log-raw Review status: 18 of 20 files reviewed, 1 unresolved discussion, all commit checks successful. Comments from the review on Reviewable.io |
|
I found a redirect to the correct spec site! |
|
Review status: 10 of 19 files reviewed at latest revision, 3 unresolved discussions, all commit checks successful. components/script/dom/filereader.rs, line 58 [r31] (raw file): components/script/dom/filereader.rs, line 228 [r31] (raw file): components/script/dom/filereader.rs, line 241 [r31] (raw file): let (_, convert) = blob_body.bytes.split_at(0); components/script/dom/filereader.rs, line 267 [r31] (raw file): components/script/dom/filereader.rs, line 481 [r31] (raw file): Comments from the review on Reviewable.io |
|
-S-awaiting-review +S-needs-code-changes Reviewed 1 of 2 files at r32. components/script/dom/filereader.rs, line 228 [r31] (raw file): components/script/dom/filereader.rs, line 242 [r33] (raw file): resultmime.and_then(|Mime(_, _, ref parameters)| {
parameters.iter()
.find(|&(ref k, _)| &Attr::Charset == k)
.and_then(|&(_, ref v)| encoding_from_whatwg_label(&v.to_string()))
}components/script/dom/filereader.rs, line 244 [r31] (raw file): components/script/dom/filereader.rs, line 247 [r33] (raw file): Comments from the review on Reviewable.io |
|
Reviewed 1 of 1 files at r34. Comments from the review on Reviewable.io |
|
Review status: 11 of 19 files reviewed at latest revision, 4 unresolved discussions, all commit checks successful. components/script/dom/filereader.rs, line 265 [r31] (raw file): Comments from the review on Reviewable.io |
|
-S-awaiting-review +S-needs-code-changes Reviewed 1 of 1 files at r35. components/script/dom/filereader.rs, line 246 [r35] (raw file): components/script/dom/filereader.rs, line 265 [r31] (raw file): Comments from the review on Reviewable.io |
|
Great work! I think this is good enough to merge, and then I'll probably file some more issues to continue improving the readibility of the code. Thanks for sticking with this; go ahead and squash all of these commits together into one, please :) -S-awaiting-review +S-needs-squash Reviewed 1 of 1 files at r36. Comments from the review on Reviewable.io |
|
Oh, and you'll need to modify http://mxr.mozilla.org/servo/source/tests/wpt/mozilla/tests/mozilla/interfaces.html?force=1 to allow the test to pass now. |
|
How i can easy squash commits Review status: 11 of 19 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. Comments from the review on Reviewable.io |
|
Squashed in #6716. |
farodin91 commentedMay 28, 2015
Finished
ToDo