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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/menulist-no-renderer-for-unexpected-children.html

Issue 1509853008: Move select/option/optgroup-related tests in fast/forms to fast/forms/select. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/js-test.js"></script>
3 <select size="2">
4 <option>PASS</option>FAIL
5 </select>
6 <script>
7 description('Check that a select control does not render children that are not & lt;option&gt; or &lt;optgroup&gt;.');
8
9 var select = document.querySelector('select');
10
11 var div = select.appendChild(document.createElement('div'));
12 div.innerText = 'FAIL';
13 div.style.background = 'red';
14
15 // innerText uses the render tree, and the "FAIL" text (from either the initial
16 // HTML or the dynamially inserted <div>) should not be in the render tree, thus
17 // not appear.
18 shouldBeEqualToString('select.innerText', '');
19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698