chromium/third_party/blink/web_tests/svg/dom/svg-document-set-title-mutations.html

<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
test(function() {
  var doc = document.implementation.createDocument("http://www.w3.org/2000/svg", "svg", null);
  doc.title = 'old';
  var titleElement = doc.querySelector('title');
  var observer = new MutationObserver(function(mutations) {
    assert_equals(mutations.length, 1);
    assert_equals(mutations[0].type, 'childList');
    assert_equals(mutations[0].addedNodes[0].data, 'new');
    assert_equals(mutations[0].addedNodes.length, 1);
    assert_equals(mutations[0].removedNodes[0].data, 'old');
    assert_equals(mutations[0].removedNodes.length, 1);
  });

  observer.observe(titleElement, { childList: true });
  doc.title = 'new';
}, "Test for mutations to childList when setting title of svg document.");
</script>