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

Unified Diff: tests/html/indexeddb_2_test.dart

Issue 11419300: Dartifying dart:html type names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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/html/indexeddb_2_test.dart
diff --git a/tests/html/indexeddb_2_test.dart b/tests/html/indexeddb_2_test.dart
index be3c3c1c3b748613e04ddbd4934268be065f043c..e716e6bedccae8403799293bcb61c86d47250e72 100644
--- a/tests/html/indexeddb_2_test.dart
+++ b/tests/html/indexeddb_2_test.dart
@@ -1,7 +1,8 @@
library IndexedDB1Test;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_config.dart';
-import 'dart:html';
+import 'dart:html' as html;
+import 'dart:indexed_db' as idb;
import 'dart:collection';
import 'utils.dart';
@@ -66,11 +67,11 @@ testReadWrite(key, value, check,
}
openDb(e) {
- var request = window.indexedDB.open(dbName, version);
+ var request = html.window.indexedDB.open(dbName, version);
expect(request, isNotNull);
request.on.success.add(expectAsync1(initDb));
request.on.error.add(fail);
- if (request is IDBOpenDBRequest) {
+ if (request is idb.OpenDBRequest) {
// New upgrade protocol. Old API has no 'upgradeNeeded' and uses
// setVersion instead.
request.on.upgradeNeeded.add((e) {
@@ -82,7 +83,7 @@ testReadWrite(key, value, check,
}
// Delete any existing DB.
- var deleteRequest = window.indexedDB.deleteDatabase(dbName);
+ var deleteRequest = html.window.indexedDB.deleteDatabase(dbName);
deleteRequest.on.success.add(expectAsync1(openDb));
deleteRequest.on.error.add(fail);
};

Powered by Google App Engine
This is Rietveld 408576698