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

Unified Diff: tests/html/streams_test.dart

Issue 12263046: Fixing DOM's EventStream.isBroadcast (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/src/EventStreamProvider.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/streams_test.dart
diff --git a/tests/html/streams_test.dart b/tests/html/streams_test.dart
index 6c75dfe206d64c4b25007495152e8e037e752691..8a46b6505dcb6ba4370983bb2317aed4720231df 100644
--- a/tests/html/streams_test.dart
+++ b/tests/html/streams_test.dart
@@ -36,6 +36,12 @@ main() {
expect(callCount, 1);
});
+ test('broadcast', () {
+ var stream = new DivElement().onClick;
+ expect(stream.asBroadcastStream(), stream);
+ expect(stream.isBroadcast, isTrue);
+ });
+
// Validates that capturing events fire on parent before child.
test('capture', () {
var parent = new DivElement();
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/src/EventStreamProvider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698