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

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

Issue 336013003: Version 1.5.0-dev.4.14 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 6 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.events_test; 5 library polymer.test.web.events_test;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'dart:js'; 8 import 'dart:js';
9 import 'package:polymer/polymer.dart'; 9 import 'package:polymer/polymer.dart';
10 import 'package:unittest/html_config.dart'; 10 import 'package:unittest/html_config.dart';
(...skipping 14 matching lines...) Expand all
25 useHtmlConfiguration(); 25 useHtmlConfiguration();
26 setUp(() => Polymer.onReady); 26 setUp(() => Polymer.onReady);
27 27
28 test('detail on JS custom events are proxied', () { 28 test('detail on JS custom events are proxied', () {
29 var element = querySelector('x-test'); 29 var element = querySelector('x-test');
30 expect(element.called, isFalse); 30 expect(element.called, isFalse);
31 context.callMethod('fireEvent'); 31 context.callMethod('fireEvent');
32 expect(element.called, isTrue); 32 expect(element.called, isTrue);
33 }); 33 });
34 }); 34 });
OLDNEW
« no previous file with comments | « dart/pkg/polymer/test/instance_attrs_test.html ('k') | dart/pkg/polymer/test/js_custom_event_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698