Commit Graph

1116 Commits

Author SHA1 Message Date
Nathan Adams 647b49ad52 tests: Move from_avmplus up one level 2023-07-30 13:59:33 +02:00
Nathan Adams c8a86966b0 tests: Port avmplus e4x XMLList tests 2023-07-30 13:59:33 +02:00
Nathan Adams 2e1f848144 tests: Port avmplus e4x XML tests 2023-07-30 13:59:33 +02:00
Nathan Adams 0ac0ea21c5 tests: Port avmplus e4x Types tests 2023-07-30 13:59:33 +02:00
Nathan Adams f97559066b tests: Port avmplus e4x TypeConversion tests 2023-07-30 13:59:33 +02:00
Nathan Adams 068a4b38ac tests: Port avmplus e4x Regress tests 2023-07-30 13:59:33 +02:00
Nathan Adams 8a0e57ca95 tests: Port avmplus e4x Namespace tests 2023-07-30 13:59:33 +02:00
Nathan Adams 6030ed563b tests: Port avmplus ecma3 Number tests 2023-07-30 13:59:33 +02:00
Nathan Adams 495f19f10d tests: Port avmplus ecma3 ObjectObjects tests 2023-07-30 13:59:33 +02:00
Nathan Adams e25c18beed tests: Port avmplus ecma3 Statements tests 2023-07-30 13:59:33 +02:00
Nathan Adams 04dbff285a tests: Port avmplus ecma3 String tests 2023-07-30 13:59:33 +02:00
Nathan Adams b7f6373af3 tests: Port avmplus ecma3 TypeConversion tests 2023-07-30 13:59:33 +02:00
Nathan Adams e08e9cc14b tests: Port avmplus ecma3 instanceof tests 2023-07-30 13:59:33 +02:00
Nathan Adams 9c12d3134a tests: Port avmplus ecma3 ErrorObject tests 2023-07-30 13:59:33 +02:00
Nathan Adams e707e98487 tests: Port avmplus ecma3 Boolean tests 2023-07-30 13:59:33 +02:00
Tom Schuster f237aa1da2 avm2: Implement XMLNode.nodeValue 2023-07-30 11:14:00 +02:00
TÖRÖK Attila acddd6c26d tests: Add glow_pass_scaling visual test 2023-07-29 22:23:49 +02:00
TÖRÖK Attila 24afc21f87 tests: Remove redundant "test" suffix from the name of blur_pass_scaling_test 2023-07-29 22:23:49 +02:00
Aaron Hill 4406a70fc9 avm2: Enable Vector.<ObjectSubclass> serialization tests
This also fixes a minor bug (we should always deserialize
to a `Vector.<Object>`, not a `Vector.<*>`)
2023-07-29 15:30:24 -04:00
Nathan Adams f9be8be99e avm2: Make 'new Math()' and 'Math(value)' throw errors 2023-07-29 15:24:30 +02:00
Adrian Wielgosik 456e9d2c05 avm2: Extend vector_concat test 2023-07-28 23:42:04 +02:00
Adrian Wielgosik 22d7ffdefc avm2: fix Vector null display 2023-07-28 23:42:04 +02:00
Adrian Wielgosik e1d73f031a avm2: Activate the Vector/specialized_at_runtime test 2023-07-28 23:42:04 +02:00
Nathan Adams 8be0a36b1a tests: Port avmplus ecma3 Array tests 2023-07-28 22:22:47 +02:00
Nathan Adams 90b4653eaf tests: Port avmplus ecma3 Exception tests 2023-07-28 22:22:47 +02:00
Nathan Adams a52bed18bd tests: Port avmplus ecma3 FunctionObjects tests 2023-07-28 22:22:47 +02:00
Nathan Adams 684c0ea5e6 tests: Port avmplus ecma3 GlobalObject tests 2023-07-28 22:22:47 +02:00
Nathan Adams d3606e3c9d tests: Port avmplus ecma3 Types tests 2023-07-28 22:22:47 +02:00
Nathan Adams a8410aa34e tests: Port avmplus ecma3 ExecutionContexts tests 2023-07-28 22:22:47 +02:00
Nathan Adams 1a354d5809 tests: Port avmplus ecma3 Expression tests 2023-07-28 22:22:47 +02:00
Nathan Adams 8ff5ff8176 tests: Port avmplus ecma3 Function tests 2023-07-28 22:22:47 +02:00
Nathan Adams e1749cd0ad tests: Port avmplus ecma3 Unicode tests 2023-07-28 22:22:47 +02:00
Lord-McSweeney cf5c02ca1b avm2+tests: Fully implement XML.appendChild, add a test 2023-07-28 15:21:38 +02:00
Lord-McSweeney cf8dde966f tests: Allow avmplus e4x/Global/e13_1_2_1 to run, since it no longer loops indefinitely 2023-07-28 13:11:15 +02:00
sleepycatcoding 46d6d6724d tests: Allow some avmplus tests as they now succeed 2023-07-27 23:39:06 +02:00
sleepycatcoding 04aa060c61 tests: Check XML/XMLList.parent() in xml_list_concat 2023-07-27 23:39:06 +02:00
sleepycatcoding 02d815e86b avm2: Implement XML addition operations 2023-07-27 23:39:06 +02:00
Nathan Adams 70fb674d8b avm2: Implement correct errors for write_bytes with offset+length > u32::MAX 2023-07-27 19:47:16 +02:00
Nathan Adams 1bbefbe472 avm2: Throw correct error when writing a too-large string to ByteArray 2023-07-27 19:47:16 +02:00
Nathan Adams 0d1d110660 tests: Port avmplus ByteArray tests 2023-07-27 19:47:16 +02:00
Nathan Adams 7dc0224451 tests: Add lzma feature and add a required_features.lzma flag 2023-07-27 19:47:16 +02:00
Nathan Adams 08b7a8c498 tests: Port avmplus e4x QName tests 2023-07-27 19:30:41 +02:00
Nathan Adams e88a03c2d5 tests: Port avmplus e4x Statements tests 2023-07-27 19:30:41 +02:00
Nathan Adams cbf029c019 tests: Port avmplus e4x Global tests 2023-07-27 19:30:41 +02:00
Nathan Adams 28dfcab8ff tests: Port avmplus e4x Expression tests 2023-07-27 19:30:41 +02:00
Nathan Adams 4f315ef6a9 tests: Include PrettyString workaround again 2023-07-27 19:30:41 +02:00
Nathan Adams cb23067382 avm2: Implement UninitializedError 2023-07-27 09:49:47 +02:00
Nathan Adams 5fc37c7e13 avm2: Implement call handler for Error 2023-07-27 09:49:47 +02:00
Nathan Adams 55d77970e0 tests: Port avmplus Exception tests over 2023-07-27 09:49:47 +02:00
Aaron Hill 583caa3389
avm2: Implement DisplayObject.blendShader (#12238) 2023-07-26 23:25:26 +00:00
Nathan Adams 6a7063a83b tests: Mark vectorIndexRangeExceptions as ignore again, and explain why 2023-07-27 00:52:40 +02:00
Nathan Adams 1ffb87c227 tests: If an image test isn't being checked and we expect it to fail, make it fail 2023-07-27 00:52:40 +02:00
Nathan Adams 049cb0e84d tests: Increase tolerance of bitmapdata_applyfilter_blur to make it pass on my machine 2023-07-27 00:52:40 +02:00
Nathan Adams bdf960f972 tests: Unflagged previously ignored tests that now pass successfully 2023-07-27 00:52:40 +02:00
Nathan Adams a10dfca653 tests: Change a lot of tests from ignore to known_failure 2023-07-27 00:52:40 +02:00
Nathan Adams 6063579fbd tests: Add known_failure to test.toml 2023-07-27 00:52:40 +02:00
Aaron Hill 99ed2c6d4a
avm2: Fix handling of default domain memory (#12308) 2023-07-26 18:26:26 +00:00
Nathan Adams 0a21a6015c tests: Document fscommand('quit') 2023-07-26 17:00:15 +02:00
Nathan Adams 6b788faa9d tests: Implement fscommand('quit') on test runner 2023-07-26 17:00:15 +02:00
Nathan Adams 1a0a82d898 core: Move fscommand execution outside of ExternalInterfaceProvider, so it can be implemented without causing ExternalInterface.available to become true 2023-07-26 17:00:15 +02:00
Nathan Adams 4252d035af tests: Add issue to avm_plus ignored tests 2023-07-26 16:12:57 +02:00
Nathan Adams 3e7a7854ae tests: Ignore failing avmplus tests 2023-07-26 16:12:57 +02:00
Nathan Adams 6b2813c022 tests: Port some avmplus tests over 2023-07-26 16:12:57 +02:00
sleepycatcoding dc5cf083d2 tests: Add test for close event 2023-07-26 14:01:03 +02:00
sleepycatcoding 28f8937124 tests: Add read socket test (Little Endian) 2023-07-26 14:01:03 +02:00
sleepycatcoding c3582464be tests: Add socket read test (Big Endian) 2023-07-26 14:01:03 +02:00
sleepycatcoding 525c708fe8 tests: Fix some number ranges
Also reduce float precision.
2023-07-26 14:01:03 +02:00
sleepycatcoding f23fe16557 tests: Write a signed short too 2023-07-26 14:01:03 +02:00
sleepycatcoding b169671238 tests: Add test for socket write (Little Endian) 2023-07-26 14:01:03 +02:00
sleepycatcoding 4927d0c6b9 tests: Add test for socket write (Big Endian) 2023-07-26 14:01:03 +02:00
sleepycatcoding d52f2a4409 tests: Add socket_connect test 2023-07-26 14:01:03 +02:00
sleepycatcoding 809e511656 chore: Remove accidental doc change
For some reason my IDE keeps adding random stuff :(
2023-07-26 14:01:03 +02:00
sleepycatcoding 9604b07518 tests: Allow passing path to mocket utility
Also use anyhow to remove some unwraps.
2023-07-26 14:01:03 +02:00
sleepycatcoding a0e40287c9 tests: Rename socket-mock utility to mocket 2023-07-26 14:01:03 +02:00
sleepycatcoding 87ab1a22e9 chore: Fix clippy warning 2023-07-26 14:01:03 +02:00
sleepycatcoding 06e9656841 chore: fmt 2023-07-26 14:01:03 +02:00
sleepycatcoding d5da477df8 tests: Improve socket testing backend 2023-07-26 14:01:03 +02:00
sleepycatcoding 5d29c909c6 tests: Use socket.json when running tests 2023-07-26 14:01:03 +02:00
sleepycatcoding 3e8ee00a67 tests: Move SocketEvent into ruffle_socket_format crate 2023-07-26 14:01:03 +02:00
sleepycatcoding 88626b7212 tests: Add experimental socket_mock tool
This is used to help to create/test socket.json files against real Flash Player to verify behavior.
2023-07-26 14:01:03 +02:00
TÖRÖK Attila d1a94c5d24 tests: Don't exclude WARP from visual tests of blur 2023-07-26 13:03:11 +02:00
TÖRÖK Attila 2e721fdcbe tests: Update the expected output of some visual blur tests 2023-07-26 13:03:11 +02:00
TÖRÖK Attila 9fa3a11b22 tests: Add a visual test for equivalence of blur quality/repetition and filters/applyFilter 2023-07-26 13:03:11 +02:00
TÖRÖK Attila 5f840bf103 tests: Add a visual test for blur filter quality 2023-07-26 13:03:11 +02:00
Aaron Hill a91b0cf5cb avm2: Don't error in DisplayObject.removeChildren when `to` is max
Our previous special-case wasn't broad enough
2023-07-25 21:44:23 -04:00
Aaron Hill 3c64e8e249 avm2: Implement AMF Vector serialization/deserialization
Some of the tests are currently disabled because (separate from this PR)
we can't actually run `toString()` on a Vector.<Object>, due to our
broken vector handling.
2023-07-25 09:35:50 -04:00
CUB3D 7346f9f6cb avm1: Differentiate between clips with no name set and empty string names 2023-07-25 08:25:37 +02:00
TÖRÖK Attila 1c0fff9e12 tests: Update the expected output of the avm2/bitmapdata_sync visual test 2023-07-25 00:38:08 -04:00
sleepycatcoding f2c9237ea1
avm2: Allow setting prototype to undefined (#12282)
* avm2+tests: Allow setting prototype to undefined

This is used internally by Adobe Flex in many places. Also add test.

* avm2: Set prototype when constructing a Function with null prototype

* tests: Expand prototype_set_null test

* chore: fmt
2023-07-24 20:41:38 +00:00
Nathan Adams 92e3e44453 avm1: Reverse iteration when applying filters - fixes #12272 2023-07-24 13:44:02 +02:00
TÖRÖK Attila 0d1f7f8dcc tests: Increase the tolerance of visual tests for the bevel filter slightly
To accomodate platform differences.
2023-07-24 04:44:22 +02:00
TÖRÖK Attila e14b92ae3b tests: Update visual test images due to slightly different blur algorithm 2023-07-24 04:44:22 +02:00
TÖRÖK Attila 7fe1c71257 tests: Add a visual test for fractional blur strength 2023-07-24 04:44:22 +02:00
Nathan Adams 9c661a14c3 tests: Port Shumway's avm1 tests over 2023-07-24 04:26:14 +02:00
Aaron Hill cd9efb2dfa wgpu: Ignore zero width/height Stage3D scissor rect
This matches Flash's behavior, and prevents wgpu from panicking.
2023-07-23 17:05:27 -04:00
Aaron Hill 8941a0bb79 avm2: Clamp ByteArray.position when ByteArray.length is set
Note that ByteArray.position can manually be set out-of-range
afterwards.
2023-07-23 14:51:30 -04:00
Aaron Hill 005fdffd05 avm2: Correctly set fields on ShaderInput and ShaderParameter
The special meta key `defaultValue` should be used to set
the default `value` field. Also, `index` is the position
within *just* the image or texture params, not within
all of the params.
2023-07-23 13:52:26 -04:00
sleepycatcoding f47ed92108 tests: Add test for socket errors 2023-07-23 09:13:01 +02:00
sleepycatcoding 75672ae998 web, tests: Update connect_socket stubs 2023-07-23 09:13:01 +02:00
sleepycatcoding ed22a7a23b web, tests: remove Option for connection timeout 2023-07-23 09:13:01 +02:00