relrelb
81dcc66c01
tests: Expand `as_broadcaster`
...
Verify that `AsBroadcaster` is actually a usable constructor.
2023-04-26 21:21:57 +03:00
Nathan Adams
cc731a78ee
avm2: Respect data, method and contentType in Loader.load()
2023-04-26 12:46:23 +02:00
Lord-McSweeney
f412f62127
avm2/tests: use try_get_object in JSON/Add test for undefined receiver
2023-04-26 00:17:44 +02:00
Lord-McSweeney
58212ec280
avm2: Throw AVM errors for JSON operations (and add tests)
2023-04-26 00:17:44 +02:00
Aaron Hill
6eba8d07ee
avm2: Implement MorphShape class and use it for MorphShape displayobject
2023-04-25 18:43:43 +02:00
Toad06
ad4dc943fa
avm1: Fix some issues with buttons
2023-04-25 17:50:25 +02:00
Aaron Hill
4432c45eb3
avm2: Mark 'callee' property as non-enumerable on 'arguments' array
...
Some SWFs iterate over the 'arguments' array, and the 'callee' property
should not get enumerated.
2023-04-25 17:29:20 +02:00
relrelb
ff7c458739
core: Accept borrowed strings in `NavigatorBackend::navigate_to_url`
...
This avoids some unnecessary clones.
2023-04-24 22:06:47 +03:00
Tom Schuster
8b3491fe53
tests: Update the XML abstract equality test
2023-04-23 22:07:54 -05:00
Aaron Hill
15af946cf1
avm2: Stop after first frame when movieclip doesn't extend MovieClip
...
It's possible to have a DefineSprite tag with multiple frames,
but with a corresponding SymbolClass that directly extends
`Sprite` (and therefore does *not* extend `MovieClip`). When this
happens, Flash Player stops after the first frame.
2023-04-23 16:48:38 -05:00
Aaron Hill
33e9713279
avm2: Fix get_super and set_super with normal methods
...
Doing `super.someNonGetter` gives you back a function object.
We were previously attempting to call normal methods as though
they were getters. Additionally, we were failing to properly
get the property from the superclass vtable.
2023-04-23 16:28:59 -05:00
Nathan Adams
4f4327b152
wgpu: Fix drawing a transparent bitmap with MSAA
2023-04-18 23:15:42 +02:00
Tom Schuster
da689b7687
tests: Test XMLList.child
2023-04-11 14:49:32 -04:00
Nathan Adams
35f3a21110
core: Fix bitmapdata.floodFill() replacing X with X + test. Fixes #10642
2023-04-11 10:40:57 -04:00
Mike Welsh
89e9b15c60
tests: Improve test for `Graphics.beginBitmapFill`
2023-04-11 11:36:49 +02:00
Toad06
81d907b9f0
tests: `MovieClip.focusEnabled` in avm1
2023-04-09 14:11:24 -07:00
Tom Schuster
5289009959
tests: Add some tests for XML abstract equality
2023-04-09 12:02:20 -07:00
Mike Welsh
6ad5c30188
tests: Test for correct variables in `loadvariables_method` test
2023-04-08 13:37:25 -07:00
Mike Welsh
35810a8c7e
tests: Add `log_fetch` option
...
Adds a `TestNavigatorBackend` that has the ability to log HTTP
requests for tests.
2023-04-08 13:37:25 -07:00
Mike Welsh
a38f74d989
tests: Add `NavigatorTestBackend`
2023-04-08 13:37:25 -07:00
Tom Schuster
d9e69563d3
avm2: Implement XMLList.copy
2023-04-07 12:29:49 -05:00
Udeshya
54a8672390
avm2: Trim xml text nodes when being parsed ( #10341 )
2023-04-06 22:41:46 -05:00
Aaron Hill
962cf92223
avm2: Implement Context3D.setSamplerStateAt
...
This fixes pixelated backgrounds in Fancy Pants World 4 Part 3
2023-04-05 16:44:07 -07:00
Toad06
5e165a0682
avm1: Fix some issues with `Selection.getFocus()` and `setFocus()`
2023-04-05 15:53:18 -07:00
Mike Welsh
83aff3c7ba
tests: Add Julia fractal Stage3D test
2023-04-05 12:22:13 -07:00
Mike Welsh
de80de731d
tests: Add test for scrollRect within masker
2023-04-04 13:10:45 -07:00
Mike Welsh
e21f3744b5
tests: Add visual test for TextField as mask
2023-04-04 13:10:45 -07:00
Nathan Adams
06bc4e1403
wgpu: Fix sync issue introduced in #9753 and added test
2023-04-04 11:11:57 -07:00
Mike Welsh
63aa67d196
tests: Add test for `Matrix3D.transformVector` and `deltaTransformVector`
2023-04-03 17:09:16 -07:00
Udeshya
34775965ea
avm2: Implement `Transform.pixelBounds`
2023-04-02 23:25:10 +00:00
AllinolCP
f0a8e50be1
avm2: implement decodeURI
2023-04-02 14:49:07 -07:00
Tom Schuster
5a18a409f7
avm2: Only reject a single explicit namespace in XML
2023-04-02 16:09:03 -05:00
Toad06
35528913bf
core: Make `ExternalInterface` support undefined values
2023-04-02 13:48:14 -07:00
Tom Schuster
86395f194f
avm2: Strip BOM in ByteArray::toString
2023-04-01 12:48:22 -07:00
Aaron Hill
18f5ba18e9
core: Don't overwrite font descriptor with a duplicate
...
If a SWF contains multiple DefineFont tags with the same
font name (but different font IDs), the first tag will win
when a font is looked up by *name*. This affects the behavior
of EditText objects, which can have embedded HTML like
`<font face="MyFontName">` which performs a font lookup by name.
This fixes Fancy Pants World 4 Part 3, which contains two
DefineFont3 tags with the name FancyFont. The second font is
missing many glyphs, so using it causes us to be unable to
render the squiggle and life count text.
2023-03-31 22:47:00 -07:00
Nathan Adams
fcaf462423
core: Fix set_pixels_from_byte_array respecting the bytearray position + tests
2023-03-31 21:32:15 -07:00
Mike Welsh
6fda813f0c
tests: Add test for localToGlobal with zero scale object
2023-03-31 16:26:11 -07:00
Mike Welsh
c7387eace4
tests: Add tests for hitTesting zero scale graphics
2023-03-31 16:26:11 -07:00
Nathan Adams
94e5aa8f34
core: Fix calculating dirty area of BitmapData.draw() with rotation
2023-03-31 16:57:52 +02:00
Nathan Adams
f0ebefd624
tests: Add bitmapdata recursive draw test
2023-03-31 16:57:52 +02:00
Nathan Adams
78f9bb13d6
render: Fix PixelRegion::for_region_i32 for negative coordinates
2023-03-31 16:57:52 +02:00
Nathan Adams
e614265c17
core: Move fill_rect from BitmapData to bitmap_data_operations, fixed a bug when using non-standard values, and added better tests for fill_rect showing the bug
2023-03-31 16:57:52 +02:00
Toad06
fea8e8c90a
tests: `MovieClip.setMask` in avm1
2023-03-31 02:39:39 -07:00
Tom Schuster
ce4ddee792
avm2: Shim flash.xml.XMLNode using XML
2023-03-31 00:11:52 -07:00
onkrot
5632ade09c
avm2: Hookup `DisplayObject.opaqueBackground`
2023-03-29 23:11:01 -07:00
Tom Schuster
d16a8726c9
tests: Add test for XML.childIndex
2023-03-29 14:40:29 -05:00
Tom Schuster
bbf4363395
tests: Add test for XML.copy
2023-03-29 11:04:32 -05:00
Nathan Adams
42e23ce100
tests: Add tests for LoaderInfo properties that error
2023-03-28 11:57:00 +02:00
Adrian Wielgosik
4e84632609
avm2: Fix edge cases in RegExp constructor
2023-03-27 19:09:09 -05:00
Mike Welsh
87dad709b8
tests: Add test for `SharedObject.clear`
2023-03-26 22:22:27 -05:00