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

Side by Side Diff: LayoutTests/fast/dom/shadow/shadow-disable.html

Issue 21165005: Support author Shadow DOM for INPUT elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test should work on Windows and Linux. Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/shadow-disable-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 <svg xmlns="http://www.w3.org/2000/svg" style="display:none"><tref id="tref" />< /svg> 8 <svg xmlns="http://www.w3.org/2000/svg" style="display:none"><tref id="tref" />< /svg>
9 <pre id="console"></pre> 9 <pre id="console"></pre>
10 <script> 10 <script>
11 description("Tests to ensure that shadow element cannot be created in elements h aving dynamically created shadow root."); 11 description("Tests to ensure that shadow element cannot be created in elements h aving dynamically created shadow root.");
12 12
13 function testToAddShadowRoot(element, success) { 13 function testToAddShadowRoot(element, success) {
14 debug(element.nodeName); 14 debug(element.nodeName);
15 15
16 if (success) 16 if (success)
17 shouldNotBe("element.createShadowRoot()", "null"); 17 shouldNotBe("element.createShadowRoot()", "null");
18 else 18 else
19 shouldThrow("element.createShadowRoot()"); 19 shouldThrow("element.createShadowRoot()");
20 } 20 }
21 21
22 var elementsToSuccess = [ 22 var elementsToSuccess = [
23 document.createElement('div'), 23 document.createElement('div'),
24 document.createElement('span'), 24 document.createElement('span'),
25 document.createElement('a'), 25 document.createElement('a'),
26 document.createElement('section'), 26 document.createElement('section'),
27 document.createElement('input'),
27 ]; 28 ];
28 29
29 // See crbug.com/234020 . 30 // See crbug.com/234020 .
30 var elementsToFail = [ 31 var elementsToFail = [
31 document.createElement('input'),
32 document.getElementById('tref'), 32 document.getElementById('tref'),
33 document.createElement('audio'), 33 document.createElement('audio'),
34 document.createElement('video'), 34 document.createElement('video'),
35 document.createElement('select'), 35 document.createElement('select'),
36 document.createElement('img'), 36 document.createElement('img'),
37 document.createElement('textarea'), 37 document.createElement('textarea'),
38 document.createElement('iframe'), 38 document.createElement('iframe'),
39 document.createElement('canvas'), 39 document.createElement('canvas'),
40 document.createElement('meter'), 40 document.createElement('meter'),
41 document.createElement('progress'), 41 document.createElement('progress'),
(...skipping 13 matching lines...) Expand all
55 for (var i = 0; i < elementsToFail.length; ++i) { 55 for (var i = 0; i < elementsToFail.length; ++i) {
56 var element = elementsToFail[i]; 56 var element = elementsToFail[i];
57 testToAddShadowRoot(element, false); 57 testToAddShadowRoot(element, false);
58 } 58 }
59 59
60 var successfullyParsed = true; 60 var successfullyParsed = true;
61 </script> 61 </script>
62 <script src="../../js/resources/js-test-post.js"></script> 62 <script src="../../js/resources/js-test-post.js"></script>
63 </body> 63 </body>
64 </html> 64 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/shadow-disable-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698