OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../../resources/testharness.js"></script> | |
3 <script src="../../../resources/testharnessreport.js"></script> | |
4 <script> | |
5 test(() => { | |
6 // TODO(a.obzhirov): Use customElements.define when customized built-in elemen ts are supported. | |
7 document.registerElement("x-foo", { prototype: Object.create(HTMLDivElement.pr ototype) }); | |
8 var toStringCalled = false; | |
9 assert_throws('NotFoundError', () => { | |
10 document.createElement('div', { toString: () => { toStringCalled = true; ret urn 'x-foo'; } }) | |
11 }); | |
12 assert_false(toStringCalled, "toString should not have been called."); | |
dominicc (has gone to gerrit)
2017/01/31 22:41:38
Use single quotes for consistency here and on line
| |
13 }, "Test for crbug/666610: Crash in blink::getTypeExtension"); | |
14 </script> | |
OLD | NEW |