| Index: third_party/WebKit/LayoutTests/custom-elements/spec/state-failed-upgrade.html
|
| diff --git a/third_party/WebKit/LayoutTests/custom-elements/spec/state-failed-upgrade.html b/third_party/WebKit/LayoutTests/custom-elements/spec/state-failed-upgrade.html
|
| index fff117f7b99ae8ba6e90bcedcaa0faa57e1e16cf..13aaf99294837a2c621ba6d878ab020cdb34091e 100644
|
| --- a/third_party/WebKit/LayoutTests/custom-elements/spec/state-failed-upgrade.html
|
| +++ b/third_party/WebKit/LayoutTests/custom-elements/spec/state-failed-upgrade.html
|
| @@ -13,16 +13,15 @@
|
| test_with_window(w => {
|
| let document = w.document;
|
| let element = document.createElement('a-a');
|
| + let error = new Error('expected');
|
|
|
| let constructorCount = 0;
|
| w.customElements.define('a-a', class extends w.HTMLElement {
|
| constructor() {
|
| constructorCount++;
|
| - throw new Error();
|
| + throw error;
|
| }
|
| connectedCallback() {
|
| - // TODO(davaajav): remove the failure expectation when this issue is closed
|
| - // https://github.com/w3c/webcomponents/issues/563
|
| assert_unreached('connectedCallback should not be invoked if constructor threw');
|
| }
|
| });
|
| @@ -32,7 +31,7 @@ test_with_window(w => {
|
| // Set element's custom element state to "failed".
|
| // https://html.spec.whatwg.org/multipage/scripting.html#upgrades
|
| let container = document.body;
|
| - container.appendChild(element);
|
| + assert_reports(w, error, () => container.appendChild(element));
|
| assert_equals(constructorCount, 1, 'constructor should be invoked once');
|
|
|
| // "failed" is not "defined"
|
|
|