testing/web-platform/tests/html/dom/historical.html
author Jan Varga <jvarga@mozilla.com>
Tue, 30 Nov 2021 05:05:53 +0000
changeset 600569 a36723a06c6ef6b96b17ab436a391a784fe9ce34
parent 431991 16effe03c0a32c9531116e81c40d173160d8f22e
permissions -rw-r--r--
Bug 1732642 - Handle complex types in MOZ_TO_RESULT_INVOKE_MEMBER_TYPED; r=dom-storage-reviewers,jari Differential Revision: https://phabricator.services.mozilla.com/D126785

<!doctype html>
<title>Historical HTML APIs</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<applet name=war align=left></applet>
<script>
test(() => {
  assert_array_equals(document.applets, []);
}, "document.applets is always empty");

test(() => {
  const ap = document.getElementsByTagName("applet")[0];
  assert_equals(self.HTMLAppletElement, undefined);
  assert_true(ap instanceof window.HTMLUnknownElement);
}, "HTMLAppletElement is no more")

test(() => {
  assert_equals(document.all.war, undefined);
}, "document.all cannot find applet")

test(() => {
  assert_equals(document.war, undefined);
}, "document cannot find applet")

test(() => {
  assert_equals(self.war, undefined);
}, "window cannot find applet")

test(() => {
  assert_equals(self.getComputedStyle(document.getElementsByTagName("applet")[0], "").cssFloat, "none");
}, "applet is not styled")

// removed in https://github.com/whatwg/html/commit/e383ae23776362cafb2fb4bbba70c8c9080d4b0f
test(() => {
  assert_false("HTMLTableDataCellElement" in window);
}, "HTMLTableDataCellElement interface is removed")

test(() => {
  assert_false("HTMLTableHeaderCellElement" in window);
}, "HTMLTableHeaderCellElement interface is removed")
</script>