Index: test/codegen_expected/lib/html/filteredelementlist_test.js |
diff --git a/test/codegen_expected/lib/html/filteredelementlist_test.js b/test/codegen_expected/lib/html/filteredelementlist_test.js |
index dccc9180ddce160821540d198eb3625a5d8c9c2c..3a77aee04ceb13299970872bce41ee02742e1c60 100644 |
--- a/test/codegen_expected/lib/html/filteredelementlist_test.js |
+++ b/test/codegen_expected/lib/html/filteredelementlist_test.js |
@@ -17,6 +17,7 @@ dart_library.library('lib/html/filteredelementlist_test', null, /* Imports */[ |
const src__matcher__core_matchers = unittest.src__matcher__core_matchers; |
const filteredelementlist_test = Object.create(null); |
let JSArrayOfDivElement = () => (JSArrayOfDivElement = dart.constFn(_interceptors.JSArray$(html.DivElement)))(); |
+ let VoidToDivElement = () => (VoidToDivElement = dart.constFn(dart.definiteFunctionType(html.DivElement, [])))(); |
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))(); |
let VoidToElement = () => (VoidToElement = dart.constFn(dart.definiteFunctionType(html.Element, [])))(); |
let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))(); |
@@ -34,53 +35,53 @@ dart_library.library('lib/html/filteredelementlist_test', null, /* Imports */[ |
testDiv[dartx.append](t4); |
return testDiv; |
} |
- dart.fn(createTestDiv, VoidTodynamic()); |
+ dart.fn(createTestDiv, VoidToDivElement()); |
html_config.useHtmlConfiguration(); |
unittest$.test('FilteredElementList.insert test', dart.fn(() => { |
let i = html.DivElement.new(); |
let nodeList = createTestDiv(); |
- let elementList = new html_common.FilteredElementList(html.Node._check(nodeList)); |
+ let elementList = new html_common.FilteredElementList(nodeList); |
elementList.insert(0, i); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 0), t1); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 1), i); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 2), d1); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](0), t1); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](1), i); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](2), d1); |
nodeList = createTestDiv(); |
- elementList = new html_common.FilteredElementList(html.Node._check(nodeList)); |
+ elementList = new html_common.FilteredElementList(nodeList); |
elementList.insert(1, i); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 2), t2); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 3), i); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 4), d2); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](2), t2); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](3), i); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](4), d2); |
nodeList = createTestDiv(); |
- elementList = new html_common.FilteredElementList(html.Node._check(nodeList)); |
+ elementList = new html_common.FilteredElementList(nodeList); |
elementList.insert(2, i); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 4), t3); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 5), i); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 6), d3); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](4), t3); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](5), i); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](6), d3); |
}, VoidTodynamic())); |
unittest$.test('FilteredElementList.insertAll test', dart.fn(() => { |
let i1 = html.DivElement.new(), i2 = html.DivElement.new(); |
let it = JSArrayOfDivElement().of([i1, i2]); |
let nodeList = createTestDiv(); |
- let elementList = new html_common.FilteredElementList(html.Node._check(nodeList)); |
+ let elementList = new html_common.FilteredElementList(nodeList); |
elementList.insertAll(0, it); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 0), t1); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 1), i1); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 2), i2); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 3), d1); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](0), t1); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](1), i1); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](2), i2); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](3), d1); |
nodeList = createTestDiv(); |
- elementList = new html_common.FilteredElementList(html.Node._check(nodeList)); |
+ elementList = new html_common.FilteredElementList(nodeList); |
elementList.insertAll(1, it); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 2), t2); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 3), i1); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 4), i2); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 5), d2); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](2), t2); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](3), i1); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](4), i2); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](5), d2); |
nodeList = createTestDiv(); |
- elementList = new html_common.FilteredElementList(html.Node._check(nodeList)); |
+ elementList = new html_common.FilteredElementList(nodeList); |
elementList.insertAll(2, it); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 4), t3); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 5), i1); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 6), i2); |
- src__matcher__expect.expect(dart.dindex(dart.dload(nodeList, 'childNodes'), 7), d3); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](4), t3); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](5), i1); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](6), i2); |
+ src__matcher__expect.expect(nodeList[dartx.childNodes][dartx.get](7), d3); |
}, VoidTodynamic())); |
unittest$.test('FilteredElementList.insertAndRemove', dart.fn(() => { |
let emptyDiv = html.DivElement.new(); |