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

Side by Side Diff: tests/dom/dart_object_local_storage_test.dart

Issue 10191033: test renaming overhaul: step 4 client tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 | « tests/dom/css_test.dart ('k') | tests/dom/document_test.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 #library('DartObjectLocalStorageTest'); 1 #library('DartObjectLocalStorageTest');
2 #import('../../../../lib/unittest/unittest.dart'); 2 #import('../../lib/unittest/unittest.dart');
3 #import('../../../../lib/unittest/dom_config.dart'); 3 #import('../../lib/unittest/dom_config.dart');
4 #import('dart:dom'); 4 #import('dart:dom');
5 5
6 verify(var object) { 6 verify(var object) {
7 final value = window.document; 7 final value = window.document;
8 object.dartObjectLocalStorage = value; 8 object.dartObjectLocalStorage = value;
9 final stored = object.dartObjectLocalStorage; 9 final stored = object.dartObjectLocalStorage;
10 Expect.equals(value, stored); 10 Expect.equals(value, stored);
11 } 11 }
12 12
13 main() { 13 main() {
(...skipping 11 matching lines...) Expand all
25 verify(storage); 25 verify(storage);
26 }); 26 });
27 test('unknown', () { 27 test('unknown', () {
28 var element = document.createElement('canvas'); 28 var element = document.createElement('canvas');
29 element.id = 'test'; 29 element.id = 'test';
30 document.body.appendChild(element); 30 document.body.appendChild(element);
31 element = document.getElementById('test'); 31 element = document.getElementById('test');
32 verify(element); 32 verify(element);
33 }); 33 });
34 } 34 }
OLDNEW
« no previous file with comments | « tests/dom/css_test.dart ('k') | tests/dom/document_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698