Commit Graph

1514 Commits

Author SHA1 Message Date
Kamil Jarosz e89869660f tests: Add avm1/tab_ordering_custom_m1
This test verifies the behavior of tabIndex = -1.
2024-04-30 14:23:45 +02:00
Kamil Jarosz 8f288b5e97 tests: Update avm2/tab_ordering_properties
Add a case with tabIndex = -1.
2024-04-30 14:23:45 +02:00
Kamil Jarosz 71bcaae3fc tests: Add avm2/focusrect test
This test verifies when the highlight is rendered depending on
the value of `focusRect` and `stageFocusRect` in AVM2.
2024-04-29 23:41:40 +02:00
Kamil Jarosz e2738a6980 tests: Add avm2/focusrect_property test
This test verifies the behavior of InteractiveObject.focusRect
property in AVM2.
2024-04-29 23:41:40 +02:00
Kamil Jarosz 4715c2d459 tests: Fix matching tests with test kinds
libtest_mimic adds test kind as a prefix (e.g. `[kind] test`
instead of `test`), which has to be taken into account when
filtering for possible test candidates. This patch ensures
compatibility with libtest_mimic when using test kinds.
2024-04-29 22:45:16 +02:00
Kamil Jarosz e40374c403 tests: Improve test lookup on exact match
Regression tests were looked up using full directory walk
regardless of whether there was an exact match or not.
This patch looks up the test on exact match without
scanning for all tests. This improvement is important
due to how nextest executes tests: one by one using exact matches.
2024-04-29 22:45:16 +02:00
Kamil Jarosz 7006b08095 tests: Add avm2/tab_ordering_properties
This is an AVM2 version of avm1/tab_ordering_properties
2024-04-29 21:54:06 +02:00
Kamil Jarosz b915b21622 tests: Add avm2/tab_ordering_children test
This test verifies the behavior of tabChildren.
2024-04-29 21:54:06 +02:00
Kamil Jarosz 9e751824ff tests: Add avm2/tab_ordering_automatic_basic
This is an AVM2 version of avm1/tab_ordering_automatic_basic
2024-04-29 21:54:06 +02:00
Kamil Jarosz 1624cc9c98 tests: Add avm2/tab_ordering_custom_basic
This is an AVM2 version of avm1/tab_ordering_custom_basic
2024-04-29 21:54:06 +02:00
Kamil Jarosz 566590ac1f tests: Add avm2/tab_ordering_tabbable
This is an AVM2 version of avm1/tab_ordering_tabbable
2024-04-29 21:54:06 +02:00
Kamil Jarosz 40bc787fd7 tests: Add tab_ordering_custom_i32_vs_u32 test
This test verifies the behavior of i32/u32 discrepancy
in tabIndex in AVM1.
2024-04-29 21:54:06 +02:00
Kamil Jarosz 712ab7fce1 tests: Update avm1/tab_ordering_properties
Add a case of a non-editable text field.
2024-04-29 21:54:06 +02:00
Kamil Jarosz 0c03aacb59 tests: Update avm1/tab_ordering_tabbable
Add a case of a dynamic text field with tab enabled.
2024-04-29 21:54:06 +02:00
Kamil Jarosz 86c0a30166 tests: Add textline_inapplicable_properties test
This test verifies the behavior of inapplicable
properties of `TextLine`.
2024-04-29 21:18:08 +02:00
Kamil Jarosz 31d8d98a10 tests: Add focusrect_mouse_swf8 test
This test verifies the behavior of focus highlight when
mouse is moved and mouse buttons are clicked for SWF8.
2024-04-24 00:49:37 +02:00
Kamil Jarosz a594d8d9ac tests: Add focusrect_mouse_swf9 test
This test verifies the behavior of focus highlight when
mouse is moved and mouse buttons are clicked for SWF9.
2024-04-24 00:49:37 +02:00
Kamil Jarosz 9bc5735d0d tests: Add stage_properties2 test 2024-04-23 23:13:02 +02:00
Adrian Wielgosik fd281cc715 avm2: Add IS_QNAME flag to Multiname, improve XML name matching 2024-04-22 22:08:40 +02:00
Kamil Jarosz 1f5d19971b tests: Add avm1/tab_ordering_events_mouse test
This test verifies how the behavior of tabbing is integrated with
the mouse with respect to rollOut/rollOver events.
2024-04-22 00:53:20 +02:00
Kamil Jarosz f3c9a84058 tests: Add avm1/tab_ordering_events test
This test verifies events produced by various interactive objects
while tabbing.
2024-04-22 00:53:20 +02:00
Kamil Jarosz d4bab66979 tests: Update avm1/selection_handlers test
Extend this test to cover rollOut/rollOver events too.
2024-04-22 00:53:20 +02:00
Lord-McSweeney ca4da9e5ee avm2: Fix regression from classes not being registered in order from the constant pool 2024-04-21 14:27:16 -07:00
turicfr 41bba9d5a5 tests: Update `movieclip_getbounds` test
This now enumerates the returned object using `Enumerate2` to match
the order of the stored properties.
2024-04-20 21:58:32 +02:00
Adrian Wielgosik 6ce88f24de avm2: Add an extra test for sparse arrays 2024-04-20 21:41:33 +02:00
jarca0123 7e349d9190 avm2: Add support for sparse arrays 2024-04-20 21:41:33 +02:00
Tom Schuster 02148b2891 tests: Test null data with navigateToURL 2024-04-19 18:56:25 +02:00
dependabot[bot] 5c1fcb9f26 build(deps): bump the cargo-minor group with 4 updates
Bumps the cargo-minor group with 4 updates: [serde](https://github.com/serde-rs/serde), [serde_json](https://github.com/serde-rs/json), [syn](https://github.com/dtolnay/syn) and [proc-macro2](https://github.com/dtolnay/proc-macro2).


Updates `serde` from 1.0.197 to 1.0.198
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.197...v1.0.198)

