mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Fixes #11407: Implement Window.status
This commit is contained in:
parent
4dcb05ca4f
commit
a4d9a1d6a1
4 changed files with 37 additions and 1 deletions
|
@ -0,0 +1,18 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>Window.status tests</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-window-status">
|
||||
<div id=log></div>
|
||||
<script>
|
||||
test(function() {
|
||||
assert_true("status" in window, "status in window");
|
||||
assert_equals(window.status, "", "window.status is empty string initially");
|
||||
window.status = "newstatus";
|
||||
assert_equals(window.status, "newstatus", "window.string is set to newstatus");
|
||||
window.status = 5;
|
||||
assert_equals(window.status, "5", "window.status is a string");
|
||||
}, "Functional properties of window.status");
|
||||
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue