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

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

Issue 12388094: Removing futureTest test method (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
OLDNEW
1 library IndexedDB1Test; 1 library IndexedDB1Test;
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' as idb; 6 import 'dart:indexed_db' as idb;
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'utils.dart'; 8 import 'utils.dart';
9 9
10 // Write and re-read Maps: simple Maps; Maps with DAGs; Maps with cycles. 10 // Write and re-read Maps: simple Maps; Maps with DAGs; Maps with cycles.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 obj3['a'] = 100; 57 obj3['a'] = 100;
58 obj3['b'] = obj3; // Cycle. 58 obj3['b'] = obj3; // Cycle.
59 59
60 var obj4 = new SplayTreeMap<String, dynamic>(); // Different implementation. 60 var obj4 = new SplayTreeMap<String, dynamic>(); // Different implementation.
61 obj4['a'] = 100; 61 obj4['a'] = 100;
62 obj4['b'] = 's'; 62 obj4['b'] = 's';
63 63
64 var cyclic_list = [1, 2, 3]; 64 var cyclic_list = [1, 2, 3];
65 cyclic_list[1] = cyclic_list; 65 cyclic_list[1] = cyclic_list;
66 66
67 go(name, data) => futureTest(name, 67 go(name, data) => test(name,
68 () => testReadWrite(123, data, verifyGraph)); 68 () => testReadWrite(123, data, verifyGraph));
69 69
70 test('test_verifyGraph', () { 70 test('test_verifyGraph', () {
71 // Nice to know verifyGraph is working before we rely on it. 71 // Nice to know verifyGraph is working before we rely on it.
72 verifyGraph(obj4, obj4); 72 verifyGraph(obj4, obj4);
73 verifyGraph(obj1, new Map.from(obj1)); 73 verifyGraph(obj1, new Map.from(obj1));
74 verifyGraph(obj4, new Map.from(obj4)); 74 verifyGraph(obj4, new Map.from(obj4));
75 75
76 var l1 = [1,2,3]; 76 var l1 = [1,2,3];
77 var l2 = [const [1, 2, 3], const [1, 2, 3]]; 77 var l2 = [const [1, 2, 3], const [1, 2, 3]];
(...skipping 10 matching lines...) Expand all
88 go('test_DAG', obj2); 88 go('test_DAG', obj2);
89 go('test_cycle', obj3); 89 go('test_cycle', obj3);
90 go('test_simple_splay', obj4); 90 go('test_simple_splay', obj4);
91 go('const_array_1', const [const [1], const [2]]); 91 go('const_array_1', const [const [1], const [2]]);
92 go('const_array_dag', const [const [1], const [1]]); 92 go('const_array_dag', const [const [1], const [1]]);
93 go('array_deferred_copy', [1,2,3, obj3, obj3, 6]); 93 go('array_deferred_copy', [1,2,3, obj3, obj3, 6]);
94 go('array_deferred_copy_2', [1,2,3, [4, 5, obj3], [obj3, 6]]); 94 go('array_deferred_copy_2', [1,2,3, [4, 5, obj3], [obj3, 6]]);
95 go('cyclic_list', cyclic_list); 95 go('cyclic_list', cyclic_list);
96 } 96 }
97 } 97 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698