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

Unified Diff: LayoutTests/dart/microtask-queue.html

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
Patch Set: Created 5 years 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
« no previous file with comments | « LayoutTests/dart/inspector/utils-expected.txt ('k') | LayoutTests/dart/microtask-queue-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « LayoutTests/dart/inspector/utils-expected.txt ('k') | LayoutTests/dart/microtask-queue-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698