Web form:
- Improvement about web form manipulation (remove a field, set a text value to input fields by name, ...) - Improved web form html generation, especially for select and type checkbox - Updated the date input field interface with a new set_date_value . File response: - "application/force-download" is not a standard MIME content type, so use "application_octet_stream" instead as default. Standalone connector: - Added expected creation procedure for the service launcher. - Added new "secure_port" configuration variable, for SSL standalone service. This way, if `is_secure` is True, the server will use `secure_port` (overrides `port` value). Date: - Improved support for RFC 3339 (a profile of ISO 8601) Removed obsolete and warnings: - removed usage of FILE_NAME - updated code to avoid implicit conversion from STRING_32 to STRING_8 - avoid uneed conversion to STRING_8 (when possible)
This commit is contained in:
@@ -74,4 +74,29 @@ feature -- Test routines
|
||||
|
||||
end
|
||||
|
||||
test_http_date_rfc3339
|
||||
local
|
||||
s: STRING
|
||||
d: HTTP_DATE
|
||||
dt: DATE_TIME
|
||||
do
|
||||
create dt.make_now_utc
|
||||
create dt.make (1985, 04, 12, 23, 20, 50)
|
||||
dt.set_fractionals (52)
|
||||
dt.time.set_fractionals (52)
|
||||
|
||||
create d.make_from_date_time (dt)
|
||||
s := "1985-04-12T23:20:50.52Z"
|
||||
assert ("RFC 3339 to string", d.rfc3339_string.same_string (s))
|
||||
|
||||
create d.make_from_rfc3339_string (s)
|
||||
assert ("RFC 3339 from string", not d.has_error and then d.date_time.is_equal (dt))
|
||||
|
||||
create d.make_from_rfc3339_string ("1996-12-19T16:39:57-08:00")
|
||||
assert ("-8hours", d.rfc3339_string.same_string ("1996-12-20T00:39:57Z"))
|
||||
|
||||
create d.make_from_rfc3339_string ("1937-01-01T12:00:27.87+00:20")
|
||||
assert ("-8hours", d.rfc3339_string.same_string ("1937-01-01T11:40:27.87Z"))
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<concurrency support="none" use="none"/>
|
||||
</capability>
|
||||
<library name="base" location="$ISE_LIBRARY\library\base\base.ecf"/>
|
||||
<library name="time" location="$ISE_LIBRARY\library\time\time.ecf"/>
|
||||
<library name="http" location="..\http.ecf" readonly="false">
|
||||
<option>
|
||||
<assertions precondition="true" postcondition="true" check="true"/>
|
||||
|
||||
Reference in New Issue
Block a user