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

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