| <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> |