| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src='../../../resources/testharness.js'></script> | 2 <script src='../resources/testharness.js'></script> |
| 3 <script src='../../../resources/testharnessreport.js'></script> | 3 <script src='../resources/testharnessreport.js'></script> |
| 4 <script> | 4 <script> |
| 5 'use strict'; | 5 'use strict'; |
| 6 | 6 |
| 7 const safelist = ['custom-element', | 7 const safelist = ['custom-element', |
| 8 'article', 'aside', 'blockquote', 'body', 'div', 'footer', | 8 'article', 'aside', 'blockquote', 'body', 'div', 'footer', |
| 9 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', | 9 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', |
| 10 'header', 'nav', 'p', 'section', 'span']; | 10 'header', 'nav', 'p', 'section', 'span']; |
| 11 | 11 |
| 12 test(() => { | 12 test(() => { |
| 13 safelist.forEach((tag) => { | 13 safelist.forEach((tag) => { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 35 return; | 35 return; |
| 36 } | 36 } |
| 37 ['open', 'closed'].forEach((mode) => { | 37 ['open', 'closed'].forEach((mode) => { |
| 38 assert_throws({name: 'NotSupportedError'}, () => { | 38 assert_throws({name: 'NotSupportedError'}, () => { |
| 39 element.attachShadow({mode: mode}); | 39 element.attachShadow({mode: mode}); |
| 40 }), 'attachShadow should throw NotSupportdeError for ' + maybeTagName; | 40 }), 'attachShadow should throw NotSupportdeError for ' + maybeTagName; |
| 41 }); | 41 }); |
| 42 }); | 42 }); |
| 43 }, 'attachShadow should throw an exception for an element which is not in the sa
felist'); | 43 }, 'attachShadow should throw an exception for an element which is not in the sa
felist'); |
| 44 </script> | 44 </script> |
| OLD | NEW |