mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
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:
commit
a0af7a1581
5 changed files with 26 additions and 17 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue