Commit 256e155
authored
Add Accessibility Test and iOS Implementation (#4245)
Biggest part of #426 that's missing from Codename One.
* Add Accessibility Verification Test and iOS Support
- Added `announceForAccessibility` implementation in `IOSImplementation` with native backing in `CodenameOne_GLViewController.m`.
- Added native methods to support testing accessibility announcements.
- Created `AccessibilityTest` in `scripts/hellocodenameone` to verify accessibility announcements.
- Modified `AndroidImplementation` to support verification of accessibility announcements.
- Reverted unintentional POM changes.
- Fixed native method naming convention for iOS.
- Ensure correct native interface implementation for Android/iOS test drivers.
* Add Accessibility Verification Test and iOS Support
- Implemented `announceForAccessibility` in `IOSImplementation.java` and `IOSNative.java`, with native backing in `IOSNative.m`.
- Updated `AndroidImplementation` to ensure correct `announceForAccessibility` behavior (removed test-specific static field).
- Created `AccessibilityTest` in `scripts/hellocodenameone` to verify accessibility announcements.
- Cleaned up unused test interfaces and implementations.
- Ensured correct native method signatures and delegation in iOS port.
* Add Accessibility Verification Test and iOS Support
- Implemented `announceForAccessibility` in `IOSImplementation.java` and `IOSNative.java`, with native backing in `IOSNative.m`.
- Ensured `AndroidImplementation` correctly implements `announceForAccessibility` without test-specific static fields.
- Created `AccessibilityTest` in `scripts/hellocodenameone` to verify accessibility announcements.
- Cleaned up unused test interfaces and implementations.
- Ensured correct native method signatures and delegation in iOS port.
* Add Accessibility Verification Test and iOS Support
- Implemented `announceForAccessibility` in `IOSImplementation.java` and `IOSNative.java`, with native backing in `IOSNative.m`.
- Ensured `AndroidImplementation` correctly implements `announceForAccessibility` without test-specific static fields.
- Created `AccessibilityTest` in `scripts/hellocodenameone` to verify accessibility announcements.
- Cleaned up unused test interfaces and implementations.
- Ensured correct native method signatures and delegation in iOS port.
* Add Accessibility Verification Test and iOS Support
- Implemented `announceForAccessibility` in `IOSImplementation.java` and `IOSNative.java`, with native backing in `IOSNative.m`.
- Ensured `AndroidImplementation` correctly implements `announceForAccessibility` without test-specific static fields.
- Created `AccessibilityTest` in `scripts/hellocodenameone` to verify accessibility announcements.
- Cleaned up unused test interfaces and implementations.
- Ensured correct native method signatures and delegation in iOS port.
* Add Accessibility Verification Test and iOS Support
- Implemented `announceForAccessibility` in `IOSImplementation.java` and `IOSNative.java`, with native backing in `IOSNative.m`.
- Ensured `AndroidImplementation` correctly implements `announceForAccessibility` without test-specific static fields.
- Created `AccessibilityTest` in `scripts/hellocodenameone` to verify accessibility announcements.
- Updated `AccessibilityTest` to disable screenshots, as the test involves no visual changes.
- Cleaned up unused test interfaces and implementations.
- Ensured correct native method signatures and delegation in iOS port.
* Add Accessibility Verification Test and iOS Support
- Implemented `announceForAccessibility` in `IOSImplementation.java` and `IOSNative.java`, with native backing in `IOSNative.m`.
- Ensured `AndroidImplementation` correctly implements `announceForAccessibility` without test-specific static fields.
- Created `AccessibilityTest` in `scripts/hellocodenameone` to verify accessibility announcements.
- Updated `AccessibilityTest` to perform the announcement call asynchronously and then signal completion, preventing timeouts.
- Disabled screenshots for `AccessibilityTest` as no visual changes are involved.
- Cleaned up unused test interfaces and implementations.
- Ensured correct native method signatures and delegation in iOS port.
* Add Accessibility Verification Test and iOS Support
- Implemented `announceForAccessibility` in `IOSImplementation.java` and `IOSNative.java`, with native backing in `IOSNative.m`.
- Ensured `AndroidImplementation` correctly implements `announceForAccessibility` without test-specific static fields.
- Created `AccessibilityTest` in `scripts/hellocodenameone` to verify accessibility announcements.
- Updated `AccessibilityTest` to perform the announcement call asynchronously and then signal completion, preventing timeouts.
- Disabled screenshots for `AccessibilityTest` as no visual changes are involved.
- Cleaned up unused test interfaces and implementations.
- Ensured correct native method signatures and delegation in iOS port.
- Fixed package naming in `AccessibilityTest` to match project conventions.
- Removed dead code in `IOSImplementation` that was previously flagged.
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent ceaca3d commit 256e155
File tree
6 files changed
+43
-1
lines changed- Ports/iOSPort
- nativeSources
- src/com/codename1/impl/ios
- scripts/hellocodenameone/common/src/main/java/com/codenameone/examples/hellocodenameone/tests
- accessibility
6 files changed
+43
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4018 | 4018 | | |
4019 | 4019 | | |
4020 | 4020 | | |
| 4021 | + | |
4021 | 4022 | | |
4022 | 4023 | | |
4023 | 4024 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10315 | 10315 | | |
10316 | 10316 | | |
10317 | 10317 | | |
| 10318 | + | |
| 10319 | + | |
| 10320 | + | |
| 10321 | + | |
| 10322 | + | |
| 10323 | + | |
| 10324 | + | |
| 10325 | + | |
| 10326 | + | |
| 10327 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9494 | 9494 | | |
9495 | 9495 | | |
9496 | 9496 | | |
| 9497 | + | |
| 9498 | + | |
| 9499 | + | |
| 9500 | + | |
| 9501 | + | |
9497 | 9502 | | |
9498 | 9503 | | |
9499 | 9504 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
| 724 | + | |
| 725 | + | |
724 | 726 | | |
725 | 727 | | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments