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

Side by Side Diff: LayoutTests/fast/dom/HTMLInputElement/input-type-attribute.html

Issue 141703028: Remove input.type = ""; quirk. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLInputElement/input-type-attribute-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
tkent 2014/02/05 23:58:18 Please merge these tests to fast/forms/input-type-
sof 2014/02/06 08:27:15 Thanks, done (is the readonly-ness of this and oth
tkent 2014/02/06 08:29:38 None :-) It's a local rule in the Forms team.
2 <script src="../../../resources/js-test.js"></script>
3 <script>
4 description('HTMLInputElement type attribute test');
5
6 var input = document.createElement("input");
7
8 shouldBeEqualToString("input.type", "text");
9 shouldBeNull("input.getAttribute('type')");
10 shouldBeEqualToString("input.setAttribute('type', '-1'); input.type", "text");
11 shouldBeEqualToString("input.setAttribute('type', 'foo'); input.getAttribute('ty pe')", "foo");
12 shouldBeEqualToString("input.type = 'x-unknown'; input.type", "text");
13 shouldBeEqualToString("input.type = 'x-unknown'; input.getAttribute('type')", "x -unknown");
14 shouldBeEqualToString("input.type = ''; input.type", "text");
15 shouldBeEqualToString("input.type = ''; input.getAttribute('type')", "");
16 shouldBeEqualToString("input.setAttribute('type', ''); input.type", "text");
17 shouldBeEqualToString("input.setAttribute('type', ''); input.getAttribute('type' )", "");
18 shouldBeEqualToString("input.removeAttribute('type'); input.type", "text");
19 shouldBeNull("input.removeAttribute('type'); input.getAttribute('type')");
20 shouldBeEqualToString("input.setAttribute('type', 'rANGE'); input.type", "range" );
21 shouldBeEqualToString("input.setAttribute('type', 'Range'); input.getAttribute(' type')", "Range");
22 shouldBeEqualToString("input.setAttribute('type', 'rANGEr'); input.type", "text" );
23 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLInputElement/input-type-attribute-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698