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

Side by Side Diff: LayoutTests/fast/dom/HTMLElement/contextmenu.html

Issue 721603002: If an element A has a parent element, then A's assigned context menu is the assigned context menu o… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed nits Created 6 years, 1 month 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLElement/contextmenu-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 PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <script> 6 <script>
7 7
8 description("Tests the contextmenu attribute."); 8 description("Tests the contextmenu attribute.");
9 9
10 debug("Test with valid contextmenu attribute"); 10 debug("Test with valid contextmenu attribute");
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 debug("Test setting contextmenu attribute to menu element which is in shadow dom "); 117 debug("Test setting contextmenu attribute to menu element which is in shadow dom ");
118 document.write("<div id='container10'></div>"); 118 document.write("<div id='container10'></div>");
119 var menu5 = document.createElement('menu'); 119 var menu5 = document.createElement('menu');
120 menu5.id = 'menu_in_shadow_dom'; 120 menu5.id = 'menu_in_shadow_dom';
121 menu5.label = 'menu in shadow dom'; 121 menu5.label = 'menu in shadow dom';
122 var container10 = document.getElementById('container10'); 122 var container10 = document.getElementById('container10');
123 container10.createShadowRoot().appendChild(menu5); 123 container10.createShadowRoot().appendChild(menu5);
124 container10.contextMenu = menu5; 124 container10.contextMenu = menu5;
125 shouldBeNull("container10.contextMenu"); 125 shouldBeNull("container10.contextMenu");
126 126
127 debug("Test contextmenu attribute of an element with no contextmenu attribute bu t parent has valid contextmenu");
128 document.write("<div contextmenu='menu7'><button id='inner'></button><menu id='m enu7' type='popup' label='menu 7'></menu></div>");
129 var inner = document.getElementById('inner');
130 shouldBeNull("inner.contextMenu");
127 </script> 131 </script>
128 </html> 132 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLElement/contextmenu-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698