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

Unified Diff: tests/lib_strong/html/history_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/lib_strong/html/history_test.dart
diff --git a/tests/lib_strong/html/history_test.dart b/tests/lib_strong/html/history_test.dart
index d801a72a76f6b64743a81f92014e95768aef9d32..907fa7c4aa9d6f524b6178da6a4b691c0169559d 100644
--- a/tests/lib_strong/html/history_test.dart
+++ b/tests/lib_strong/html/history_test.dart
@@ -1,4 +1,5 @@
library HistoryTest;
+
import 'package:unittest/unittest.dart';
import 'package:unittest/html_individual_config.dart';
import 'dart:html';
@@ -30,18 +31,16 @@ main() {
window.history.pushState(null, document.title, '?foo=bar');
expect(window.location.href.endsWith('foo=bar'), isTrue);
-
}, expectation);
});
test('pushState with data', () {
expect(() {
- window.history.pushState({'one' : 1}, document.title, '?dummy');
- expect(window.history.state, equals({'one' : 1}));
+ window.history.pushState({'one': 1}, document.title, '?dummy');
+ expect(window.history.state, equals({'one': 1}));
window.history.pushState(null, document.title, '?foo=bar');
expect(window.location.href.endsWith('foo=bar'), isTrue);
-
}, expectation);
});
@@ -55,7 +54,7 @@ main() {
// Need to wait a frame or two to let the pushState events occur.
new Timer(const Duration(milliseconds: 100), expectAsync(() {
- window.onPopState.first.then(expectAsync((_){
+ window.onPopState.first.then(expectAsync((_) {
expect(window.history.length, length);
expect(window.location.href.endsWith('dummy1'), isTrue);
}));
@@ -85,7 +84,7 @@ main() {
test('hashchangeevent', () {
var expectation = HashChangeEvent.supported ? returnsNormally : throws;
expect(() {
- var event = new HashChangeEvent('change', oldUrl:'old', newUrl: 'new');
+ var event = new HashChangeEvent('change', oldUrl: 'old', newUrl: 'new');
expect(event is HashChangeEvent, true);
expect(event.oldUrl, 'old');
expect(event.newUrl, 'new');

Powered by Google App Engine
This is Rietveld 408576698