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

Unified Diff: client/tests/client/dom/SerializedScriptValueTest.dart

Issue 10222026: Migrate dom tests to dart:html. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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: client/tests/client/dom/SerializedScriptValueTest.dart
diff --git a/client/tests/client/dom/SerializedScriptValueTest.dart b/client/tests/client/dom/SerializedScriptValueTest.dart
index 6e609822c5d2ac18e51cc501c974a319982a73f1..81a2acf63bf4b82869f8ba069f9b3a3b516d9f3a 100644
--- a/client/tests/client/dom/SerializedScriptValueTest.dart
+++ b/client/tests/client/dom/SerializedScriptValueTest.dart
@@ -1,19 +1,19 @@
#library('SerializedScriptValueTest');
#import('../../../../lib/unittest/unittest.dart');
-#import('../../../../lib/unittest/dom_config.dart');
-#import('dart:dom');
+#import('../../../../lib/unittest/html_config.dart');
+#import('dart:html');
#import('utils.dart');
serializationTest(name, value) => test(name, () {
// To check how value is serialized and deserialized, we create a MessageEvent.
- final event = document.createEvent('MessageEvent');
+ final event = document.$dom_createEvent('MessageEvent');
event.initMessageEvent('', false, false, value, '', '', window, []);
verifyGraph(value, event.data);
});
main() {
- useDomConfiguration();
+ useHtmlConfiguration();
serializationTest('null', null);
serializationTest('int', 1);

Powered by Google App Engine
This is Rietveld 408576698