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

Unified Diff: tests/dom/dart_object_local_storage_test.dart

Issue 10222026: Migrate dom tests to dart:html. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase & address comments. Created 8 years, 8 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
Index: tests/dom/dart_object_local_storage_test.dart
diff --git a/tests/dom/dart_object_local_storage_test.dart b/tests/dom/dart_object_local_storage_test.dart
index 9b5b40a67f7ccc551402efe513c0e21543b05414..ca8b295699a5e187d99f16566618ca82eef8760a 100644
--- a/tests/dom/dart_object_local_storage_test.dart
+++ b/tests/dom/dart_object_local_storage_test.dart
@@ -1,7 +1,7 @@
#library('DartObjectLocalStorageTest');
#import('../../lib/unittest/unittest.dart');
-#import('../../lib/unittest/dom_config.dart');
-#import('dart:dom');
+#import('../../lib/unittest/html_config.dart');
+#import('dart:html');
verify(var object) {
final value = window.document;
@@ -11,9 +11,9 @@ verify(var object) {
}
main() {
- useDomConfiguration();
+ useHtmlConfiguration();
test('body', () {
- HTMLBodyElement body = document.body;
+ BodyElement body = document.body;
verify(body);
});
test('localStorage', () {
@@ -25,10 +25,10 @@ main() {
verify(storage);
});
test('unknown', () {
- var element = document.createElement('canvas');
+ var element = new Element.tag('canvas');
element.id = 'test';
- document.body.appendChild(element);
- element = document.getElementById('test');
+ document.body.nodes.add(element);
+ element = document.query('#test');
verify(element);
});
}

Powered by Google App Engine
This is Rietveld 408576698