testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.title-08.html
author stransky <stransky@redhat.com>
Thu, 29 Sep 2022 07:29:17 +0000
changeset 636604 a2601693650dcc94e7c3410f3fefc92f964cbcf9
parent 216659 f642698590301f923237de6d2479429096b61edd
permissions -rw-r--r--
Bug 1791856 [Wayland] Remove rounding error workaround r=emilio The rounding error workaround is broken - on recent Gtk it produces needless stream of move-to-rect callback. It's because we move popup of GDK_WINDOW_TYPE_HINT_POPUP_MENU type and this is positioned by Gtk by move-to-rect even if gtk_window_move() is called. But it looks like we don't need this workaround any more due to recent fixes (1786525, 1786588, 1786525, 1765714). Differential Revision: https://phabricator.services.mozilla.com/D158217

<!DOCTYPE html>
<link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#document.title">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
test(function() {
  assert_equals(document.title, "");
}, "No title element");

test(function() {
  var title = document.createElement("title");
  title.appendChild(document.createTextNode("PASS"));
  document.head.appendChild(title);
  assert_equals(document.title, "PASS");

  title.appendChild(document.createTextNode("PASS2"));
  title.appendChild(document.createTextNode("PASS3"));
  assert_equals(document.title, "PASSPASS2PASS3");
}, "title element contains multiple child text nodes");
</script>