Skip to content

Commit

Permalink
add auto test for ZK-676
Browse files Browse the repository at this point in the history
  • Loading branch information
jumperchen committed Aug 28, 2024
1 parent 3b123b8 commit d297d3e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion zktest/src/main/webapp/test2/config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ B50-ZK-592.zul=A,E,Listbox,ROD,Model,ShiftClick
##ztl##B50-ZK-664.zul=B,M,Button,IE
##zats##B50-ZK-658.zul=B,E,Doublebox,format
B50-ZK-674.zul=B,M,Tab,Tabpanel,Accordion,BI
B50-ZK-676.zul=B,M,Tooltiptext
##zats##B50-ZK-676.zul=B,M,Tooltiptext
##zats##B50-ZK-679.zul=B,E,Textbox,Multiline
##zats##B50-ZK-683.zul=A,E,longbox,decimalbox,timebox,constraint
##zats##B50-ZK-685.zul=A,M,Listbox,DranDrop,Listitem
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/* B50_ZK_676Test.java
Purpose:
Description:
History:
11:35 AM 2024/8/28, 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 B50_ZK_676Test extends WebDriverTestCase {
@Test
public void test() {
connect();
assertEquals(6, jq(".z-div").length());
assertEquals("abc\"><script></script><!--", jq(".z-div:eq(3)").attr("title"));
assertEquals("abc\"><script></script><!--", jq(".z-div:eq(4)").attr("title"));
assertEquals("abc\"><script></script><!--", jq(".z-div:eq(5)").attr("title"));
}
}

0 comments on commit d297d3e

Please sign in to comment.