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

Side by Side Diff: tests/html/indexeddb_4_test.dart

Issue 12723012: Attempting to fix indexed_db IE10 test timeouts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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/html/indexeddb_3_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library IndexedDB4Test; 1 library IndexedDB4Test;
2 import '../../pkg/unittest/lib/unittest.dart'; 2 import '../../pkg/unittest/lib/unittest.dart';
3 import '../../pkg/unittest/lib/html_config.dart'; 3 import '../../pkg/unittest/lib/html_config.dart';
4 import 'dart:async'; 4 import 'dart:async';
5 import 'dart:html' as html; 5 import 'dart:html' as html;
6 import 'dart:indexed_db'; 6 import 'dart:indexed_db';
7 7
8 // Test for KeyRange and Cursor. 8 // Test for KeyRange and Cursor.
9 9
10 const String DB_NAME = 'Test'; 10 const String DB_NAME = 'Test4';
11 const String STORE_NAME = 'TEST'; 11 const String STORE_NAME = 'TEST';
12 const int VERSION = 1; 12 const int VERSION = 1;
13 13
14 Future<Database> createAndOpenDb() { 14 Future<Database> createAndOpenDb() {
15 return html.window.indexedDB.deleteDatabase(DB_NAME).then((_) { 15 return html.window.indexedDB.deleteDatabase(DB_NAME).then((_) {
16 return html.window.indexedDB.open(DB_NAME, version: VERSION, 16 return html.window.indexedDB.open(DB_NAME, version: VERSION,
17 onUpgradeNeeded: (e) { 17 onUpgradeNeeded: (e) {
18 var db = e.target.result; 18 var db = e.target.result;
19 db.createObjectStore(STORE_NAME); 19 db.createObjectStore(STORE_NAME);
20 }); 20 });
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 bound4() => 124 bound4() =>
125 // OPTIONALS testRange(db, new KeyRange.bound(20, 30, lowerOpen: true), 125 // OPTIONALS testRange(db, new KeyRange.bound(20, 30, lowerOpen: true),
126 testRange(db, new KeyRange.bound(20, 30, true), 21, 30); 126 testRange(db, new KeyRange.bound(20, 30, true), 21, 30);
127 127
128 bound5() => 128 bound5() =>
129 // OPTIONALS testRange(db, new KeyRange.bound(20, 30, lowerOpen: true, u pperOpen: true), 129 // OPTIONALS testRange(db, new KeyRange.bound(20, 30, lowerOpen: true, u pperOpen: true),
130 testRange(db, new KeyRange.bound(20, 30, true, true), 21, 29); 130 testRange(db, new KeyRange.bound(20, 30, true, true), 21, 29);
131 } 131 }
132 } 132 }
OLDNEW
« no previous file with comments | « tests/html/indexeddb_3_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698