Skip to content

Commit

Permalink
ZK-5408: Enable InaccessibleWidgetBlockService by default
Browse files Browse the repository at this point in the history
  • Loading branch information
JamsonChan committed Aug 28, 2023
1 parent 1848718 commit 0b067cb
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zkdoc/release-note
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ZK 10.0.0
ZK-5533: Add all new HTML5 tags in ZK 10 ZHTML
ZK-5049: Deprecate org.zkoss.zk.ui.uuidRecycle.disabled in ZK10
ZK-5437: Upgrade WCAG with the lighthouse 10.x detection tools
ZK-5408: Enable InaccessibleWidgetBlockService by default

* Bugs
ZK-5089: AfterSizeEvent doesn't return a correct size of a Window component
Expand Down Expand Up @@ -76,6 +77,7 @@ ZK 10.0.0
+ Remove Applet, Flash, and FusionChart components since ZK 10.0.0
+ Deprecated org.zkoss.zk.ui.uuidRecycle.disabled since ZK 10.0.0
+ Revert ZK-5026 which the original bug cannot be reproduced to fix ZK-5235.
+ Enable InaccessibleWidgetBlockService by default, to disable it, set library-property `org.zkoss.zkmax.au.IWBS.disable` to `true`.

--------
ZK 9.6.4
Expand Down
7 changes: 7 additions & 0 deletions zktest/src/main/webapp/test2/F100-ZK-5408-1-zk.xml
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>
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());
}
}
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());
}
}

0 comments on commit 0b067cb

Please sign in to comment.