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

Side by Side Diff: test/returning_future_test.dart

Issue 846143003: Reformatted code (Closed) Base URL: https://github.com/dart-lang/unittest.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « test/protect_async_test.dart ('k') | test/returning_future_using_runasync_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 unittest.returning_future_test; 5 library unittest.returning_future_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:metatest/metatest.dart'; 9 import 'package:metatest/metatest.dart';
10 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 excesscallback(); 45 excesscallback();
46 excesscallback(); 46 excesscallback();
47 callback(); 47 callback();
48 }); 48 });
49 }); 49 });
50 test("fail2", () { 50 test("fail2", () {
51 return new Future.sync(() { 51 return new Future.sync(() {
52 fail('failure'); 52 fail('failure');
53 }); 53 });
54 }); 54 });
55 test('foo5', () { 55 test('foo5', () {});
56 }); 56 }, [
57 }, [{ 57 {'result': 'pass'},
58 'result': 'pass' 58 {
59 }, { 59 'result': 'fail',
60 'result': 'fail', 60 'message': 'Callback called more times than expected (1).'
61 'message': 'Callback called more times than expected (1).' 61 },
62 }, { 62 {'result': 'fail', 'message': 'Expected: <false>\n Actual: <true>\n'},
63 'result': 'fail', 63 {
64 'message': 'Expected: <false>\n Actual: <true>\n' 64 'result': 'fail',
65 }, { 65 'message': 'Callback called more times than expected (1).'
66 'result': 'fail', 66 },
67 'message': 'Callback called more times than expected (1).' 67 {'result': 'fail', 'message': 'failure'},
68 }, { 68 {'result': 'pass'}
69 'result': 'fail', 69 ]);
70 'message': 'failure'
71 }, {
72 'result': 'pass'
73 }]);
74 } 70 }
OLDNEW
« no previous file with comments | « test/protect_async_test.dart ('k') | test/returning_future_using_runasync_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698