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

Side by Side Diff: pkg/dev_compiler/test/codegen/lib/html/indexeddb_2_test.dart

Issue 2413073002: Start cleaning up the HTML tests. (Closed)
Patch Set: Unfork expect.dart. Created 4 years, 2 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
OLDNEW
1 library IndexedDB1Test; 1 library IndexedDB1Test;
2 import 'package:unittest/unittest.dart'; 2 import 'package:unittest/unittest.dart';
3 import 'package:unittest/html_config.dart'; 3 import 'package:unittest/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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 var obj2 = {'x': obj1, 'y': obj1}; // DAG. 62 var obj2 = {'x': obj1, 'y': obj1}; // DAG.
63 63
64 var obj3 = {}; 64 var obj3 = {};
65 obj3['a'] = 100; 65 obj3['a'] = 100;
66 obj3['b'] = obj3; // Cycle. 66 obj3['b'] = obj3; // Cycle.
67 67
68 var obj4 = new SplayTreeMap<String, dynamic>(); // Different implementation. 68 var obj4 = new SplayTreeMap<String, dynamic>(); // Different implementation.
69 obj4['a'] = 100; 69 obj4['a'] = 100;
70 obj4['b'] = 's'; 70 obj4['b'] = 's';
71 71
72 var cyclic_list = [1, 2, 3]; 72 var cyclic_list = <Object>[1, 2, 3];
73 cyclic_list[1] = cyclic_list; 73 cyclic_list[1] = cyclic_list;
74 74
75 go(name, data) => test(name, 75 go(name, data) => test(name,
76 () => testReadWrite(123, data, verifyGraph)); 76 () => testReadWrite(123, data, verifyGraph));
77 77
78 test('test_verifyGraph', () { 78 test('test_verifyGraph', () {
79 // Nice to know verifyGraph is working before we rely on it. 79 // Nice to know verifyGraph is working before we rely on it.
80 verifyGraph(obj4, obj4); 80 verifyGraph(obj4, obj4);
81 verifyGraph(obj1, new Map.from(obj1)); 81 verifyGraph(obj1, new Map.from(obj1));
82 verifyGraph(obj4, new Map.from(obj4)); 82 verifyGraph(obj4, new Map.from(obj4));
(...skipping 14 matching lines...) Expand all
97 go('test_cycle', obj3); 97 go('test_cycle', obj3);
98 go('test_simple_splay', obj4); 98 go('test_simple_splay', obj4);
99 go('const_array_1', const [const [1], const [2]]); 99 go('const_array_1', const [const [1], const [2]]);
100 go('const_array_dag', const [const [1], const [1]]); 100 go('const_array_dag', const [const [1], const [1]]);
101 go('array_deferred_copy', [1,2,3, obj3, obj3, 6]); 101 go('array_deferred_copy', [1,2,3, obj3, obj3, 6]);
102 go('array_deferred_copy_2', [1,2,3, [4, 5, obj3], [obj3, 6]]); 102 go('array_deferred_copy_2', [1,2,3, [4, 5, obj3], [obj3, 6]]);
103 go('cyclic_list', cyclic_list); 103 go('cyclic_list', cyclic_list);
104 go('non-native lists', nonNativeListData); 104 go('non-native lists', nonNativeListData);
105 } 105 }
106 } 106 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698