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

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

Issue 145403005: pkg/unittest: formatter spin (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: review nits Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/unittest/lib/html_enhanced_config.dart ('k') | pkg/unittest/lib/src/core_matchers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/interactive_html_config.dart
diff --git a/pkg/unittest/lib/interactive_html_config.dart b/pkg/unittest/lib/interactive_html_config.dart
index baea6e1c6d63eb248fbef66d5d82e1cc97c97584..46be199331217ae25be0b8c9ebebbacede5e4eb9 100644
--- a/pkg/unittest/lib/interactive_html_config.dart
+++ b/pkg/unittest/lib/interactive_html_config.dart
@@ -46,7 +46,7 @@ class _Message {
_Message(this.messageType, [this.elapsed = 0, this.body = '']);
factory _Message.fromString(String msg) {
- if(!msg.startsWith(_PREFIX)) {
+ if (!msg.startsWith(_PREFIX)) {
return null;
}
int idx = msg.indexOf(' ', _PREFIX.length);
@@ -95,7 +95,7 @@ class ChildInteractiveHtmlConfiguration extends HtmlConfiguration {
WindowBase _parentWindow;
/** The time at which tests start. */
- final Map<int,DateTime> _testStarts;
+ final Map<int, DateTime> _testStarts;
ChildInteractiveHtmlConfiguration() :
_testStarts = new Map<int,DateTime>();
@@ -119,7 +119,7 @@ class ChildInteractiveHtmlConfiguration extends HtmlConfiguration {
_parentWindow = e.source;
String search = window.location.search;
int pos = search.indexOf('t=');
- String ids = search.substring(pos+2);
+ String ids = search.substring(pos + 2);
int id = int.parse(ids);
setSoloTest(id);
runTests();
@@ -134,7 +134,7 @@ class ChildInteractiveHtmlConfiguration extends HtmlConfiguration {
/** Record the start time of the test. */
void onTestStart(TestCase testCase) {
super.onTestStart(testCase);
- _testStarts[testCase.id]= new DateTime.now();
+ _testStarts[testCase.id] = new DateTime.now();
}
/**
@@ -165,7 +165,7 @@ class ChildInteractiveHtmlConfiguration extends HtmlConfiguration {
int elapsed = end.difference(_testStarts[testCase.id]).inMilliseconds;
if (testCase.stackTrace != null) {
var message = JSON.encode(testCase.stackTrace.frames.map((frame) {
- return <String, dynamic>{
+ return <String, dynamic> {
"uri": frame.uri.toString(),
"line": frame.line,
"column": frame.column,
@@ -192,7 +192,7 @@ class ChildInteractiveHtmlConfiguration extends HtmlConfiguration {
* in new functions that create child IFrames and run the real tests.
*/
class ParentInteractiveHtmlConfiguration extends HtmlConfiguration {
- final Map<int,DateTime> _testStarts;
+ final Map<int, DateTime> _testStarts;
/** The stack that was posted back from the child, if any. */
@@ -238,7 +238,7 @@ class ParentInteractiveHtmlConfiguration extends HtmlConfiguration {
// Get the result, do any logging, then do a pass/fail.
var msg = new _Message.fromString(e.data);
- if(msg == null) {
+ if (msg == null) {
return;
}
if (msg.messageType == _Message.LOG) {
@@ -302,7 +302,7 @@ class ParentInteractiveHtmlConfiguration extends HtmlConfiguration {
void onTestStart(TestCase testCase) {
var id = testCase.id;
- _testStarts[testCase.id]= new DateTime.now();
+ _testStarts[testCase.id] = new DateTime.now();
super.onTestStart(testCase);
_stack = null;
// Convert the group name to a DOM id.
« no previous file with comments | « pkg/unittest/lib/html_enhanced_config.dart ('k') | pkg/unittest/lib/src/core_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698