OLD | NEW |
1 #library('DartObjectLocalStorageTest'); | 1 #library('DartObjectLocalStorageTest'); |
2 #import('../../lib/unittest/unittest.dart'); | 2 #import('../../pkg/unittest/unittest.dart'); |
3 #import('../../lib/unittest/html_config.dart'); | 3 #import('../../pkg/unittest/html_config.dart'); |
4 #import('dart:html'); | 4 #import('dart:html'); |
5 | 5 |
6 // TODO(vsm): Rename this to wrapper_caching_test or similar. It's | 6 // TODO(vsm): Rename this to wrapper_caching_test or similar. It's |
7 // basically a port of dom/dart_object_local_storage_test.dart. For | 7 // basically a port of dom/dart_object_local_storage_test.dart. For |
8 // wrapping implementation of dart:html (i.e., the dartium one), it is | 8 // wrapping implementation of dart:html (i.e., the dartium one), it is |
9 // effectively testing dart_object_local_storage in the underlying dom | 9 // effectively testing dart_object_local_storage in the underlying dom |
10 // object. | 10 // object. |
11 main() { | 11 main() { |
12 useHtmlConfiguration(); | 12 useHtmlConfiguration(); |
13 | 13 |
(...skipping 11 matching lines...) Expand all Loading... |
25 Expect.equals(localStorage, window.localStorage); | 25 Expect.equals(localStorage, window.localStorage); |
26 }); | 26 }); |
27 test('sessionStorage', () { | 27 test('sessionStorage', () { |
28 Expect.equals(sessionStorage, window.sessionStorage); | 28 Expect.equals(sessionStorage, window.sessionStorage); |
29 }); | 29 }); |
30 test('unknown', () { | 30 test('unknown', () { |
31 var test = document.query('#test'); | 31 var test = document.query('#test'); |
32 Expect.equals(element, test); | 32 Expect.equals(element, test); |
33 }); | 33 }); |
34 } | 34 } |
OLD | NEW |