| Index: third_party/WebKit/LayoutTests/fast/dom/custom/crash-in-getTypeExtension.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/custom/crash-in-getTypeExtension.html b/third_party/WebKit/LayoutTests/fast/dom/custom/crash-in-getTypeExtension.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..dd759ffcd1e722a9101b7745a2a3273c4a5cdb08
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/custom/crash-in-getTypeExtension.html
|
| @@ -0,0 +1,14 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../../resources/testharness.js"></script>
|
| +<script src="../../../resources/testharnessreport.js"></script>
|
| +<script>
|
| +test(() => {
|
| + // TODO(a.obzhirov): Use customElements.define when customized built-in elements are supported.
|
| + document.registerElement('x-foo', { prototype: Object.create(HTMLDivElement.prototype) });
|
| + var toStringCalled = false;
|
| + assert_throws('NotFoundError', () => {
|
| + document.createElement('div', { toString: () => { toStringCalled = true; return 'x-foo'; } })
|
| + });
|
| + assert_false(toStringCalled, 'toString should not have been called.');
|
| +}, 'Test for crbug/666610: Crash in blink::getTypeExtension');
|
| +</script>
|
|
|