-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZK-5861: Select a date in December causes an invalid result under loc…
…ale pt
- Loading branch information
Showing
5 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
B102-ZK-5861.zul | ||
Purpose: | ||
Description: | ||
History: | ||
Tue Dec 24 11:31:22 CST 2024, Created by jameschu | ||
Copyright (C) 2024 Potix Corporation. All Rights Reserved. | ||
--> | ||
<zk> | ||
<label>select any date and see the correct date, not error popup</label> | ||
<separator/> | ||
<zscript><![CDATA[ | ||
import java.time.Instant; | ||
import java.util.Date; | ||
Date date = Date.from(Instant.parse("2024-12-25T00:00:00.000Z")) | ||
]]></zscript> | ||
<datebox cols="30" format="long" value="${date}" locale="pt"/> | ||
</zk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
zktest/src/test/java/org/zkoss/zktest/zats/test2/B102_ZK_5861Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* B102_ZK_5861Test.java | ||
Purpose: | ||
Description: | ||
History: | ||
Tue Dec 24 11:31:22 CST 2024, Created by jameschu | ||
Copyright (C) 2024 Potix Corporation. All Rights Reserved. | ||
*/ | ||
package org.zkoss.zktest.zats.test2; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertFalse; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import org.zkoss.test.webdriver.WebDriverTestCase; | ||
|
||
/** | ||
* @author jameschu | ||
*/ | ||
|
||
public class B102_ZK_5861Test extends WebDriverTestCase { | ||
@Test | ||
public void test() throws Exception { | ||
connect(); | ||
waitResponse(); | ||
click(jq(".z-datebox-button")); | ||
waitResponse(); | ||
click(jq(".z-calendar-cell.z-calendar-weekday").eq(10)); //random date | ||
waitResponse(); | ||
assertFalse(jq(".z-errorbox").exists()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters