| Index: tests/html/location_test.dart
|
| diff --git a/tests/html/location_test.dart b/tests/html/location_test.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..79dba7cdc286877b270b1d6edf5d386934cfb528
|
| --- /dev/null
|
| +++ b/tests/html/location_test.dart
|
| @@ -0,0 +1,18 @@
|
| +#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);
|
| + });
|
| +}
|
|
|