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

Unified Diff: test/codegen_expected/lib/html/filteredelementlist_test.js

Issue 2214263005: Mark recursive_inheritance_test as passing (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Bumped pubspec Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
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();
« no previous file with comments | « test/codegen_expected/lib/html/client_rect_test.js ('k') | test/codegen_expected/lib/html/js_typed_interop_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698