Index: LayoutTests/dart/microtask-queue.html |
diff --git a/LayoutTests/dart/microtask-queue.html b/LayoutTests/dart/microtask-queue.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2da26bc1e4a48875fe2528be28728d006af3582c |
--- /dev/null |
+++ b/LayoutTests/dart/microtask-queue.html |
@@ -0,0 +1,36 @@ |
+<html> |
+<body> |
+ |
+<script id="dart" type="application/dart"> |
+import 'dart:html'; |
+ |
+void main() { |
+ var mutationOccurred = false; |
+ var observer = new MutationObserver((e, o) { |
+ print('mutation occurred'); |
+ mutationOccurred = true; |
+ }); |
+ |
+ var div = new DivElement(); |
+ document.body.append(div); |
+ observer.observe(div, attributes: true); |
+ div.hidden = true; |
+ |
+ print('sending something to the console'); |
+ |
+ if (mutationOccurred) { |
+ window.console.log('mutation occurred when it should not have'); |
+ } |
+ window.console.log('done with main'); |
+} |
+</script> |
+ |
+<script> |
+ if (window.testRunner) { |
+ // Wait until after the mutation observer is done. |
+ window.setTimeout(window.testRunner.dumpAsText, 10); |
+ } |
+</script> |
+ |
+</body> |
+</html> |