Chromium Code Reviews| Index: tests/html/history_test.dart |
| =================================================================== |
| --- tests/html/history_test.dart (revision 8082) |
| +++ tests/html/history_test.dart (working copy) |
| @@ -7,12 +7,12 @@ |
| useHtmlConfiguration(); |
| test('History', () { |
| window.history.pushState(null, document.title, '?foo=bar'); |
| - expect(window.history.length).equals(2); |
| + expect(window.history.length, equals(2)); |
| window.history.back(); |
| - expect(window.location.href.endsWith('foo=bar')).isTrue(); |
| + expect(window.location.href.endsWith('foo=bar'), isTrue()); |
|
Bob Nystrom
2012/05/30 23:23:51
Use endsWith matcher here?
|
| window.history.replaceState(null, document.title, '?foo=baz'); |
| - Expect.equals(2, window.history.length); |
| - expect(window.location.href.endsWith('foo=baz')).isTrue(); |
| + expect(window.history.length, equals(2)); |
| + expect(window.location.href.endsWith('foo=baz'), isTrue()); |
|
Bob Nystrom
2012/05/30 23:23:51
And here?
|
| }); |
| } |