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

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

Issue 11312237: Dynamic -> dynamic. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | « sdk/lib/io/http_session.dart ('k') | tests/html/postmessage_structured_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:html'; 4 import 'dart:html';
5 import 'dart:collection'; 5 import 'dart:collection';
6 import 'utils.dart'; 6 import 'utils.dart';
7 7
8 // Write and re-read Maps: simple Maps; Maps with DAGs; Maps with cycles. 8 // Write and re-read Maps: simple Maps; Maps with DAGs; Maps with cycles.
9 9
10 const String DB_NAME = 'Test'; 10 const String DB_NAME = 'Test';
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 main() { 91 main() {
92 useHtmlConfiguration(); 92 useHtmlConfiguration();
93 93
94 var obj1 = {'a': 100, 'b': 's'}; 94 var obj1 = {'a': 100, 'b': 's'};
95 var obj2 = {'x': obj1, 'y': obj1}; // DAG. 95 var obj2 = {'x': obj1, 'y': obj1}; // DAG.
96 96
97 var obj3 = {}; 97 var obj3 = {};
98 obj3['a'] = 100; 98 obj3['a'] = 100;
99 obj3['b'] = obj3; // Cycle. 99 obj3['b'] = obj3; // Cycle.
100 100
101 var obj4 = new SplayTreeMap<String, Dynamic>(); // Different implementation. 101 var obj4 = new SplayTreeMap<String, dynamic>(); // Different implementation.
102 obj4['a'] = 100; 102 obj4['a'] = 100;
103 obj4['b'] = 's'; 103 obj4['b'] = 's';
104 104
105 var cyclic_list = [1, 2, 3]; 105 var cyclic_list = [1, 2, 3];
106 cyclic_list[1] = cyclic_list; 106 cyclic_list[1] = cyclic_list;
107 107
108 go(name, data) => test(name, testReadWrite(123, data, verifyGraph)); 108 go(name, data) => test(name, testReadWrite(123, data, verifyGraph));
109 109
110 test('test_verifyGraph', () { 110 test('test_verifyGraph', () {
111 // Nice to know verifyGraph is working before we rely on it. 111 // Nice to know verifyGraph is working before we rely on it.
(...skipping 12 matching lines...) Expand all
124 go('test_simple', obj1); 124 go('test_simple', obj1);
125 go('test_DAG', obj2); 125 go('test_DAG', obj2);
126 go('test_cycle', obj3); 126 go('test_cycle', obj3);
127 go('test_simple_splay', obj4); 127 go('test_simple_splay', obj4);
128 go('const_array_1', const [const [1], const [2]]); 128 go('const_array_1', const [const [1], const [2]]);
129 go('const_array_dag', const [const [1], const [1]]); 129 go('const_array_dag', const [const [1], const [1]]);
130 go('array_deferred_copy', [1,2,3, obj3, obj3, 6]); 130 go('array_deferred_copy', [1,2,3, obj3, obj3, 6]);
131 go('array_deferred_copy_2', [1,2,3, [4, 5, obj3], [obj3, 6]]); 131 go('array_deferred_copy_2', [1,2,3, [4, 5, obj3], [obj3, 6]]);
132 go('cyclic_list', cyclic_list); 132 go('cyclic_list', cyclic_list);
133 } 133 }
OLDNEW
« no previous file with comments | « sdk/lib/io/http_session.dart ('k') | tests/html/postmessage_structured_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698