mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Auto merge of #11434 - catchmrbharath:status, r=nox
WIP: Fixes #11407: Implement Window.status Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #11407 (github issue number if applicable). Either: - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11434) <!-- Reviewable:end -->
This commit is contained in:
commit
d890453f78
4 changed files with 37 additions and 1 deletions
|
@ -35938,6 +35938,12 @@
|
|||
"deleted_reftests": {},
|
||||
"items": {
|
||||
"testharness": {
|
||||
"html/browsers/the-window-object/browser-interface-elements/status.html": [
|
||||
{
|
||||
"path": "html/browsers/the-window-object/browser-interface-elements/status.html",
|
||||
"url": "/html/browsers/the-window-object/browser-interface-elements/status.html"
|
||||
}
|
||||
],
|
||||
"html/semantics/links/links-created-by-a-and-area-elements/htmlanchorelement_attribute-getter-setter.html": [
|
||||
{
|
||||
"path": "html/semantics/links/links-created-by-a-and-area-elements/htmlanchorelement_attribute-getter-setter.html",
|
||||
|
|
|
@ -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