Commit Graph

1683 Commits

Author SHA1 Message Date
Nathan Adams f6ca9bcdac avm2: Also exclude interface based virtual properties from describeTypeJSON 2024-07-28 23:18:52 +02:00
Nathan Adams db0fd879d2 avm2: Don't include interface methods in describeTypeJSON 2024-07-28 23:18:52 +02:00
Kamil Jarosz 53d2d16162 core: Add UiBackend::close_virtual_keyboard
This method may be used by backends that require explicit virtual
keyboard closing.
2024-07-27 21:32:35 +02:00
Lord-McSweeney ad4a65eee8 tests: Add test for linking root movie to non-zero id 2024-07-27 16:12:44 +03:00
Tom Schuster 64c6782249 tests: Test Proxy hasProperty override is called for hasOwnProperty 2024-07-27 12:33:58 +02:00
Kamil Jarosz 3f85265bc7 tests: Increase tolerance of image tests failing locally 2024-07-26 18:15:09 -04:00
Kamil Jarosz 8bfb50f3c1 tests: Add avm2/focus_events_mouse_focusable test
This test verifies the behavior of focus-related events when
trying to focus various interactive objects using mouse.
2024-07-25 16:38:06 +02:00
Kamil Jarosz b6ce6523de tests: Add avm2/focus_events_mixed_key_mouse test
This test verifies the behavior of focus-related events when
changing focus using keyboard and mouse interchangeably.
2024-07-25 16:38:06 +02:00
Kamil Jarosz be903d2cd5 tests: Add avm2/focus_events_mouse_same_object test
This test verifies the behavior of focus-related events when
changing focus to the same object using mouse.
2024-07-25 16:38:06 +02:00
Kamil Jarosz dd4b859268 tests: Add avm2/focus_events_mouse_basic test
This test verifies the behavior of focus-related events when
changing focus using mouse.
2024-07-25 16:38:06 +02:00
Kamil Jarosz c63a014efd tests: Add avm2/focus_events_key_navigation test
This test verifies the behavior of focus-related events
when using keyboard navigation.
2024-07-25 16:38:06 +02:00
Kamil Jarosz e3d013ebf8 tests: Add avm2/focus_events_key_same_object test
This test verifies the behavior of focus-related events when
changing focus to the same object using keyboard.
2024-07-25 16:38:06 +02:00
Kamil Jarosz 2bf3a61a4d tests: Add avm2/focus_events_key_basic test
This test verifies the behavior of focus-related events when
changing focus using keyboard.
2024-07-25 16:38:06 +02:00
Kamil Jarosz 8f4668e5bb tests: Add avm2/focus_events_code test
This test verifies the behavior of focus-related events when
changing focus programmatically.
2024-07-25 16:38:06 +02:00
Kamil Jarosz 594d3d5d2f tests: Add avm2/focusrect_focuslost
This test verifies the behavior of focus-related events when
the window focus is lost.
2024-07-25 16:38:06 +02:00
Kamil Jarosz 266efaf887 tests: Add avm1/focus_mouse_focusable test
This test checks which objects are focusable by mouse in AVM1.
2024-07-25 16:38:06 +02:00
Kamil Jarosz b850c9b0d2 tests: Make renderer optional for focusrect_focuslost 2024-07-25 16:38:06 +02:00
Lord-McSweeney e814692aaf tests: Add a test for gotoing to a frame with a frame label when the frame is the last frame 2024-07-25 15:59:16 +03:00
Kamil Jarosz d832476ae6 tests: Add avm2/edittext_paragraph_methods test 2024-07-24 17:12:54 +02:00
dependabot[bot] 88b5fafd7d build(deps): bump the cargo-minor group with 10 updates
Bumps the cargo-minor group with 10 updates:

