Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for document wg color #13842

Closed
wants to merge 4 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<title>document wg color</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/obsolete.html#dom-document-fgcolor">
<link rel="help" href="https://html.spec.whatwg.org/multipage/obsolete.html">
akansha2608 marked this conversation as resolved.
Show resolved Hide resolved
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<script>
marcoscaceres marked this conversation as resolved.
Show resolved Hide resolved
test(function() {
var body = document.createElement("body");
document.documentElement.appendChild(body);
akansha2608 marked this conversation as resolved.
Show resolved Hide resolved
document.fgColor = "red";
marcoscaceres marked this conversation as resolved.
Show resolved Hide resolved
assert_equals(document.fgColor,"");

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I this test, let’s confirm that each of these is “red”.
assert_equal(document.fgColor, “red”);

And so on...

document.bgColor = "red";
assert_equals(document.bgColor,"");

document.linkColor = "red";
assert_equals(document.linkColor,"");

document.vlinkColor = "red";
assert_equals(document.vlinkColor,"");

document.alinkColor = "red";
assert_equals(document.alinkColor,"");

document.documentElement.removeChild(body);
});
akansha2608 marked this conversation as resolved.
Show resolved Hide resolved
</script>
</body>