mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
add origin to location and url api
This commit is contained in:
parent
1ba1fb0b7f
commit
1ee9ccba21
11 changed files with 62 additions and 607 deletions
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(function () {
|
||||
assert_equals(
|
||||
location.origin,
|
||||
location.protocol + '//' + location.host,
|
||||
"origin"
|
||||
);
|
||||
}, "location origin");
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue