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

Side by Side Diff: dart/html/LocalStorage.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « dart/dom/Storage.dart ('k') | dart/html/LocalStorage.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #import('../../../../../dart/client/testing/unittest/unittest.dart');
2 #import('dart:html');
3
4 main() {
5 forLayoutTests();
6 test('GetItem', () {
7 final value = window.localStorage.getItem('does not exist');
8 Expect.isNull(value);
9 });
10 test('SetItem', () {
11 final key = 'foo';
12 final value = 'bar';
13 window.localStorage.setItem(key, value);
14 final stored = window.localStorage.getItem(key);
15 Expect.equals(value, stored);
16 });
17 }
OLDNEW
« no previous file with comments | « dart/dom/Storage.dart ('k') | dart/html/LocalStorage.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698