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

Unified Diff: tests/html/websql_test.dart

Issue 12218185: Separating Web SQL into dart:web_sql. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
« no previous file with comments | « sdk/lib/web_sql/dartium/web_sql_dartium.dart ('k') | tools/dom/scripts/dartdomgenerator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/websql_test.dart
diff --git a/tests/html/websql_test.dart b/tests/html/websql_test.dart
index 16871b8f63437fbcd2b99cb65366dccdf8d684cb..f98c6bb11b64936fc4ed6b5136bd89d6c4fe3aae 100644
--- a/tests/html/websql_test.dart
+++ b/tests/html/websql_test.dart
@@ -3,6 +3,7 @@ import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_individual_config.dart';
import 'dart:async';
import 'dart:html';
+import 'dart:web_sql';
void fail(message) {
guardAsync(() {
@@ -10,7 +11,7 @@ void fail(message) {
});
}
-Future<SqlTransaction> createTransaction(Database db) {
+Future<SqlTransaction> createTransaction(SqlDatabase db) {
final completer = new Completer<SqlTransaction>();
db.transaction((SqlTransaction transaction) {
@@ -91,13 +92,13 @@ main() {
group('supported', () {
test('supported', () {
- expect(Database.supported, true);
+ expect(SqlDatabase.supported, true);
});
});
group('functional', () {
test('unsupported throws', () {
- var expectation = Database.supported ? returnsNormally : throws;
+ var expectation = SqlDatabase.supported ? returnsNormally : throws;
expect(() {
window.openDatabase('test_db', '1.0', 'test_db', 1024 * 1024);
}, expectation);
@@ -105,7 +106,7 @@ main() {
});
test('Web Database', () {
// Skip if not supported.
- if (!Database.supported) {
+ if (!SqlDatabase.supported) {
return;
}
« no previous file with comments | « sdk/lib/web_sql/dartium/web_sql_dartium.dart ('k') | tools/dom/scripts/dartdomgenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698