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

Side by Side Diff: pkg/polymer/test/event_path_test.dart

Issue 27518006: Practically remove boot.js, adds the initialization from the Dart side of (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 polymer.test.web.event_path_test; 5 library polymer.test.web.event_path_test;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'package:polymer/polymer.dart'; 8 import 'package:polymer/polymer.dart';
9 import 'package:unittest/html_config.dart'; 9 import 'package:unittest/html_config.dart';
10 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
11 11
12 main() { 12 @initMethod _main() {
13 useHtmlConfiguration(); 13 useHtmlConfiguration();
14 14
15 setUp(() => Polymer.onReady); 15 setUp(() => Polymer.onReady);
16 16
17 test('bubbling in the right order', () { 17 test('bubbling in the right order', () {
18 var item1 = query('#item1'); 18 var item1 = query('#item1');
19 var menuButton = query('#menuButton'); 19 var menuButton = query('#menuButton');
20 // Note: polymer uses automatic node finding (menuButton.$.menu) 20 // Note: polymer uses automatic node finding (menuButton.$.menu)
21 // also note that their node finding code also reachs into the ids 21 // also note that their node finding code also reachs into the ids
22 // from the parent shadow (menu.$.selectorContent instead of 22 // from the parent shadow (menu.$.selectorContent instead of
(...skipping 27 matching lines...) Expand all
50 expect(node, isNotNull, reason: "Should not be null at $i"); 50 expect(node, isNotNull, reason: "Should not be null at $i");
51 node.on['x'].listen(expectAsync1((e) { 51 node.on['x'].listen(expectAsync1((e) {
52 expect(e.currentTarget, node); 52 expect(e.currentTarget, node);
53 expect(x++, i); 53 expect(x++, i);
54 })); 54 }));
55 } 55 }
56 56
57 item1.dispatchEvent(new Event('x', canBubble: true)); 57 item1.dispatchEvent(new Event('x', canBubble: true));
58 }); 58 });
59 } 59 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698