Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: LayoutTests/fast/dom/MutationObserver/script-end-tag.html

Issue 130983011: Perform a microtask checkpoint for document.write('<script><\/script>') (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698