OLD | NEW |
1 dart_library.library('lib/html/indexeddb_1_test', null, /* Imports */[ | 1 dart_library.library('lib/html/indexeddb_1_test', null, /* Imports */[ |
2 'dart_sdk', | 2 'dart_sdk', |
3 'unittest' | 3 'unittest' |
4 ], function load__indexeddb_1_test(exports, dart_sdk, unittest) { | 4 ], function load__indexeddb_1_test(exports, dart_sdk, unittest) { |
5 'use strict'; | 5 'use strict'; |
6 const core = dart_sdk.core; | 6 const core = dart_sdk.core; |
7 const indexed_db = dart_sdk.indexed_db; | 7 const indexed_db = dart_sdk.indexed_db; |
8 const html = dart_sdk.html; | 8 const html = dart_sdk.html; |
9 const async = dart_sdk.async; | 9 const async = dart_sdk.async; |
10 const _interceptors = dart_sdk._interceptors; | 10 const _interceptors = dart_sdk._interceptors; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 }; | 140 }; |
141 dart.fn(indexeddb_1_test.testReadWriteTyped, dynamicAnddynamicAnddynamic__Tody
namic()); | 141 dart.fn(indexeddb_1_test.testReadWriteTyped, dynamicAnddynamicAnddynamic__Tody
namic()); |
142 indexeddb_1_test.testTypes = function(testFunction) { | 142 indexeddb_1_test.testTypes = function(testFunction) { |
143 unittest$.test('String', unittest$.TestFunction._check(dart.dcall(testFuncti
on, 123, 'Hoot!', src__matcher__core_matchers.equals('Hoot!')))); | 143 unittest$.test('String', unittest$.TestFunction._check(dart.dcall(testFuncti
on, 123, 'Hoot!', src__matcher__core_matchers.equals('Hoot!')))); |
144 unittest$.test('int', unittest$.TestFunction._check(dart.dcall(testFunction,
123, 12345, src__matcher__core_matchers.equals(12345)))); | 144 unittest$.test('int', unittest$.TestFunction._check(dart.dcall(testFunction,
123, 12345, src__matcher__core_matchers.equals(12345)))); |
145 unittest$.test('List', unittest$.TestFunction._check(dart.dcall(testFunction
, 123, JSArrayOfint().of([1, 2, 3]), src__matcher__core_matchers.equals(JSArrayO
fint().of([1, 2, 3]))))); | 145 unittest$.test('List', unittest$.TestFunction._check(dart.dcall(testFunction
, 123, JSArrayOfint().of([1, 2, 3]), src__matcher__core_matchers.equals(JSArrayO
fint().of([1, 2, 3]))))); |
146 unittest$.test('List 2', unittest$.TestFunction._check(dart.dcall(testFuncti
on, 123, JSArrayOfint().of([2, 3, 4]), src__matcher__core_matchers.equals(JSArra
yOfint().of([2, 3, 4]))))); | 146 unittest$.test('List 2', unittest$.TestFunction._check(dart.dcall(testFuncti
on, 123, JSArrayOfint().of([2, 3, 4]), src__matcher__core_matchers.equals(JSArra
yOfint().of([2, 3, 4]))))); |
147 unittest$.test('bool', unittest$.TestFunction._check(dart.dcall(testFunction
, 123, JSArrayOfbool().of([true, false]), src__matcher__core_matchers.equals(JSA
rrayOfbool().of([true, false]))))); | 147 unittest$.test('bool', unittest$.TestFunction._check(dart.dcall(testFunction
, 123, JSArrayOfbool().of([true, false]), src__matcher__core_matchers.equals(JSA
rrayOfbool().of([true, false]))))); |
148 unittest$.test('largeInt', unittest$.TestFunction._check(dart.dcall(testFunc
tion, 123, 1371854424211, src__matcher__core_matchers.equals("1371854424211"), n
ull, indexeddb_1_test.STORE_NAME, indexeddb_1_test.VERSION, true))); | 148 unittest$.test('largeInt', unittest$.TestFunction._check(dart.dcall(testFunc
tion, 123, 1371854424211, src__matcher__core_matchers.equals("1371854424211"), n
ull, indexeddb_1_test.STORE_NAME, indexeddb_1_test.VERSION, true))); |
149 unittest$.test('largeDoubleConvertedToInt', unittest$.TestFunction._check(da
rt.dcall(testFunction, 123, 1371854424211.0, src__matcher__core_matchers.equals(
"1371854424211"), null, indexeddb_1_test.STORE_NAME, indexeddb_1_test.VERSION, t
rue))); | 149 unittest$.test('largeDoubleConvertedToInt', unittest$.TestFunction._check(da
rt.dcall(testFunction, 123, 1371854424211.0, src__matcher__core_matchers.equals(
"1371854424211"), null, indexeddb_1_test.STORE_NAME, indexeddb_1_test.VERSION, t
rue))); |
150 unittest$.test('largeIntInMap', unittest$.TestFunction._check(dart.dcall(tes
tFunction, 123, dart.map({time: 4503599627370492}), src__matcher__core_matchers.
equals("{time: 4503599627370492}"), null, indexeddb_1_test.STORE_NAME, indexeddb
_1_test.VERSION, true))); | 150 unittest$.test('largeIntInMap', unittest$.TestFunction._check(dart.dcall(tes
tFunction, 123, dart.map({time: 4503599627370492}, core.String, core.int), src__
matcher__core_matchers.equals("{time: 4503599627370492}"), null, indexeddb_1_tes
t.STORE_NAME, indexeddb_1_test.VERSION, true))); |
151 let now = new core.DateTime.now(); | 151 let now = new core.DateTime.now(); |
152 unittest$.test('DateTime', unittest$.TestFunction._check(dart.dcall(testFunc
tion, 123, now, src__matcher__core_matchers.predicate(dart.fn(date => dart.equal
s(dart.dload(date, 'millisecondsSinceEpoch'), now.millisecondsSinceEpoch), dynam
icTobool()))))); | 152 unittest$.test('DateTime', unittest$.TestFunction._check(dart.dcall(testFunc
tion, 123, now, src__matcher__core_matchers.predicate(dart.fn(date => dart.equal
s(dart.dload(date, 'millisecondsSinceEpoch'), now.millisecondsSinceEpoch), dynam
icTobool()))))); |
153 }; | 153 }; |
154 dart.fn(indexeddb_1_test.testTypes, dynamicTovoid()); | 154 dart.fn(indexeddb_1_test.testTypes, dynamicTovoid()); |
155 indexeddb_1_test.main = function() { | 155 indexeddb_1_test.main = function() { |
156 html_individual_config.useHtmlIndividualConfiguration(); | 156 html_individual_config.useHtmlIndividualConfiguration(); |
157 unittest$.group('supported', dart.fn(() => { | 157 unittest$.group('supported', dart.fn(() => { |
158 unittest$.test('supported', dart.fn(() => { | 158 unittest$.test('supported', dart.fn(() => { |
159 src__matcher__expect.expect(indexed_db.IdbFactory[dartx.supported], true
); | 159 src__matcher__expect.expect(indexed_db.IdbFactory[dartx.supported], true
); |
160 }, VoidTodynamic())); | 160 }, VoidTodynamic())); |
(...skipping 19 matching lines...) Expand all Loading... |
180 unittest$.group('typed', dart.fn(() => { | 180 unittest$.group('typed', dart.fn(() => { |
181 indexeddb_1_test.testTypes(indexeddb_1_test.testReadWriteTyped); | 181 indexeddb_1_test.testTypes(indexeddb_1_test.testReadWriteTyped); |
182 }, VoidTovoid())); | 182 }, VoidTovoid())); |
183 } | 183 } |
184 }, VoidTovoid())); | 184 }, VoidTovoid())); |
185 }; | 185 }; |
186 dart.fn(indexeddb_1_test.main, VoidTodynamic()); | 186 dart.fn(indexeddb_1_test.main, VoidTodynamic()); |
187 // Exports: | 187 // Exports: |
188 exports.indexeddb_1_test = indexeddb_1_test; | 188 exports.indexeddb_1_test = indexeddb_1_test; |
189 }); | 189 }); |
OLD | NEW |