blob: cb00f86a89395c20f89a48cdc399af2e46c9653e [file] [log] [blame]
library StorageTest;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/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);
});
}