Files
sdk/tests/html/location_test.dart
T
2012-06-13 23:40:30 +00:00

19 lines
445 B
Dart

#library('LocationTest');
#import('../../lib/unittest/unittest.dart');
#import('../../lib/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);
});
}