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

Unified Diff: pkg/unittest/test/pretty_print_test.dart

Issue 15492003: Split out unittest tests whose behavior differs in minified mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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: pkg/unittest/test/pretty_print_test.dart
diff --git a/pkg/unittest/test/pretty_print_test.dart b/pkg/unittest/test/pretty_print_test.dart
index 7d5eda90ae8b17dbba8a562de4a91df246baad8a..e5cd2e2c61f3c960e039f3559fc7a70415e57347 100644
--- a/pkg/unittest/test/pretty_print_test.dart
+++ b/pkg/unittest/test/pretty_print_test.dart
@@ -2,25 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import 'dart:collection';
-
import 'package:unittest/src/pretty_print.dart';
import 'package:unittest/unittest.dart';
-class DefaultToString {}
-
-class CustomToString {
- String toString() => "string representation";
-}
-
-class _PrivateName {
- String toString() => "string representation";
-}
-
-class _PrivateNameIterable extends IterableMixin {
- Iterator get iterator => [1, 2, 3].iterator;
-}
-
void main() {
test('with primitive objects', () {
expect(prettyPrint(12), equals('<12>'));
@@ -31,21 +15,6 @@ void main() {
matches(r'<Closure(: \(dynamic\) => dynamic)?>'));
});
- test('with an object with a default [toString]', () {
- expect(prettyPrint(new DefaultToString()),
- equals("<Instance of 'DefaultToString'>"));
- });
-
- test('with an object with a custom [toString]', () {
- expect(prettyPrint(new CustomToString()),
- equals('CustomToString:<string representation>'));
- });
-
- test('with an object with a custom [toString] and a private name', () {
- expect(prettyPrint(new _PrivateName()),
- equals('?:<string representation>'));
- });
-
group('with a string', () {
test('containing simple characters', () {
expect(prettyPrint('foo'), equals("'foo'"));
@@ -132,16 +101,6 @@ void main() {
equals("[0, 1, 2, 3, 4, 5, 6, 7, ...]"));
});
- test("that's not a list", () {
- expect(prettyPrint([1, 2, 3, 4].map((n) => n * 2)),
- equals("MappedListIterable:[2, 4, 6, 8]"));
- });
-
- test("that's not a list and has a private name", () {
- expect(prettyPrint(new _PrivateNameIterable()),
- equals("?:[1, 2, 3]"));
- });
-
test("that's recursive", () {
var list = [1, 2, 3];
list.add(list);

Powered by Google App Engine
This is Rietveld 408576698