| Package | From | To |
| --- | --- | --- |
| [image](https://github.com/image-rs/image) | `0.25.1` | `0.25.2` |
| [thiserror](https://github.com/dtolnay/thiserror) | `1.0.62` | `1.0.63` |
| [tokio](https://github.com/tokio-rs/tokio) | `1.38.0` | `1.38.1` |
| [syn](https://github.com/dtolnay/syn) | `2.0.71` | `2.0.72` |
| [toml_edit](https://github.com/toml-rs/toml) | `0.22.15` | `0.22.16` |
| [embed-resource](https://github.com/nabijaczleweli/rust-embed-resource) | `2.4.2` | `2.4.3` |
| [gloo-net](https://github.com/rustwasm/gloo) | `0.5.0` | `0.6.0` |
| [zip](https://github.com/zip-rs/zip2) | `2.1.3` | `2.1.5` |
| [libloading](https://github.com/nagisa/rust_libloading) | `0.8.4` | `0.8.5` |
| [toml](https://github.com/toml-rs/toml) | `0.8.14` | `0.8.15` |


Updates `image` from 0.25.1 to 0.25.2
- [Changelog](https://github.com/image-rs/image/blob/main/CHANGES.md)
- [Commits](https://github.com/image-rs/image/compare/v0.25.1...v0.25.2)

Updates `thiserror` from 1.0.62 to 1.0.63
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.62...1.0.63)

Updates `tokio` from 1.38.0 to 1.38.1
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.38.0...tokio-1.38.1)

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

Updates `toml_edit` from 0.22.15 to 0.22.16
- [Commits](https://github.com/toml-rs/toml/compare/v0.22.15...v0.22.16)

Updates `embed-resource` from 2.4.2 to 2.4.3
- [Release notes](https://github.com/nabijaczleweli/rust-embed-resource/releases)
- [Commits](https://github.com/nabijaczleweli/rust-embed-resource/compare/v2.4.2...v2.4.3)

Updates `gloo-net` from 0.5.0 to 0.6.0
- [Release notes](https://github.com/rustwasm/gloo/releases)
- [Changelog](https://github.com/rustwasm/gloo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rustwasm/gloo/compare/0.5.0...0.6.0)

Updates `zip` from 2.1.3 to 2.1.5
- [Release notes](https://github.com/zip-rs/zip2/releases)
- [Changelog](https://github.com/zip-rs/zip2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zip-rs/zip2/compare/v2.1.3...v2.1.5)

Updates `libloading` from 0.8.4 to 0.8.5
- [Commits](https://github.com/nagisa/rust_libloading/compare/0.8.4...0.8.5)

Updates `toml` from 0.8.14 to 0.8.15
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.8.14...toml-v0.8.15)

---
updated-dependencies:
- dependency-name: image
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: tokio
  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: toml_edit
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: embed-resource
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: gloo-net
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo-minor
- dependency-name: zip
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: libloading
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: toml
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-22 20:13:02 +02:00
Aaron Hill 71c3245d14 avm2: Add static methods to XML in public namespace
'My Champion Oliver' relies on being able to call these methods
without the AS3 namespace.
2024-07-19 17:06:41 +03:00
Kamil Jarosz 60bbbda990 tests: Add avm2/edittext_always_show_selection test 2024-07-19 14:15:58 +02:00
Kamil Jarosz f8577a843d core: Use non-zero winding rule for fonts 2024-07-19 12:40:12 +02:00
Kamil Jarosz aab4f7122b avm2: Support non-zero winding rule when drawing paths 2024-07-19 12:40:12 +02:00
Lord-McSweeney 74b5c24b51 avm2: Fix regression with unreachable exceptions 2024-07-17 21:30:13 +03:00
Lord-McSweeney bb49deecf8 avm2: Add test for unreachable exception 2024-07-16 23:03:30 +03:00
Kamil Jarosz 53328c72f8 tests: Fix avm2/eventdispatcher_dispatchevent_cancel
This test was verifying cancellation using non-cancellable events.
2024-07-16 10:53:42 +03:00
Kamil Jarosz c62bd1cfe3 tests: Add mouse_double_click_events test 2024-07-15 21:51:18 +02:00
Kamil Jarosz 6fa2f41eee tests: Add avm2/mouse_wheel_events test 2024-07-15 21:36:37 +02:00
Kamil Jarosz 582f5dbf12 tests: Add tab_ordering_arrows test
This test verifies the behavior of keyboard navigation with arrows.
2024-07-15 21:19:21 +02:00
Adrian Wielgosik 48db0e23c4 core: Fix panic on unsetting self-referential masker 2024-07-12 22:35:07 +02:00
Kamil Jarosz 92a16b5095 tests: Remove an obsolete comment from edittext_html_swf8 2024-07-12 16:30:21 +02:00
Kamil Jarosz 77d89bbf42 tests: Add avm2/mouse_click_events test 2024-07-12 15:41:08 +02:00
Kamil Jarosz cb958fd2c3 tests: Add possibility to assert on whether the event has been handled 2024-07-12 15:41:08 +02:00
Kamil Jarosz 4e3b59b360 tests: Add focus_highlight_empty_clip test 2024-07-12 14:44:49 +02:00
Kamil Jarosz 5d30c9368e tests: Add focusrect_focuslost test
This test verifies the behavior of the current focus and focusrect
when the player loses focus.
2024-07-12 14:20:35 +02:00
Kamil Jarosz 6a9f88d060 tests: Add FocusLost, FocusGained automated events 2024-07-12 14:20:35 +02:00
Kamil Jarosz f71e63379d tests: Add avm2/edittext_html_condensewhite test 2024-07-12 14:01:24 +02:00
Kamil Jarosz 2a667d713d tests: Add avm1/edittext_html_condensewhite_swf7 test 2024-07-12 14:01:24 +02:00
Kamil Jarosz 25caca16f1 tests: Add avm1/edittext_html_condensewhite_swf8 test 2024-07-12 14:01:24 +02:00
Kamil Jarosz f54087143f tests: Assert on newlines in HTML tests 2024-07-12 14:01:24 +02:00
Tom Schuster 393ffe05ef tests: Test for flash.events.NetFilterEvent 2024-07-12 00:20:16 +02:00
Tom Schuster eec5e908ad tests: Test mismatched E4X tags 2024-07-09 01:01:15 +02:00
Lord-McSweeney 953a02533f avm2: Fix created receiver value when constructing function 2024-07-08 12:59:15 +03:00
Lord-McSweeney 13ee356b8c avm2: Fix function prototype 2024-07-08 12:59:15 +03:00
Kamil Jarosz 9d7629e486 tests: Add avm2/edittext_mouse_selection test
This test verifies the behavior of selecting text using mouse.
It takes into account normal, word, and line selection.
Example use cases covered by this test:
1. selecting characters,
2. selecting words by double-clicking,
3. selecting multiple words by double-clicking and dragging,
4. selecting lines by triple-clicking,
5. selecting multiple lines by triple-clicking and dragging,
6. double-clicking at word boundaries,
7. double-clicking between spaces,
8. changing the underlying text while clicking and dragging,
9. trying to select while the text field is not selectable.
2024-07-06 18:32:10 +02:00
Kamil Jarosz 44f222a611 tests: Add click index to AutomatedEvent::MouseDown 2024-07-06 18:32:10 +02:00
Kamil Jarosz 9f9d462381 core: Add click index to PlayerEvent::MouseDown 2024-07-06 18:32:10 +02:00
Tom Schuster 2dda941ecf tests: Test AMF serialization of dynamic Proxy 2024-07-04 18:43:01 +02:00
Aaron Hill c65033aa37 avm2: Ignore errors when setting properties in amf deserializer
Flash Player *traces* any errors that occur during setting properties
on the newly-constructed object durting AMf deserialization, and
continues deserializing.
2024-07-03 17:42:02 -04:00