-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZK-5839: ZK-5839 Follow up on ZK-5696: missing nested shadow element …
…after fix
- Loading branch information
1 parent
a921c4f
commit 2a5f3a2
Showing
4 changed files
with
70 additions
and
0 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,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- | ||
B101-ZK-5839.zul | ||
Purpose: | ||
Description: | ||
History: | ||
2024/11/7, Created by jumperchen | ||
Copyright (C) 2024 Potix Corporation. All Rights Reserved. | ||
--> | ||
<zk> | ||
<zscript><![CDATA[ | ||
int counter = 0; | ||
ListModelList items = new ListModelList(); | ||
]]></zscript> | ||
<div apply="org.zkoss.bind.BindComposer"> | ||
<forEach items="@init(items)"> | ||
<div> | ||
<if test="@init(true)"> | ||
AAA | ||
<if test="@init(true)"> | ||
BBB | ||
</if> | ||
CCC | ||
</if> | ||
</div> | ||
</forEach> | ||
</div> | ||
<button onClick="items.add(++counter)" label="add"/> | ||
</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
33 changes: 33 additions & 0 deletions
33
zktest/src/test/java/org/zkoss/zktest/zats/test2/B101_ZK_5839Test.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,33 @@ | ||
/* B101_ZK_5839Test.java | ||
Purpose: | ||
Description: | ||
History: | ||
5:21 PM 2024/11/7, Created by jumperchen | ||
Copyright (C) 2024 Potix Corporation. All Rights Reserved. | ||
*/ | ||
package org.zkoss.zktest.zats.test2; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import org.zkoss.test.webdriver.WebDriverTestCase; | ||
|
||
/** | ||
* @author jumperchen | ||
*/ | ||
public class B101_ZK_5839Test extends WebDriverTestCase { | ||
@Test | ||
public void test() { | ||
connect(); | ||
for (int i = 0; i < 5; i++) { | ||
click(jq(".z-button")); | ||
waitResponse(); | ||
assertEquals("AAABBBCCC", jq(".z-div .z-div:eq("+i+")").text().replaceAll("[^A-Z]", "")); | ||
} | ||
} | ||
} |