Updates `serde_json` from 1.0.115 to 1.0.116
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.115...v1.0.116)

Updates `syn` from 2.0.59 to 2.0.60
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/2.0.59...2.0.60)

Updates `proc-macro2` from 1.0.80 to 1.0.81
- [Release notes](https://github.com/dtolnay/proc-macro2/releases)
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.80...1.0.81)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: syn
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: proc-macro2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-18 17:30:02 +02:00
Adrian Wielgosik a69b80b4bb avm2: Allow splice() on a Vector with fixed=true 2024-04-18 00:56:22 +02:00
Kamil Jarosz 93cd772b20 tests: Fix a typo in tab_ordering_tabbable 2024-04-17 11:20:52 -07:00
dependabot[bot] d3cc9d5fa5 build(deps): bump the cargo-minor group with 11 updates
Bumps the cargo-minor group with 11 updates:

| Package | From | To |
| --- | --- | --- |
| [anyhow](https://github.com/dtolnay/anyhow) | `1.0.81` | `1.0.82` |
| [async-channel](https://github.com/smol-rs/async-channel) | `2.2.0` | `2.2.1` |
| [chrono](https://github.com/chronotope/chrono) | `0.4.37` | `0.4.38` |
| [encoding_rs](https://github.com/hsivonen/encoding_rs) | `0.8.33` | `0.8.34` |
| [fluent-templates](https://github.com/XAMPPRocky/fluent-templates) | `0.9.1` | `0.9.2` |
| [either](https://github.com/rayon-rs/either) | `1.10.0` | `1.11.0` |
| [quote](https://github.com/dtolnay/quote) | `1.0.35` | `1.0.36` |
| [syn](https://github.com/dtolnay/syn) | `2.0.58` | `2.0.59` |
| [proc-macro2](https://github.com/dtolnay/proc-macro2) | `1.0.79` | `1.0.80` |
| [webbrowser](https://github.com/amodm/webbrowser-rs) | `0.8.14` | `0.8.15` |
| [libtest-mimic](https://github.com/LukasKalbertodt/libtest-mimic) | `0.7.0` | `0.7.2` |


Updates `anyhow` from 1.0.81 to 1.0.82
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.81...1.0.82)

Updates `async-channel` from 2.2.0 to 2.2.1
- [Release notes](https://github.com/smol-rs/async-channel/releases)
- [Changelog](https://github.com/smol-rs/async-channel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smol-rs/async-channel/compare/v2.2.0...v2.2.1)

Updates `chrono` from 0.4.37 to 0.4.38
- [Release notes](https://github.com/chronotope/chrono/releases)
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md)
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.37...v0.4.38)

Updates `encoding_rs` from 0.8.33 to 0.8.34
- [Commits](https://github.com/hsivonen/encoding_rs/compare/v0.8.33...v0.8.34)

Updates `fluent-templates` from 0.9.1 to 0.9.2
- [Release notes](https://github.com/XAMPPRocky/fluent-templates/releases)
- [Changelog](https://github.com/XAMPPRocky/fluent-templates/blob/master/CHANGELOG.md)
- [Commits](https://github.com/XAMPPRocky/fluent-templates/compare/fluent-templates-v0.9.1...fluent-templates-v0.9.2)

Updates `either` from 1.10.0 to 1.11.0
- [Commits](https://github.com/rayon-rs/either/compare/1.10.0...1.11.0)

Updates `quote` from 1.0.35 to 1.0.36
- [Release notes](https://github.com/dtolnay/quote/releases)
- [Commits](https://github.com/dtolnay/quote/compare/1.0.35...1.0.36)

Updates `syn` from 2.0.58 to 2.0.59
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/2.0.58...2.0.59)

Updates `proc-macro2` from 1.0.79 to 1.0.80
- [Release notes](https://github.com/dtolnay/proc-macro2/releases)
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.79...1.0.80)

Updates `webbrowser` from 0.8.14 to 0.8.15
- [Release notes](https://github.com/amodm/webbrowser-rs/releases)
- [Changelog](https://github.com/amodm/webbrowser-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/amodm/webbrowser-rs/compare/v0.8.14...v0.8.15)

Updates `libtest-mimic` from 0.7.0 to 0.7.2
- [Release notes](https://github.com/LukasKalbertodt/libtest-mimic/releases)
- [Changelog](https://github.com/LukasKalbertodt/libtest-mimic/blob/master/CHANGELOG.md)
- [Commits](https://github.com/LukasKalbertodt/libtest-mimic/commits)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: async-channel
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: chrono
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: encoding_rs
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: fluent-templates
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: either
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo-minor
- dependency-name: quote
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: syn
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: proc-macro2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: webbrowser
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: libtest-mimic
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-15 23:34:51 +02:00
Nick 752ced391c
avm1: use correct coordinates for hitTest (#15894) 2024-04-09 17:11:21 +00:00
Kamil Jarosz fc37555f66 tests: Add button_key_events test
This test verifies that all key-related events are properly firing
when a key is pressed and a button is focused.
2024-04-08 22:16:50 +02:00
Lord-McSweeney acd2d36790 tests: Add a test for a lookupswitch edge case 2024-04-05 00:34:50 +02:00
Lord-McSweeney 41100a9111 avm2: Add test for checking that exception targets are considered 2024-04-05 00:34:50 +02:00
Kamil Jarosz 686790409b tests: Add tab_ordering_tabbable test
This test verifies what objects are tabbable by default
and after setting tabEnable & tabIndex. This test includes:
* invisible objects,
* objects with 0x0 size,
* object outside of visible window bound,
* objects within invisible containers,
* non-selectable texts,
* non-editable texts.
2024-04-04 22:53:19 +02:00
Nathan Adams b7c9c870bb chore: Use workspace version for walkdir 2024-04-04 17:29:00 +02:00
Nathan Adams 19c914c5a8 chore: Use workspace version for url 2024-04-04 17:29:00 +02:00
Nathan Adams 9d665ce448 chore: Use workspace version for serde 2024-04-04 17:29:00 +02:00
Nathan Adams d8fec1cabc chore: Use workspace version for image 2024-04-04 17:29:00 +02:00
Nathan Adams 2036d85a95 chore: Use workspace version for futures 2024-04-04 17:29:00 +02:00
Nathan Adams 6cca9bb3b7 chore: Use workspace version for clap 2024-04-04 17:29:00 +02:00
Nathan Adams 26df7d78c4 chore: Use workspace version for chrono 2024-04-04 17:29:00 +02:00
Nathan Adams 4e3cd75c30 chore: Use workspace version for bitflags 2024-04-04 17:29:00 +02:00
Nathan Adams 8a390163d6 chore: Use workspace version for async-channel 2024-04-04 17:29:00 +02:00
Nathan Adams 8e4127aef6 chore: Use workspace version for anyhow 2024-04-04 17:29:00 +02:00
Kamil Jarosz 7f3c046a76 tests: Add focusrect_swf5 test
This test verifies the behavior of _focusrect for SWF5.
2024-04-04 10:58:42 +02:00
Kamil Jarosz cebd7f0e5c tests: Add focusrect_swf6 test
This test verifies the behavior of _focusrect for SWF6.
2024-04-04 10:58:42 +02:00
Kamil Jarosz 254cdabaf3 tests: Add focusrect_property_swf5 test
This test verifies the behavior of _focusrect for SWF 5.
2024-04-04 10:58:42 +02:00
Kamil Jarosz 7510780c67 tests: Add focusrect_property_swf6 test
This test verifies the behavior of _focusrect for SWF 6.
2024-04-04 10:58:42 +02:00