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

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

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../fast/js/resources/js-test-pre.js"></script> 2 <script src="../../resources/js-test.js"></script>
3 <select size="2"> 3 <select size="2">
4 <option>PASS</option>FAIL 4 <option>PASS</option>FAIL
5 </select> 5 </select>
6 <script> 6 <script>
7 description('Check that a select control does not render children that are not & lt;option&gt; or &lt;optgroup&gt;.'); 7 description('Check that a select control does not render children that are not & lt;option&gt; or &lt;optgroup&gt;.');
8 8
9 var select = document.querySelector('select'); 9 var select = document.querySelector('select');
10 10
11 var div = select.appendChild(document.createElement('div')); 11 var div = select.appendChild(document.createElement('div'));
12 div.innerText = 'FAIL'; 12 div.innerText = 'FAIL';
13 div.style.background = 'red'; 13 div.style.background = 'red';
14 14
15 // innerText uses the render tree, and the "FAIL" text (from either the initial 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 16 // HTML or the dynamially inserted <div>) should not be in the render tree, thus
17 // not appear. 17 // not appear.
18 shouldBeEqualToString('select.innerText', ''); 18 shouldBeEqualToString('select.innerText', '');
19 </script> 19 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/menulist-disabled-selected-option.html ('k') | LayoutTests/fast/forms/method-attribute.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698