Auto merge of #7075 - Ms2ger:load_url, r=dzbarsky

Improve code around Window::load_url.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7075)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-08-08 06:09:13 -06:00
commit a0af7a1581
5 changed files with 26 additions and 17 deletions

View file

@ -15,6 +15,12 @@
assert_equals((href + "#x"), location.href, "location href");
}, "location assign");
test(function () {
var href = location.href;
location.assign("http://:");
assert_equals(location.href, href);
}, "URL that fails to parse");
</script>
</body>
</html>