blob: 25f127e09331d5ce579a6bfe1325dc7ae13ad385 [file] [log] [blame]
#library('StorageTest');
#import('../../pkg/unittest/unittest.dart');
#import('../../pkg/unittest/html_config.dart');
#import('dart:html');
main() {
useHtmlConfiguration();
test('GetItem', () {
final value = window.localStorage['does not exist'];
expect(value, isNull);
});
test('SetItem', () {
final key = 'foo';
final value = 'bar';
window.localStorage[key] = value;
final stored = window.localStorage[key];
expect(stored, value);
});
}