Changeset 51584 in webkit
- Timestamp:
- Dec 1, 2009 9:17:10 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r51582 r51584 1 2009-12-01 Kent Tamura <tkent@chromium.org> 2 3 Reviewed by Darin Adler. 4 5 Change [Reflect] to [ConvertNullToNullString, Reflect] for min, max, 6 pattern and step attributes of HTMLInputElement. 7 https://bugs.webkit.org/show_bug.cgi?id=31708 8 9 * fast/forms/input-minmax-expected.txt: 10 * fast/forms/input-pattern-expected.txt: Added. 11 * fast/forms/input-pattern.html: Added. 12 * fast/forms/input-step-expected.txt: 13 * fast/forms/script-tests/input-minmax.js: Add tests for null/undefined/non-string. 14 * fast/forms/script-tests/input-pattern.js: Added. 15 * fast/forms/script-tests/input-step.js: Change the result for null. 16 1 17 2009-12-01 Chris Fleizach <cfleizach@apple.com> 2 18 -
trunk/LayoutTests/fast/forms/input-minmax-expected.txt
r49199 r51584 14 14 PASS input.getAttribute("min") is "" 15 15 PASS input.getAttribute("max") is "" 16 Setting null to min: 17 PASS input.min is "" 18 PASS input.getAttribute("min") is null 19 PASS input.min is "null" 20 Setting null to max: 21 PASS input.max is "" 22 PASS input.getAttribute("max") is null 23 PASS input.max is "null" 24 Setting undefined to min: 25 PASS input.min is "undefined" 26 PASS input.getAttribute("min") is "undefined" 27 PASS input.min is "undefined" 28 Setting undefined to max: 29 PASS input.max is "undefined" 30 PASS input.getAttribute("max") is "undefined" 31 PASS input.max is "undefined" 32 Setting non-string to min: 33 PASS input.min is "256" 34 PASS input.getAttribute("min") is "256" 35 PASS input.min is "256" 36 Setting non-string to max: 37 PASS input.max is "256" 38 PASS input.getAttribute("max") is "256" 39 PASS input.max is "256" 40 Check implicit min/max of type=range: 16 41 PASS input.min is "" 17 42 PASS input.max is "" -
trunk/LayoutTests/fast/forms/input-step-expected.txt
r51159 r51584 7 7 PASS input.getAttribute("step") is "foo" 8 8 PASS input.step is "bar" 9 PASS input.step is " null"10 PASS input.getAttribute("step") is "null"9 PASS input.step is "" 10 PASS input.getAttribute("step") is null 11 11 PASS input.step is "null" 12 12 PASS input.step is "undefined" -
trunk/LayoutTests/fast/forms/script-tests/input-minmax.js
r49199 r51584 25 25 shouldBe('input.getAttribute("max")', '""'); 26 26 27 // Null. 28 debug('Setting null to min:'); 29 input.min = null; 30 shouldBe('input.min', '""'); 31 shouldBe('input.getAttribute("min")', 'null'); 32 input.setAttribute('min', null); 33 shouldBe('input.min', '"null"'); 34 35 debug('Setting null to max:'); 36 input.max = null; 37 shouldBe('input.max', '""'); 38 shouldBe('input.getAttribute("max")', 'null'); 39 input.setAttribute('max', null); 40 shouldBe('input.max', '"null"'); 41 42 // Undefined. 43 debug('Setting undefined to min:'); 44 input.min = undefined; 45 shouldBe('input.min', '"undefined"'); 46 shouldBe('input.getAttribute("min")', '"undefined"'); 47 input.setAttribute('min', undefined); 48 shouldBe('input.min', '"undefined"'); 49 50 debug('Setting undefined to max:'); 51 input.max = undefined; 52 shouldBe('input.max', '"undefined"'); 53 shouldBe('input.getAttribute("max")', '"undefined"'); 54 input.setAttribute('max', undefined); 55 shouldBe('input.max', '"undefined"'); 56 57 // Non-string. 58 debug('Setting non-string to min:'); 59 input.min = 256; 60 shouldBe('input.min', '"256"'); 61 shouldBe('input.getAttribute("min")', '"256"'); 62 input.setAttribute('min', 256); 63 shouldBe('input.min', '"256"'); 64 65 debug('Setting non-string to max:'); 66 input.max = 256; 67 shouldBe('input.max', '"256"'); 68 shouldBe('input.getAttribute("max")', '"256"'); 69 input.setAttribute('max', 256); 70 shouldBe('input.max', '"256"'); 71 27 72 // The range type has the default minimum and the default maximum. 28 73 // But they aren't exposed by .min .max IDL attributes. 74 debug('Check implicit min/max of type=range:'); 29 75 input.type = 'range'; 30 76 input.setAttribute('min', ''); -
trunk/LayoutTests/fast/forms/script-tests/input-step.js
r51159 r51584 15 15 // Null. 16 16 input.step = null; 17 shouldBe('input.step', '" null"');18 shouldBe('input.getAttribute("step")', ' "null"');17 shouldBe('input.step', '""'); 18 shouldBe('input.getAttribute("step")', 'null'); 19 19 input.setAttribute('step', null); 20 20 shouldBe('input.step', '"null"'); -
trunk/WebCore/ChangeLog
r51582 r51584 1 2009-12-01 Kent Tamura <tkent@chromium.org> 2 3 Reviewed by Darin Adler. 4 5 Change [Reflect] to [ConvertNullToNullString, Reflect] for min, max, 6 pattern and step attributes of HTMLInputElement. 7 https://bugs.webkit.org/show_bug.cgi?id=31708 8 9 * html/HTMLInputElement.idl: 10 1 11 2009-12-01 Chris Fleizach <cfleizach@apple.com> 2 12 -
trunk/WebCore/html/HTMLInputElement.idl
r51172 r51584 44 44 #endif 45 45 #if !defined(LANGUAGE_COM) || !LANGUAGE_COM 46 attribute [ Reflect] DOMString max;46 attribute [ConvertNullToNullString, Reflect] DOMString max; 47 47 #endif 48 48 attribute long maxLength 49 49 setter raises(DOMException); 50 50 #if !defined(LANGUAGE_COM) || !LANGUAGE_COM 51 attribute [ Reflect] DOMString min;51 attribute [ConvertNullToNullString, Reflect] DOMString min; 52 52 #endif 53 53 attribute boolean multiple; 54 54 attribute [ConvertNullToNullString] DOMString name; 55 attribute [ Reflect] DOMStringpattern;55 attribute [ConvertNullToNullString, Reflect] DOMString pattern; 56 56 attribute DOMString placeholder; 57 57 attribute boolean readOnly; … … 64 64 #endif 65 65 attribute [ConvertNullToNullString] DOMString src; 66 attribute [ Reflect] DOMString step;66 attribute [ConvertNullToNullString, Reflect] DOMString step; 67 67 attribute [ConvertNullToNullString, JSCCustomGetter] DOMString type; // readonly dropped as part of DOM level 2 68 68 attribute [ConvertNullToNullString] DOMString useMap;
Note: See TracChangeset
for help on using the changeset viewer.