chromium/third_party/blink/web_tests/fast/dom/MutationObserver/script-end-tag.html

<!DOCTYPE html>
<script src="../../../resources/js-test.js"></script>
<script>
description('Test that a script end tags invokes MutationObserver callbacks');

var mutationsDelivered = false;
function callback(mutations) {
    mutationsDelivered = true;
}

var observer = new MutationObserver(callback);
var div = document.createElement('div');
observer.observe(div, {attributes: true});
div.setAttribute('foo', 'bar');
document.write('<script><\/script>');
shouldBeFalse('mutationsDelivered');
</script>
<script>
shouldBeTrue('mutationsDelivered');
</script>