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

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

Issue 13251003: pkg/unittest: readonly view of testCase collection (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nit Created 7 years, 9 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
« no previous file with comments | « pkg/unittest/lib/unittest.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/test/unittest_test.dart
diff --git a/pkg/unittest/test/unittest_test.dart b/pkg/unittest/test/unittest_test.dart
index 31d5bcc285f2f625b6e49c1cf168ae52bd48cc01..7f62c503cf542d84348c78d4fcfb0ebb6aefeb81 100644
--- a/pkg/unittest/test/unittest_test.dart
+++ b/pkg/unittest/test/unittest_test.dart
@@ -294,6 +294,11 @@ runTest() {
});
test('foo6', () {
});
+ } else if (testName == 'testCases immutable') {
+ test(testName, () {
+ expect(() => testCases.clear(), throwsUnsupportedError);
+ expect(() => testCases.removeLast(), throwsUnsupportedError);
+ });
}
});
}
@@ -329,7 +334,8 @@ main() {
'middle exception test',
'async setup/teardown test',
'test returning future',
- 'test returning future using Timer'
+ 'test returning future using Timer',
+ 'testCases immutable'
];
expected = [
@@ -376,6 +382,7 @@ main() {
'fail2:failure:'
'error2:Callback called more times than expected (1).:'
'foo6'),
+ buildStatusString(1, 0, 0, 'testCases immutable'),
];
actual = [];
« no previous file with comments | « pkg/unittest/lib/unittest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698