Chromium Code Reviews| OLD | NEW |
|---|---|
| (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> | |
| OLD | NEW |