Update Changelog.

Fix various typos and style nits.

BUG=23961
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//1272593002 .
This commit is contained in:
Lasse R.H. Nielsen 2015-08-05 12:58:30 +02:00
parent 2ca0bc6d5a
commit 0a35f7be3b
3 changed files with 9 additions and 8 deletions

View file

@ -3,7 +3,7 @@
### Core library changes
* `dart:async`
* `StreamController` added setters for the `onListen`, `onPause`, `onResume`
* `StreamController` added setters for the `onListen`, `onPause`, `onResume`
and `onCancel` callbacks.
* `dart:convert`
@ -14,6 +14,7 @@
This removes most `..` and `.` sequences from the URI path.
Purely relative paths (no scheme or authority) are allowed to retain
some leading "dot" segments.
Also added `hasAbsolutePath`, `hasEmptyPath`, and `hasScheme` properties.
* `dart:html`
* `NodeTreeSanitizer` added the `const trusted` field. It can be used

View file

@ -1305,7 +1305,7 @@ abstract class Stream<T> {
}
/**
* A subscritption on events from a [Stream].
* A subscription on events from a [Stream].
*
* When you listen on a [Stream] using [Stream.listen],
* a [StreamSubscription] object is returned.

View file

@ -481,17 +481,17 @@ void testStreamEquals() {
Expect.equals(c.stream, c.stream);
c = new StreamController(sync: true);
Expect.equals(c.stream, c.stream);
c = new StreamController(sync: false, onListen:(){});
c = new StreamController(sync: false, onListen: () {});
Expect.equals(c.stream, c.stream);
c = new StreamController(sync: true, onListen:(){});
c = new StreamController(sync: true, onListen: () {});
Expect.equals(c.stream, c.stream);
c = new StreamController.broadcast(sync: false);
Expect.equals(c.stream, c.stream);
c = new StreamController.broadcast(sync: true);
Expect.equals(c.stream, c.stream);
c = new StreamController.broadcast(sync: false, onListen:(){});
c = new StreamController.broadcast(sync: false, onListen: () {});
Expect.equals(c.stream, c.stream);
c = new StreamController.broadcast(sync: true, onListen:(){});
c = new StreamController.broadcast(sync: true, onListen: () {});
Expect.equals(c.stream, c.stream);
}
@ -811,9 +811,9 @@ void testBroadcastSettingCallbacks() {
var stream = controller.stream;
var state = initial;
Expect.throws(() { controller.onPause = (){}; },
Expect.throws(() { controller.onPause = () {}; },
(e) => e is UnsupportedError);
Expect.throws(() { controller.onResume = (){}; },
Expect.throws(() { controller.onResume = () {}; },
(e) => e is UnsupportedError);
controller..onListen = () { state = running; }