blob: fc2b8f99f4ea80a24870051d485266a08dcf277d [file] [log] [blame]
#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);
});
}