Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: dart/dom/Storage.dart

Issue 9147009: Added new html/LocalStorage test (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit/LayoutTests
Patch Set: Enable working tests Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/dom/DartObjectLocalStorage-expected.txt ('k') | dart/html/LocalStorage.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/dom/Storage.dart
diff --git a/dart/dom/Storage.dart b/dart/dom/Storage.dart
index 20756d3dc8568ed215fd64ac19d4e5076818ad22..9de2398c53b0ac6a7855c3808964f9983feda76c 100644
--- a/dart/dom/Storage.dart
+++ b/dart/dom/Storage.dart
@@ -7,4 +7,11 @@ main() {
final value = window.localStorage.getItem('does not exist');
Expect.isNull(value);
});
+ test('SetItem', () {
+ final key = 'foo';
+ final value = 'bar';
+ window.localStorage.setItem(key, value);
+ final stored = window.localStorage.getItem(key);
+ Expect.equals(value, stored);
+ });
}
« no previous file with comments | « dart/dom/DartObjectLocalStorage-expected.txt ('k') | dart/html/LocalStorage.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698