Adrian Wielgosik
19b7cc9025
avm2: Add extra failing tests for button child events
2024-05-07 22:42:52 +02:00
Adrian Wielgosik
120bfa2b30
avm2: Send ADDED_TO_STAGE in SimpleButton at correct time
2024-05-07 22:42:52 +02:00
Kamil Jarosz
d852c74b3a
tests: Add avm2/filereference_save_and_load test
...
This test ensures that the error 2037 is thrown
when load is called after save.
It's currently a known failure as Ruffle is not as strict as FP
regarding throwing the error 2037.
2024-05-07 22:26:30 +02:00
Kamil Jarosz
6ea64c92f4
tests: Add avm2/filereference_save_and_browse test
...
This test verifies how FileReference behaves when a browse (and load)
operations are triggered after save.
Additionally, it marks the commented out code related to reporting
file size as FIXME, because the current implementation reports
the size at all times, instead of only after saving.
2024-05-07 22:26:30 +02:00
Kamil Jarosz
8e6e71b2f7
web: Download the file on FileReference.save
...
This patch adds support for saving files on web using FileReference.
When writing data, a download is triggered with the default file name.
Currently, there's no dialog that lets the user select save destination.
This patch also ensures that all implementations of FileDialogResult
behave the same way: desktop, web, and tests.
The methods `write` and `refresh` have been merged into one:
`write_and_refresh`, which allows the tests and web implementations
behave the same way as desktop.
2024-05-07 22:26:30 +02:00
dependabot[bot]
79137ec95e
build(deps): bump webbrowser from 0.8.15 to 1.0.1
...
Bumps [webbrowser](https://github.com/amodm/webbrowser-rs ) from 0.8.15 to 1.0.1.
- [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.15...v1.0.1 )
---
updated-dependencies:
- dependency-name: webbrowser
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-07 22:10:27 +02:00
dependabot[bot]
5bc55f5f3b
build(deps): bump the cargo-minor group with 3 updates
...
Bumps the cargo-minor group with 3 updates: [anyhow](https://github.com/dtolnay/anyhow ), [getrandom](https://github.com/rust-random/getrandom ) and [zip](https://github.com/zip-rs/zip2 ).
Updates `anyhow` from 1.0.82 to 1.0.83
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.82...1.0.83 )
Updates `getrandom` from 0.2.14 to 0.2.15
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.14...v0.2.15 )
Updates `zip` from 1.1.4 to 1.2.0
- [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/v1.1.4...v1.2.0 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
- dependency-name: getrandom
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
- dependency-name: zip
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 23:26:01 +02:00
Kamil Jarosz
0f1c647c1c
tests: Add avm2/edittext_selected_text test
2024-05-06 22:17:41 +02:00
Kamil Jarosz
eef694e9da
tests: Add missing text control codes
2024-05-06 22:17:41 +02:00
Kamil Jarosz
e09e199eb3
tests: Fix text control codes mapping
2024-05-06 22:17:41 +02:00
Kamil Jarosz
64df0368fd
avm2: Fix TextField.selectedText
2024-05-06 22:17:41 +02:00
_Mads
901a88db29
avm2: Implement selectedText in class flash.text.TextField
2024-05-06 22:17:41 +02:00
Colin
88d8eebce6
docs: Fix scanner command and broken mtasc links
2024-05-06 22:04:25 +02:00
J0sh0nat0r
0c38cc9e28
avm2: share binding skip optimization with `call_method`
2024-05-06 22:02:45 +02:00
Polo
0910df8307
avm2: Implement XML.contains ( #16206 )
...
* avm2: XML.contains() implemented
* tests: XMLList known_failure removed
* avm2: XML manual checks removed
* avm2: XMLList.contains() behavior fixed
* avm2: XML contains method moved to xml.rs
* avm2: Empty line removed in xml.rs
* avm2: XML contains args name renamed to value
2024-05-06 17:40:03 +00:00
dependabot[bot]
37cc66fa9b
build(deps): bump the cargo-minor group with 2 updates
...
Bumps the cargo-minor group with 2 updates: [num-traits](https://github.com/rust-num/num-traits ) and [zip](https://github.com/zip-rs/zip2 ).
Updates `num-traits` from 0.2.18 to 0.2.19
- [Changelog](https://github.com/rust-num/num-traits/blob/master/RELEASES.md )
- [Commits](https://github.com/rust-num/num-traits/compare/num-traits-0.2.18...num-traits-0.2.19 )
Updates `zip` from 1.1.3 to 1.1.4
- [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/v1.1.3...v1.1.4 )
---
updated-dependencies:
- dependency-name: num-traits
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
- dependency-name: zip
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 12:30:19 +02:00
dependabot[bot]
793784b029
build(deps-dev): bump the npm-minor group in /web with 2 updates
...
Bumps the npm-minor group in /web with 2 updates: [stylelint](https://github.com/stylelint/stylelint ) and [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ).
Updates `stylelint` from 16.4.0 to 16.5.0
- [Release notes](https://github.com/stylelint/stylelint/releases )
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/stylelint/stylelint/compare/16.4.0...16.5.0 )
Updates `vite` from 5.2.10 to 5.2.11
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v5.2.11/packages/vite )
---
updated-dependencies:
- dependency-name: stylelint
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-minor
- dependency-name: vite
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 12:07:48 +02:00
Colin
12bc0b7e71
desktop: Skip waiting for resize event after resize fails
2024-05-06 09:44:35 +00:00
TÖRÖK Attila
1e11f5f693
chore: Bump `fluent-*` and `intl-memoizer` versions
2024-05-06 09:20:21 +03:00
Crowdin Bot
60c62f70bb
chore: Update translations from Crowdin
2024-05-05 23:39:34 +02:00
Kamil Jarosz
8a9d4f52c4
tests: Add avm2/focus_stage test
...
This test verifies the behavior of focus and focus highlight
for the stage object.
2024-05-04 17:05:24 -07:00
Kamil Jarosz
42c26f61d1
core: Call focus handlers on every object
...
Before this patch, focus handlers were called from on_focus_changed,
only for selected objects. It seems that they should be called for
every object by default.
2024-05-04 17:05:24 -07:00
Kamil Jarosz
f5a0751557
avm2: Do not highlight Stage on focus
...
Stage is never highlightable, even if there's a focus on it.
2024-05-04 17:05:24 -07:00
Crowdin Bot
d1553a203e
chore: Update translations from Crowdin
2024-05-03 23:40:11 +02:00
TÖRÖK Attila
961b0bc551
chore: Do a conservative `cargo update` manually
2024-05-03 08:08:10 +02:00
Daniel Jacobs
181ddd7429
web: Don't append and subsequently remove link just to download files
2024-05-02 18:05:54 -04:00
Crowdin Bot
0551d8bf1f
chore: Update translations from Crowdin
2024-05-02 23:41:08 +02:00
Crowdin Bot
aa006f0e8f
chore: Update translations from Crowdin
2024-05-02 18:07:40 +02:00
Colin
d970c32ac0
tests: add avm1/mcl_loadclip_onload_target
2024-05-02 17:37:20 +02:00
dependabot[bot]
2cced7fcc4
build(deps-dev): bump ejs from 3.1.9 to 3.1.10 in /web
...
Bumps [ejs](https://github.com/mde/ejs ) from 3.1.9 to 3.1.10.
- [Release notes](https://github.com/mde/ejs/releases )
- [Commits](https://github.com/mde/ejs/compare/v3.1.9...v3.1.10 )
---
updated-dependencies:
- dependency-name: ejs
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-02 11:39:06 +02:00
Daniel Jacobs
99eaf7ac2c
extension: Add exclusions for Time4Learning and Edgenuity
2024-05-01 15:40:42 -04:00
Crowdin Bot
1e95c6bf66
chore: Update translations from Crowdin
2024-05-01 08:57:45 +02:00
dependabot[bot]
8644fd3c12
build(deps): bump zip from 1.1.2 to 1.1.3 in the cargo-minor group
...
Bumps the cargo-minor group with 1 update: [zip](https://github.com/zip-rs/zip2 ).
Updates `zip` from 1.1.2 to 1.1.3
- [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/v1.1.2...v1.1.3 )
---
updated-dependencies:
- dependency-name: zip
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-01 08:35:18 +02:00
dependabot[bot]
cca6c13710
build(deps): bump libflate from 2.0.0 to 2.1.0 in the cargo-minor group
...
Bumps the cargo-minor group with 1 update: [libflate](https://github.com/sile/libflate ).
Updates `libflate` from 2.0.0 to 2.1.0
- [Release notes](https://github.com/sile/libflate/releases )
- [Commits](https://github.com/sile/libflate/compare/2.0.0...2.1.0 )
---
updated-dependencies:
- dependency-name: libflate
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 15:03:17 +02:00
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
8ee514e62f
avm2: Handle setting tabIndex to -1
...
Despite throwing an error that `tabIndex` cannot be negative,
the value of -1 is allowed, and it means that `tabIndex` is unset.
2024-04-30 14:23:45 +02:00
Kamil Jarosz
f40cb6435f
code: Unset tabIndex upon assigning -1
...
The value of -1 for tabIndex always means that it's unset,
even in AVM1 where tabIndex may have a value of `undefined`.
2024-04-30 14:23:45 +02:00
Crowdin Bot
054d0aab29
chore: Update translations from Crowdin
2024-04-30 01:14:39 +02:00
dependabot[bot]
30beb57ec4
build(deps): bump chromedriver from 123.0.4 to 124.0.1 in /web
...
Bumps [chromedriver](https://github.com/giggio/node-chromedriver ) from 123.0.4 to 124.0.1.
- [Commits](https://github.com/giggio/node-chromedriver/compare/123.0.4...124.0.1 )
---
updated-dependencies:
- dependency-name: chromedriver
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 23:48:32 +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
ec2aaa0549
avm2: Implement InteractiveObject.focusRect
2024-04-29 23:41:40 +02:00
dependabot[bot]
6191984dd6
build(deps): bump the cargo-minor group with 4 updates
...
Bumps the cargo-minor group with 4 updates: [flate2](https://github.com/rust-lang/flate2-rs ), [hashbrown](https://github.com/rust-lang/hashbrown ), [gilrs](https://gitlab.com/gilrs-project/gilrs ) and [zip](https://github.com/Pr0methean/zip ).
Updates `flate2` from 1.0.29 to 1.0.30
- [Release notes](https://github.com/rust-lang/flate2-rs/releases )
- [Commits](https://github.com/rust-lang/flate2-rs/compare/1.0.29...1.0.30 )
Updates `hashbrown` from 0.14.3 to 0.14.5
- [Changelog](https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/hashbrown/compare/v0.14.3...v0.14.5 )
Updates `gilrs` from 0.10.6 to 0.10.7
- [Commits](https://gitlab.com/gilrs-project/gilrs/compare/v0.10.6...v0.10.7 )
Updates `zip` from 1.1.1 to 1.1.2
- [Release notes](https://github.com/Pr0methean/zip/releases )
- [Changelog](https://github.com/zip-rs/zip2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Pr0methean/zip/compare/1.1.1...v1.1.2 )
---
updated-dependencies:
- dependency-name: flate2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
- dependency-name: hashbrown
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
- dependency-name: gilrs
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
- dependency-name: zip
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 23:18:44 +02:00
dependabot[bot]
bb11e561ec
build(deps): bump the npm-minor group in /web with 9 updates
...
Bumps the npm-minor group in /web with 9 updates:
| Package | From | To |
| --- | --- | --- |
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) | `7.7.1` | `7.8.0` |
| [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) | `7.7.1` | `7.8.0` |
| [stylelint](https://github.com/stylelint/stylelint ) | `16.3.1` | `16.4.0` |
| [react](https://github.com/facebook/react/tree/HEAD/packages/react ) | `18.2.0` | `18.3.1` |
| [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ) | `18.2.79` | `18.3.1` |
| [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom ) | `18.2.0` | `18.3.1` |
| [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom ) | `18.2.25` | `18.3.0` |
| [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks ) | `4.6.0` | `4.6.2` |
| [@types/chrome](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chrome ) | `0.0.266` | `0.0.267` |
Updates `@typescript-eslint/eslint-plugin` from 7.7.1 to 7.8.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.8.0/packages/eslint-plugin )
Updates `@typescript-eslint/parser` from 7.7.1 to 7.8.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.8.0/packages/parser )
Updates `stylelint` from 16.3.1 to 16.4.0
- [Release notes](https://github.com/stylelint/stylelint/releases )
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/stylelint/stylelint/compare/16.3.1...16.4.0 )
Updates `react` from 18.2.0 to 18.3.1
- [Release notes](https://github.com/facebook/react/releases )
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/react/commits/v18.3.1/packages/react )
Updates `@types/react` from 18.2.79 to 18.3.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react )
Updates `react-dom` from 18.2.0 to 18.3.1
- [Release notes](https://github.com/facebook/react/releases )
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/react/commits/v18.3.1/packages/react-dom )
Updates `@types/react-dom` from 18.2.25 to 18.3.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom )
Updates `@types/react` from 18.2.79 to 18.3.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react )
Updates `@types/react-dom` from 18.2.25 to 18.3.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom )
Updates `eslint-plugin-react-hooks` from 4.6.0 to 4.6.2
- [Release notes](https://github.com/facebook/react/releases )
- [Changelog](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/CHANGELOG.md )
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/eslint-plugin-react-hooks )
Updates `@types/chrome` from 0.0.266 to 0.0.267
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chrome )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-minor
- dependency-name: "@typescript-eslint/parser"
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-minor
- dependency-name: stylelint
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-minor
- dependency-name: react
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: npm-minor
- dependency-name: "@types/react"
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-minor
- dependency-name: react-dom
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: npm-minor
- dependency-name: "@types/react-dom"
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-minor
- dependency-name: "@types/react"
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-minor
- dependency-name: "@types/react-dom"
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-minor
- dependency-name: eslint-plugin-react-hooks
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-minor
- dependency-name: "@types/chrome"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 23:02:12 +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
0479259fb9
avm2: Implement DisplayObjectContainer.tabChildren
2024-04-29 21:54:06 +02:00