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

Unified Diff: tests/html/xhr_cross_origin_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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: tests/html/xhr_cross_origin_test.dart
diff --git a/tests/html/xhr_cross_origin_test.dart b/tests/html/xhr_cross_origin_test.dart
index 4a5935ce315fe2fefb87b17884035b5ccbfeb5ec..bbc9a6b65916a8f2370dccb9fb367e68f3ffe021 100644
--- a/tests/html/xhr_cross_origin_test.dart
+++ b/tests/html/xhr_cross_origin_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
library XHRCrossOriginTest;
+
import 'package:unittest/unittest.dart';
import 'package:unittest/html_individual_config.dart';
import 'dart:html';
@@ -13,8 +14,8 @@ import "dart:convert";
* [window.location] to determine what the cross-origin port is for
* this test.
*/
- // TODO(efortuna): If we need to use this function frequently, make a
- // url_analyzer library that is part of test.dart that these tests can import.
+// TODO(efortuna): If we need to use this function frequently, make a
+// url_analyzer library that is part of test.dart that these tests can import.
int get crossOriginPort {
var searchUrl = window.location.search;
var crossOriginStr = 'crossOriginPort=';
@@ -34,7 +35,6 @@ main() {
});
group('functional', () {
-
var port = crossOriginPort;
var host = '${window.location.protocol}//${window.location.hostname}:$port';
@@ -81,7 +81,7 @@ main() {
}
test('XHR Cross-domain', () {
- var url = '$host/root_dart/tests/html/xhr_cross_origin_data.txt';
+ var url = '$host/root_dart/tests/html/xhr_cross_origin_data.txt';
var xhr = new HttpRequest();
xhr.open('GET', url, async: true);
var validate = expectAsync((data) {

Powered by Google App Engine
This is Rietveld 408576698