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

Test that historical HTMLElement features are not supported #4331

Merged
merged 2 commits into from
Jan 2, 2017
Merged
Show file tree
Hide file tree
Changes from all 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
13 changes: 12 additions & 1 deletion dom/historical.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,21 @@
"renameNode",
"defaultCharset",
"height",
"width"
"width",
// https://github.com/whatwg/html/commit/a64aea7fdb221bba027d95dc3cabda09e0b3e5dc
"commands",
// https://github.com/whatwg/html/commit/797b4d273955a0fe3cc2e2d0ca5d578f37c0f126
"cssElementMap",
// https://github.com/whatwg/html/commit/e236f46820b93d6fe2e2caae0363331075c6c4fb
"async",
]
documentNuked.forEach(isNukedFromDocument)

test(function() {
// https://github.com/whatwg/html/commit/e236f46820b93d6fe2e2caae0363331075c6c4fb
assert_false("load" in document);
}, "document.load");

test(function() {
assert_equals(document.implementation["getFeature"], undefined)
}, "DOMImplementation.getFeature() must be nuked.")
Expand Down
24 changes: 24 additions & 0 deletions html/dom/elements/elements-in-the-dom/historical.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!doctype html>
<title>Historical HTMLElement features</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<body>
<script>
[
// https://github.com/whatwg/html/commit/389ec2620d89e9480ef8847bf016abdfa92427bc
"commandType",
"commandLabel",
"commandIcon",
"commandHidden",
"commandDisabled",
"commandChecked",
"commandTriggers",
// https://github.com/whatwg/html/commit/5ddfc78b1f82e86cc202d72ccc752a0e15f1e4ad
"inert",
].forEach(function(member) {
test(function() {
assert_false(member in document.body);
assert_false(member in document.createElement('div'));
}, 'HTMLElement member must be nuked: ' + member);
});
</script>