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

Side by Side Diff: tests/html/mutationobserver_test.dart

Issue 12049051: Fixing more cases of default values for events not working on Dartium. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tests/html/storage_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library mutationobserver_test; 5 library mutationobserver_test;
6 import '../../pkg/unittest/lib/unittest.dart'; 6 import '../../pkg/unittest/lib/unittest.dart';
7 import '../../pkg/unittest/lib/html_individual_config.dart'; 7 import '../../pkg/unittest/lib/html_individual_config.dart';
8 import 'dart:html'; 8 import 'dart:html';
9 9
10 /** 10 /**
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 var mutationObserver = new MutationObserver( 124 var mutationObserver = new MutationObserver(
125 mutationCallback(2, orderedEquals([div1, div2]))); 125 mutationCallback(2, orderedEquals([div1, div2])));
126 mutationObserver.observe(container, childList: true, subtree: true); 126 mutationObserver.observe(container, childList: true, subtree: true);
127 127
128 container.nodes.add(div1); 128 container.nodes.add(div1);
129 div1.nodes.add(div2); 129 div1.nodes.add(div2);
130 }, expectation); 130 }, expectation);
131 }); 131 });
132 132
133 test('mutation event', () { 133 test('mutation event', () {
134 var event = new MutationEvent('something'); 134 // Bug 8076 that not all optional params are optional in Dartium.
135 var event = new MutationEvent('something', prevValue: 'prev',
136 newValue: 'new', attrName: 'attr');
135 expect(event is MutationEvent, isTrue); 137 expect(event is MutationEvent, isTrue);
138 expect(event.prevValue, 'prev');
139 expect(event.newValue, 'new');
140 expect(event.attrName, 'attr');
136 }); 141 });
137 }); 142 });
138 } 143 }
OLDNEW
« no previous file with comments | « no previous file | tests/html/storage_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698