| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Custom Elements: Element definition</title> | 2 <title>Custom Elements: Element definition</title> |
| 3 <script src="../../../../resources/testharness.js"></script> | 3 <script src="/resources/testharness.js"></script> |
| 4 <script src="../../../../resources/testharnessreport.js"></script> | 4 <script src="/resources/testharnessreport.js"></script> |
| 5 <body> | 5 <body> |
| 6 <div id="log"></div> | 6 <div id="log"></div> |
| 7 <iframe id="iframe"></iframe> | 7 <iframe id="iframe"></iframe> |
| 8 <script> | 8 <script> |
| 9 'use strict'; | 9 'use strict'; |
| 10 (() => { | 10 (() => { |
| 11 // Element definition | 11 // Element definition |
| 12 // https://html.spec.whatwg.org/multipage/scripting.html#element-definition | 12 // https://html.spec.whatwg.org/multipage/scripting.html#element-definition |
| 13 | 13 |
| 14 // Use window from iframe to isolate the test. | 14 // Use window from iframe to isolate the test. |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 c.prototype[name] = value[1]; | 241 c.prototype[name] = value[1]; |
| 242 assert_throws(expectTypeError, () => { | 242 assert_throws(expectTypeError, () => { |
| 243 customElements.define('test-define-constructor-prototype-' + name, c); | 243 customElements.define('test-define-constructor-prototype-' + name, c); |
| 244 }); | 244 }); |
| 245 }, `If constructor.prototype.${name} is ${value[0]}, should throw a TypeEr
ror`); | 245 }, `If constructor.prototype.${name} is ${value[0]}, should throw a TypeEr
ror`); |
| 246 }) | 246 }) |
| 247 }); | 247 }); |
| 248 })(); | 248 })(); |
| 249 </script> | 249 </script> |
| 250 </body> | 250 </body> |
| OLD | NEW |