Files
sdk/tests/html/location_test.dart
T
2012-08-14 22:36:59 +00:00

19 lines
445 B
Dart

#library('LocationTest');
#import('../../pkg/unittest/unittest.dart');
#import('../../pkg/unittest/html_config.dart');
#import('dart:html');
main() {
useHtmlConfiguration();
test('location hash', () {
final location = window.location;
Expect.isTrue(location is Location);
// The only navigation we dare try is hash.
location.hash = 'hello';
var h = location.hash;
Expect.equals('#hello', h);
});
}