-
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-5408: Enable InaccessibleWidgetBlockService by default
- Loading branch information
1 parent
1848718
commit 0b067cb
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,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<zk> | ||
<library-property> | ||
<name>org.zkoss.zkmax.au.IWBS.disable</name> | ||
<value>true</value> | ||
</library-property> | ||
</zk> |
27 changes: 27 additions & 0 deletions
27
zktest/src/test/java/org/zkoss/zktest/zats/test2/F100_ZK_5408Test.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,27 @@ | ||
/* F100_ZK_5408Test.java | ||
Purpose: | ||
Description: | ||
History: | ||
Mon Aug 28 12:00:52 CST 2023, Created by jamson | ||
Copyright (C) 2023 Potix Corporation. All Rights Reserved. | ||
*/ | ||
package org.zkoss.zktest.zats.test2; | ||
|
||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
import org.zkoss.zkmax.au.InaccessibleWidgetBlockService; | ||
import org.zkoss.zktest.zats.ZATSTestCase; | ||
|
||
public class F100_ZK_5408Test extends ZATSTestCase { | ||
|
||
// Enable InaccessibleWidgetBlockService by default | ||
|
||
@Test | ||
public void test() { | ||
Assertions.assertFalse(InaccessibleWidgetBlockService.isDisable()); | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
zktest/src/test/java/org/zkoss/zktest/zats/test2/F100_ZK_5408_1Test.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,34 @@ | ||
/* F100_ZK_5408_1Test.java | ||
Purpose: | ||
Description: | ||
History: | ||
Mon Aug 28 13:24:19 CST 2023, Created by jamson | ||
Copyright (C) 2023 Potix Corporation. All Rights Reserved. | ||
*/ | ||
package org.zkoss.zktest.zats.test2; | ||
|
||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
import org.zkoss.test.webdriver.ExternalZkXml; | ||
import org.zkoss.test.webdriver.ForkJVMTestOnly; | ||
import org.zkoss.zkmax.au.InaccessibleWidgetBlockService; | ||
import org.zkoss.zktest.zats.ZATSTestCase; | ||
|
||
@ForkJVMTestOnly | ||
public class F100_ZK_5408_1Test extends ZATSTestCase { | ||
|
||
// Disable InaccessibleWidgetBlockService by set library-property `org.zkoss.zkmax.au.IWBS.disable` to `true` | ||
|
||
@RegisterExtension | ||
public static final ExternalZkXml CONFIG = new ExternalZkXml("/test2/F100-ZK-5408-1-zk.xml"); | ||
|
||
@Test | ||
public void test() { | ||
Assertions.assertTrue(InaccessibleWidgetBlockService.isDisable()); | ||
} | ||
} |