style(dart): Format with dartfmt v0.2.0

Format all pure Dart code with package:dart_style v0.2.0

Command:
```
find -type f -name "*.dart" | xargs dartformat -w
```
This commit is contained in:
Tim Blasi
2015-08-04 12:05:30 -07:00
parent 450d3630cc
commit f11f4e0b45
145 changed files with 1627 additions and 1013 deletions

View File

@ -1,5 +1,3 @@
library examples.e2e_test.routing.routing_spec;
main() {
}
main() {}

View File

@ -1,5 +1,3 @@
library examples.e2e_test.web_workers.kitchen_sink_spec;
main() {
}
main() {}

View File

@ -1,5 +1,3 @@
library examples.e2e_test.web_workers.todo_spec;
main() {
}
main() {}

View File

@ -5,7 +5,9 @@ import "package:angular2/http.dart" show Jsonp;
import "package:angular2/src/facade/async.dart" show ObservableWrapper;
@Component(selector: "jsonp-app")
@View(directives: const [NgFor], template: '''
@View(
directives: const [NgFor],
template: '''
<h1>people</h1>
<ul class="people">
<li *ng-for="#person of people">

View File

@ -4,7 +4,8 @@ import "package:angular2/src/web-workers/worker/application.dart"
show WorkerMessageBus, WorkerMessageBusSource, WorkerMessageBusSink;
import "package:angular2/src/web-workers/worker/broker.dart"
show MessageBroker, UiArguments;
import "package:angular2/src/web-workers/shared/serializer.dart" show Serializer;
import "package:angular2/src/web-workers/shared/serializer.dart"
show Serializer;
import "dart:isolate";
@ -18,7 +19,8 @@ main(List<String> args, SendPort replyTo) {
}
});
MessageBroker broker = new MessageBroker(bus, new Serializer(null, null, null), null);
MessageBroker broker =
new MessageBroker(bus, new Serializer(null, null, null), null);
var args = new UiArguments("test", "tester");
broker.runOnUiThread(args, String).then((data) {
bus.sink.send({"type": "result", "value": data});

View File

@ -18,8 +18,7 @@ main() {
querySelector("#echo_result")
.appendHtml("<span class='response'>${data['value']}</span>");
} else if (identical(data['type'], "test")) {
bus.sink.send(
{'type': "result", 'id': data['id'], 'value': VALUE});
bus.sink.send({'type': "result", 'id': data['id'], 'value': VALUE});
} else if (identical(data['type'], "result")) {
querySelector("#ui_result")
.appendHtml("<span class='result'>${data['value']}</span>");

View File

@ -16,8 +16,8 @@ main() {
.get('http://localhost:8002/examples/src/benchpress/index.html');
var bindings = [
bind(WebDriverAdapter).toFactory(
() => new AsyncWebDriverAdapter(driver), [])
bind(WebDriverAdapter)
.toFactory(() => new AsyncWebDriverAdapter(driver), [])
];
runner = new Runner(bindings);
});
@ -39,8 +39,7 @@ main() {
Future<WebDriver> createTestDriver() {
Map env = Platform.environment;
return WebDriver.createDriver(
desiredCapabilities: {
return WebDriver.createDriver(desiredCapabilities: {
'name': 'Dartium',
'browserName': 'chrome',
'chromeOptions': {