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 upDo not accept negative time values in transition durations #15658
Conversation
highfive
commented
Feb 20, 2017
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @Manishearth (or someone else) soon. |
highfive
commented
Feb 20, 2017
|
Hi, this looks great, could you squash the commits so the commit message doesn't end up being "Fix #xxx"? r=me with that. Thanks again! :) |
|
Sorry for the delay @emilio .. my new job uses BitBucket so I don't see these notifications quite so often anymore! The commit message has a newline between "Fixes #xxx" and the actual message. Would you like me to amend that specific commit message or squash all commits together into one? |
|
Squash all of them into one, and rename the commit, please. |
No worries, hope your new job is great :)
Yeah, if you could squash them all with a meaningful message, that'd be neat! It's generally frowned upon to have commits with a message like "Fixes tidy", or other kind of partial fixes/commits. If you need any help, don't bother to ask :). Alternatively, you can also check the "Allow edits from collaborators" checkbox, and I can squash and land them for you if you're busy with other stuff. Thanks again for doing this! :) |
d8ec53c
to
8c661fe
|
Thanks @emilio - all done :) (the job is great thanks! Just a busy first week!) I wasn't sure what you meant by |
Glad to hear that! :)
Sure it is :).
That'd be awesome, and no worries! This looks great to me, thanks! :) @bors-servo r+ |
|
|
Fix #15343 <!-- Please describe your changes on the following line: --> Adds `Time::parse_non_negative` which errors on negative values. This new method is now used by `transition_duration::parse`. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #15343 <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15658) <!-- Reviewable:end -->
|
|
Good news - clearly this code is being executed. Bad news is we need to figure out how to avoid the failures in transition-delay-001.htm. |
|
Right, negative values in transition delay are allowed. |
|
How were those tests run? I can give fixing it a go but I need to know how to run the tests that are failing. Sorry if thats an obvious question. |
|
|
|
@simon-whitehead are you planning to finish this one? Thanks! |
|
I am so sorry @emilio, I have been distracted with my new job. I am also getting married next week so this week and next week are a write off for me too. I hate to be "that guy" who leaves it in this state but realistically this just all happened at a bad time. I am happy to finish it off in a few weeks but if that isnt suitable I will have to hand it off to someone else. I am sorry for the inconvenience. |
|
No worries at all! We can probably try to finish this in a few weeks, thanks for replying :) |
|
@bors-servo r- |
|
|
|
@simon-whitehead would you mind finishing this up? |
|
Oh sure @hiikezoe - I completely forgot, sorry about that. I should get a chance in the next few days. Sorry again everyone. |
|
That's really good to know. Thank you! |
|
Filed gecko bug for tracking this: Bug 1363592. cc @chenpighead |
|
I'm going to have to be "that guy" @hiikezoe and pass this on to someone else. I am sorry. Both personally and professionally I am just swamped at the moment and I don't want to hold anyone else up. I apologise immensely for half-baking this feature. I hope to have more time soon to help with more tasks. Again, I am really really sorry. |
|
@simon-whitehead you don't have to apologize. You did a good job. The unit test can be still used as it is. Thanks for doing! I will do the rest of work. |
|
Closing in favour of #16829. |
simon-whitehead commentedFeb 20, 2017
•
edited by larsbergstrom
Adds
Time::parse_non_negativewhich errors on negative values. This new method is now used bytransition_duration::parse../mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is