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

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

Issue 16832002: Fixing SerializedScriptValue letting Dart list members through to native lists. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « sdk/lib/html/html_common/conversions.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 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 28 matching lines...) Expand all
39 db.close(); 39 db.close();
40 check(value, object); 40 check(value, object);
41 }).catchError((e) { 41 }).catchError((e) {
42 if (db != null) { 42 if (db != null) {
43 db.close(); 43 db.close();
44 } 44 }
45 throw e; 45 throw e;
46 }); 46 });
47 } 47 }
48 48
49 List<String> get nonNativeListData {
50 var list = new List<String>();
51 list.add("data");
52 list.add("clone");
53 list.add("error");
54 list.add("test");
55 return list;
56 }
49 57
50 main() { 58 main() {
51 useHtmlConfiguration(); 59 useHtmlConfiguration();
52 60
53 var obj1 = {'a': 100, 'b': 's'}; 61 var obj1 = {'a': 100, 'b': 's'};
54 var obj2 = {'x': obj1, 'y': obj1}; // DAG. 62 var obj2 = {'x': obj1, 'y': obj1}; // DAG.
55 63
56 var obj3 = {}; 64 var obj3 = {};
57 obj3['a'] = 100; 65 obj3['a'] = 100;
58 obj3['b'] = obj3; // Cycle. 66 obj3['b'] = obj3; // Cycle.
(...skipping 27 matching lines...) Expand all
86 if (idb.IdbFactory.supported) { 94 if (idb.IdbFactory.supported) {
87 go('test_simple', obj1); 95 go('test_simple', obj1);
88 go('test_DAG', obj2); 96 go('test_DAG', obj2);
89 go('test_cycle', obj3); 97 go('test_cycle', obj3);
90 go('test_simple_splay', obj4); 98 go('test_simple_splay', obj4);
91 go('const_array_1', const [const [1], const [2]]); 99 go('const_array_1', const [const [1], const [2]]);
92 go('const_array_dag', const [const [1], const [1]]); 100 go('const_array_dag', const [const [1], const [1]]);
93 go('array_deferred_copy', [1,2,3, obj3, obj3, 6]); 101 go('array_deferred_copy', [1,2,3, obj3, obj3, 6]);
94 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]]);
95 go('cyclic_list', cyclic_list); 103 go('cyclic_list', cyclic_list);
104 go('non-native lists', nonNativeListData);
96 } 105 }
97 } 106 }
OLDNEW
« no previous file with comments | « sdk/lib/html/html_common/conversions.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698