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

Unified Diff: tests/html/mutationobserver_test.dart

Issue 11188029: Make arguments of MutationObserver named. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
« no previous file with comments | « lib/html/templates/html/interface/interface_MutationObserver.darttemplate ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/mutationobserver_test.dart
diff --git a/tests/html/mutationobserver_test.dart b/tests/html/mutationobserver_test.dart
index b2b0ec410d29075c3a3c376a6fd29d77e902869e..3585b85d3dc1800f2d31fa9e3afa64d13c37b0f9 100644
--- a/tests/html/mutationobserver_test.dart
+++ b/tests/html/mutationobserver_test.dart
@@ -49,7 +49,7 @@ main() {
var div2 = new DivElement();
var mutationObserver = new MutationObserver(
mutationCallback(2, orderedEquals([div1, div2])));
- mutationObserver.observe(container, {'childList': true});
+ mutationObserver.observe(container, options: {'childList': true});
container.nodes.add(div1);
container.nodes.add(div2);
@@ -61,8 +61,7 @@ main() {
var div2 = new DivElement();
var mutationObserver = new MutationObserver(
mutationCallback(2, orderedEquals([div1, div2])));
- // OPTIONALS mutationObserver.observe(container, childList: true);
- mutationObserver.observe(container, {}, true);
+ mutationObserver.observe(container, childList: true);
container.nodes.add(div1);
container.nodes.add(div2);
@@ -74,8 +73,7 @@ main() {
var div2 = new DivElement();
var mutationObserver =
new MutationObserver(mutationCallback(1, orderedEquals([div1])));
- // OPTIONALS mutationObserver.observe(container, childList: true);
- mutationObserver.observe(container, {}, true);
+ mutationObserver.observe(container, childList: true);
container.nodes.add(div1);
div1.nodes.add(div2);
@@ -89,7 +87,7 @@ main() {
var mutationObserver = new MutationObserver(
mutationCallback(2, orderedEquals([div1, div2])));
mutationObserver.observe(container,
- {'childList': true, 'subtree': true});
+ options: {'childList': true, 'subtree': true});
container.nodes.add(div1);
div1.nodes.add(div2);
@@ -101,8 +99,7 @@ main() {
var div2 = new DivElement();
var mutationObserver = new MutationObserver(
mutationCallback(2, orderedEquals([div1, div2])));
- // OPTIONALS mutationObserver.observe(container, childList: true, subtree: true);
- mutationObserver.observe(container, {}, true, null, null, true);
+ mutationObserver.observe(container, childList: true, subtree: true);
container.nodes.add(div1);
div1.nodes.add(div2);
« no previous file with comments | « lib/html/templates/html/interface/interface_MutationObserver.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698