Index: LayoutTests/fast/dom/MutationObserver/script-end-tag.html |
diff --git a/LayoutTests/fast/dom/MutationObserver/script-end-tag.html b/LayoutTests/fast/dom/MutationObserver/script-end-tag.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..76870ad45c9575ebc1fdb8c1a4030c70790bc69b |
--- /dev/null |
+++ b/LayoutTests/fast/dom/MutationObserver/script-end-tag.html |
@@ -0,0 +1,18 @@ |
+<!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'); |
+shouldBeFalse('mutationsDelivered'); |
+document.write('<script><\/script>'); // performs a microtask checkpoint |
+shouldBeTrue('mutationsDelivered'); |
+</script> |