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

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

Issue 2841473002: Implement HTMLMenuItemElement.label (Closed)
Patch Set: Reflect review comments Created 3 years, 8 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>
2 <script src='../../../../../../resources/testharness.js'></script>
tkent 2017/04/26 08:59:58 Please use absolute link in external/wpt/. <scrip
yuzuchan 2017/04/26 10:28:30 Done.
tkent 2017/04/26 22:32:30 BTW, here is the document about external/wpt/: htt
3 <script src='../../../../../../resources/testharnessreport.js'></script>
tkent 2017/04/26 08:59:58 Ditto.
yuzuchan 2017/04/26 10:28:30 Done.
yuzuchan 2017/04/26 10:28:30 Done.
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