Skip to content

Commit

Permalink
add unit test for B50-ZK-647.zul
Browse files Browse the repository at this point in the history
  • Loading branch information
jumperchen committed Oct 9, 2024
1 parent 696e8b2 commit 0a90356
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
6 changes: 3 additions & 3 deletions zktest/src/main/webapp/test2/B50-ZK-647.zul
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
B50-ZK-647.zul
Purpose:
Description:
History:
Mon Dec 5 15:20:38 TST 2011, Created by benbai
Expand All @@ -18,6 +18,6 @@ Copyright (C) 2011 Potix Corporation. All Rights Reserved.
<div height="10px" />
<div height="20px">Check whether all the style of the 'Test' below are correct,</div>
<div height="20px">color:#0000CC; font-family:"courier new","times new roman","黑体"; font-size:30px;</div>
<label value='Test'
<label id="label" value='Test'
style='color:#0000CC; font-family:"courier new","times new roman","黑体"; font-size:30px;'/>
</zk>
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 @@ -1127,7 +1127,7 @@ B50-ZK-592.zul=A,E,Listbox,ROD,Model,ShiftClick
##ztl##B50-ZK-631.zul=B,E,Datebox,Constraint
##zats##B50-ZK-640.zul=B,E,Toolbarbutton
##ztl##B50-ZK-641.zul=B,M,Borderlayout,IE
##ztl##B50-ZK-647.zul=B,E,Style
##zats##B50-ZK-647.zul=B,E,Style
##zats##B50-ZK-660.zul=B,M,Tab,Tabpanel
##ztl##B50-ZK-664.zul=B,M,Button,IE
##zats##B50-ZK-658.zul=B,E,Doublebox,format
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* B50_ZK_647Test.java
Purpose:
Description:
History:
11:27 AM 2024/10/9, 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_647Test extends WebDriverTestCase {
@Test
public void test() {
connect();
assertEquals("color:#0000CC; font-family:\"courier new\",\"times new roman\",\"黑体\"; font-size:30px;", jq("$label").attr("style"));
}
}

0 comments on commit 0a90356

Please sign in to comment.