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 location.reload() #7064
Conversation
highfive
commented
Aug 7, 2015
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @larsbergstrom (or someone else) soon. |
227c3a6
to
2379d19
|
I'm not sure I want to add more naive navigation code, we already have way to much of that. |
|
@Ms2ger said we should wait until he has rewritten all the navigation code |
|
-S-blocked-on-external +S-needs-tests +S-needs-rebase Add some kind of wpt test? Reviewed 2 of 2 files at r1. Comments from the review on Reviewable.io |
|
This is the only way I found to test Also, @Ms2ger r? |
|
LGTM, but avoid new JS features like |
|
|
||
| test(function() { | ||
| assert_equals(url, innerURL, "iframe url"); | ||
| }, "iframe url should not change"); |
This comment has been minimized.
This comment has been minimized.
Ms2ger
Sep 4, 2015
Contributor
Sorry I missed this last time. You're creating multiple tests with the same name, which would be painful if we failed one of them. Please just put everything in one async_test, like:
async_test(function() {
var url = new URL("./location_reload-iframe.html", window.location).href;
...
window._ping = this.step_func(function() {
...
assert_equals(url, innerURL, "iframe url");
...
this.done();
});
iframe.src = url;
});|
|
e45456c
to
56e45e0
|
nvm, |
|
@Ms2ger review ping |
|
|
|
Sorry for the delay here. @bors-servo r+ |
|
|
Implement location.reload() This is a naive implementation of `window.location.reload()`. I'd appreciate any feedback. I was wondering if it'd be better to implement `ConstellationMsg::Reload` instead of using `load_url`. Also, what kind of test should I write? <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7064) <!-- Reviewable:end -->
|
|
paulrouget commentedAug 7, 2015
This is a naive implementation of
window.location.reload().I'd appreciate any feedback.
I was wondering if it'd be better to implement
ConstellationMsg::Reloadinstead of usingload_url.Also, what kind of test should I write?