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

Side by Side Diff: third_party/WebKit/LayoutTests/html/menu_menuitem/menuitem-label.html

Issue 2841473002: Implement HTMLMenuItemElement.label (Closed)
Patch Set: Fix syntax error Created 3 years, 7 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/04/25 23:24:59 This is a conformance test without any Blink-speci
yuzuchan 2017/04/26 08:54:56 Done.
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
tkent 2017/04/25 23:24:59 We need test cases with - leading/trailing whitesp
yuzuchan 2017/04/26 08:54:56 Done.
9 <script>
10 test(() => {
11 var item1 = document.getElementById('item1');
tkent 2017/04/25 23:24:59 Variable |item1| isn't so helpful. We can write si
yuzuchan 2017/04/26 08:54:56 Done.
12 var item2 = document.getElementById('item2');
13 assert_equals(item1.label, 'item1');
14 assert_equals(item2.label, 'item2');
15 assert_equals(item3.label, 'item 3');
16 assert_equals(item4.label, 'item4');
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