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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/menuitem-label.html

Issue 2905763003: Rollback ContextMenu (Closed)
Patch Set: Delete RuntimeEnabledFeatures::contextMenuEnabled Created 3 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
(Empty)
1 <!DOCTYPE html>
tkent 2017/05/26 04:48:53 Please do not update test code
yuzuchan 2017/05/30 07:15:20 Sorry! I put it back.
2 <script src='/resources/testharness.js'></script>
3 <script src='/resources/testharnessreport.js'></script>
4 <menuitem id='item1' label='item1'></menuitem>
5 <menuitem id='item2'>item2</menuitem>
6 <menuitem id='item3'> item 3 </menuitem>
7 <menuitem id='item4' label=''>item4</menuitem>
8 <menuitem id='item5' label=' item 5 '></menuitem>
9
10 <script>
11 test(() => {
12 assert_equals(document.querySelector('#item1').label, 'item1');
13 assert_equals(document.querySelector('#item2').label, 'item2');
14 assert_equals(document.querySelector('#item3').label, 'item 3');
15 assert_equals(document.querySelector('#item4').label, '');
16 assert_equals(document.querySelector('#item5').label, ' item 5 ');
17 }, 'Menuitem.label should be the label attribute content or the result of '
18 + 'stripping and collapsing ASCII whitespace from the child text content.');
19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698