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

Side by Side Diff: client/tests/client/dom/StorageTest.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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
OLDNEW
1 #library('StorageTest'); 1 #library('StorageTest');
2 #import('../../../testing/unittest/unittest.dart'); 2 #import('../../../testing/unittest/unittest_dom.dart');
3 #import('dart:dom'); 3 #import('dart:dom');
4 4
5 main() { 5 main() {
6 forLayoutTests(); 6 forLayoutTests();
7 test('GetItem', () { 7 test('GetItem', () {
8 final value = window.localStorage.getItem('does not exist'); 8 final value = window.localStorage.getItem('does not exist');
9 Expect.isNull(value); 9 Expect.isNull(value);
10 }); 10 });
11 test('SetItem', () { 11 test('SetItem', () {
12 final key = 'foo'; 12 final key = 'foo';
13 final value = 'bar'; 13 final value = 'bar';
14 window.localStorage.setItem(key, value); 14 window.localStorage.setItem(key, value);
15 final stored = window.localStorage.getItem(key); 15 final stored = window.localStorage.getItem(key);
16 Expect.equals(value, stored); 16 Expect.equals(value, stored);
17 }); 17 });
18 } 18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698