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

Unified Diff: tests/html/inner_frame_test.dart

Issue 12040059: Converting tests over to using event streams. (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 side-by-side diff with in-line comments
Download patch
Index: tests/html/inner_frame_test.dart
diff --git a/tests/html/inner_frame_test.dart b/tests/html/inner_frame_test.dart
index ef42a8420516e860a4b27b6b3ccb153c3dcc7ce5..300192524e4df8cea01ad5aaeab17e8587c28a19 100644
--- a/tests/html/inner_frame_test.dart
+++ b/tests/html/inner_frame_test.dart
@@ -10,7 +10,7 @@ main() {
// The child's frame should not be able to access its parent's
// document.
- window.on.message.add((Event e) {
+ window.onMessage.listen((Event e) {
switch (e.data) {
case 'frameElement': {
// Check window.frameElement.
@@ -74,13 +74,13 @@ main() {
var child;
test('prepare', () {
- iframe.on.load.add(expectAsync1((e) { child = iframe.contentWindow;}));
+ iframe.onLoad.listen(expectAsync1((e) { child = iframe.contentWindow;}));
document.body.nodes.add(iframe);
});
final validate = (testName, verify) {
final expectedVerify = expectAsync0(verify);
- window.on.message.add((e) {
+ window.onMessage.listen((e) {
guardAsync(() {
if (e.data == 'pass_$testName') {
expectedVerify();

Powered by Google App Engine
This is Rietveld 408576698