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

Unified Diff: pkg/unittest/lib/unittest.dart

Issue 208593004: pkg/unittest: dartfmt (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: pkg/unittest/lib/unittest.dart
diff --git a/pkg/unittest/lib/unittest.dart b/pkg/unittest/lib/unittest.dart
index 9add42c8b1bb6928ae3d3ebb81d4c20faac0975c..a205aa3c9d5e5930a9bdf573bafac2ee03e80c38 100644
--- a/pkg/unittest/lib/unittest.dart
+++ b/pkg/unittest/lib/unittest.dart
@@ -269,13 +269,13 @@ void test(String spec, TestFunction body) {
ensureInitialized();
if (!_soloTestSeen || _soloNestingLevel > 0) {
var testcase = new TestCase._internal(testCases.length + 1, _fullSpec(spec),
- body);
+ body);
_testCases.add(testcase);
}
}
/** Convenience function for skipping a test. */
-void skip_test(String spec, TestFunction body){}
+void skip_test(String spec, TestFunction body) {}
/**
* Creates a new test case with the given description and body. The
@@ -671,8 +671,7 @@ void _ensureInitialized(bool configAutoStart) {
}
/** Select a solo test by ID. */
-void setSoloTest(int id) =>
- _testCases.retainWhere((t) => t.id == id);
+void setSoloTest(int id) => _testCases.retainWhere((t) => t.id == id);
/** Enable/disable a test by ID. */
void _setTestEnabledState(int testId, bool state) {
@@ -713,7 +712,7 @@ bool formatStacks = true;
bool filterStacks = true;
void _requireNotRunning() {
- if(_currentTestCaseIndex != -1) {
+ if (_currentTestCaseIndex != -1) {
throw new StateError('Not allowed when tests are running.');
}
}
« pkg/unittest/lib/src/core_matchers.dart ('K') | « pkg/unittest/lib/src/simple_configuration.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698