Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #library('LocationTest'); | |
| 2 #import('../../lib/unittest/unittest.dart'); | |
| 3 #import('../../lib/unittest/html_config.dart'); | |
| 4 #import('dart:html'); | |
| 5 | |
| 6 main() { | |
| 7 useHtmlConfiguration(); | |
| 8 | |
| 9 test('location hash', () { | |
| 10 final location = window.location; | |
| 11 Expect.isTrue(location is Location); | |
| 12 | |
| 13 // The only navigation we dare try is hash. | |
| 14 location.hash = 'hello'; | |
| 15 var h = location.hash; | |
| 16 Expect.equals('#hello', h); | |
| 17 }); | |
| 18 } | |
| OLD | NEW |