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

Side by Side Diff: tests/html/history_test.dart

Issue 231413003: using unittest via package import (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nits Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/html/hidden_dom_2_test.dart ('k') | tests/html/htmlcollection_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library HistoryTest; 1 library HistoryTest;
2 import '../../pkg/unittest/lib/unittest.dart'; 2 import 'package:unittest/unittest.dart';
3 import '../../pkg/unittest/lib/html_individual_config.dart'; 3 import 'package:unittest/html_individual_config.dart';
4 import 'dart:html'; 4 import 'dart:html';
5 import 'dart:async'; 5 import 'dart:async';
6 6
7 main() { 7 main() {
8 useHtmlIndividualConfiguration(); 8 useHtmlIndividualConfiguration();
9 9
10 group('supported_state', () { 10 group('supported_state', () {
11 test('supportsState', () { 11 test('supportsState', () {
12 expect(History.supportsState, true); 12 expect(History.supportsState, true);
13 }); 13 });
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 var expectation = HashChangeEvent.supported ? returnsNormally : throws; 75 var expectation = HashChangeEvent.supported ? returnsNormally : throws;
76 expect(() { 76 expect(() {
77 var event = new HashChangeEvent('change', oldUrl:'old', newUrl: 'new'); 77 var event = new HashChangeEvent('change', oldUrl:'old', newUrl: 'new');
78 expect(event is HashChangeEvent, true); 78 expect(event is HashChangeEvent, true);
79 expect(event.oldUrl, 'old'); 79 expect(event.oldUrl, 'old');
80 expect(event.newUrl, 'new'); 80 expect(event.newUrl, 'new');
81 }, expectation); 81 }, expectation);
82 }); 82 });
83 }); 83 });
84 } 84 }
OLDNEW
« no previous file with comments | « tests/html/hidden_dom_2_test.dart ('k') | tests/html/htmlcollection_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698