Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: third_party/WebKit/LayoutTests/shadow-dom/attach-shadow-safelist.html

Issue 2074393002: Clean up shadow-dom layout tests so that they are well organized (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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'];
(...skipping 24 matching lines...) Expand all
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698