Commit b0b6d8bd authored by kochi's avatar kochi Committed by Commit bot

Fix typos in custom element + imports layout tests

These tests are currently disabled by TestExpectation
for failing, but will be enabled again in the following CLs.

BUG=594918

Review-Url: https://codereview.chromium.org/2279693002
Cr-Commit-Position: refs/heads/master@{#414360}
parent 59604441
......@@ -31,7 +31,7 @@ test(() => {
// new MyElement() should synchronously call constructor.
let c = new MyElement();
assert_equals(c.ownerDocument, document);
assert_equals(constructors.length, e);
assert_equals(constructors.length, 3);
assert_array_equals(constructors, [a, b, c]);
}, 'createElement() and new MyElement should work in imported document.');
......
......@@ -34,10 +34,10 @@ import1.href = 'resources/import-custom.html';
// TODO(kochi): crbug.com/640465 synchronous creation fails in imports.
import1.onload = test.step_func_done(() => {
let elementsInMaster = document.querySelector('x-x');
let elementsInImport = import1.import.querySelector('x-x');
let elementInMaster = document.querySelector('x-x');
let elementInImport = import1.import.querySelector('x-x');
assert_array_equals(reactions, [elementsInMaster, elementsInImport],
assert_array_equals(reactions, [elementInMaster, elementInImport],
'Constructor should run in the order elements are created');
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment