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

Side by Side Diff: tests/lib/math/rectangle_test.dart

Issue 2656743002: Remove package:unittest from some tests (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « tests/lib/math/point_test.dart ('k') | tests/lib/mirrors/library_uri_io_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 rect_test; 5 library rect_test;
6 6
7 import 'dart:math'; 7 import 'dart:math';
8 import 'package:unittest/unittest.dart'; 8 import 'package:test/test.dart';
9 9
10 main() { 10 main() {
11 Rectangle createRectangle(List<num> a) { 11 Rectangle createRectangle(List<num> a) {
12 return a != null ? new Rectangle(a[0], a[1], a[2] - a[0], a[3] - a[1]) 12 return a != null ? new Rectangle(a[0], a[1], a[2] - a[0], a[3] - a[1])
13 : null; 13 : null;
14 } 14 }
15 15
16 test('construction', () { 16 test('construction', () {
17 var r0 = new Rectangle(10, 20, 30, 40); 17 var r0 = new Rectangle(10, 20, 30, 40);
18 expect(r0.toString(), 'Rectangle (10, 20) 30 x 40'); 18 expect(r0.toString(), 'Rectangle (10, 20) 30 x 40');
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 for (var r in rectangles) { 241 for (var r in rectangles) {
242 expect(r.containsPoint(new Point(0, 1)), false); 242 expect(r.containsPoint(new Point(0, 1)), false);
243 expect(r.containsRectangle(new Rectangle(0, 1, 2, 3)), false); 243 expect(r.containsRectangle(new Rectangle(0, 1, 2, 3)), false);
244 expect(r.intersects(new Rectangle(0, 1, 2, 3)), false); 244 expect(r.intersects(new Rectangle(0, 1, 2, 3)), false);
245 expect(r.bottom, isNaN); 245 expect(r.bottom, isNaN);
246 expect(r.height, isNaN); 246 expect(r.height, isNaN);
247 } 247 }
248 }); 248 });
249 } 249 }
250 250
OLDNEW
« no previous file with comments | « tests/lib/math/point_test.dart ('k') | tests/lib/mirrors/library_uri_io_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698