Add & fix SVG Graphics Context unit tests (PR #26504)

46 views
Skip to first unread message

Blake-Madden

unread,
May 23, 2026, 9:56:03 PMMay 23
to wx-...@googlegroups.com, Subscribed

Basically, a total overhaul of the wxSVGFileDC unit tests. I was getting failing tests with test_drawing and the image test case would only work on Windows. I did a rewrite from CppUnit to Catch2 and removed the external file dependencies. I also removed the "plugin" test interface in here. It seems to have never been used and is orphaned in numerous places. I removed it from here; let me know if you want me to remove the remaining traces of this.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26504

Commit Summary

  • 9eff7ff Overhaul SVG unit tests
  • 14e502d Fix missing shape-rendering attribute in SVG graphics groups

File Changes

(5 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26504@github.com>

Blake-Madden

unread,
May 24, 2026, 6:51:34 AMMay 24
to wx-...@googlegroups.com, Push

@Blake-Madden pushed 1 commit.


View it on GitHub or unsubscribe.


Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26504/before/14e502dfb27cfd42cae7536416eafdc10e83faf1/after/a41df2c16a3dc6e8b8a41f5170bfcce8da95f813@github.com>

Blake-Madden

unread,
May 24, 2026, 7:02:03 AMMay 24
to wx-...@googlegroups.com, Subscribed

Closed #26504.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26504/issue_event/25897431213@github.com>

VZ

unread,
May 25, 2026, 8:27:27 AM (14 days ago) May 25
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26504)

Just checking: was this closed intentionally?


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26504/c4534241779@github.com>

Blake-Madden

unread,
May 25, 2026, 8:31:41 AM (14 days ago) May 25
to wx-...@googlegroups.com, Subscribed
Blake-Madden left a comment (wxWidgets/wxWidgets#26504)

Yes, I was getting a bunch of warnings as errors from CppUnit in other files in some of the build configurations here. No idea why though, was coming from files I hadn't touched. Catch2'ifying the test_drawing target broke something somehow, so I'll either have to rethink this (or finish removing CppUnit from everyone else first).


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26504/c4534269175@github.com>

VZ

unread,
May 25, 2026, 8:38:28 AM (14 days ago) May 25
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26504)

Looking at the first failing build, the errors are due to wxBrush being incomplete, almost certainly due to the fact that wx/brush.h was indirectly included before but needs to be explicitly included now.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26504/c4534309758@github.com>

Blake-Madden

unread,
May 25, 2026, 9:15:33 AM (14 days ago) May 25
to wx-...@googlegroups.com, Subscribed

Reopened #26504.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26504/issue_event/25927459072@github.com>

Blake-Madden

unread,
May 25, 2026, 9:20:22 AM (14 days ago) May 25
to wx-...@googlegroups.com, Push

@Blake-Madden pushed 2 commits.


View it on GitHub or unsubscribe.


Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26504/before/a41df2c16a3dc6e8b8a41f5170bfcce8da95f813/after/b74750b33310a7e75d894a964d074ed1038c1590@github.com>

Blake-Madden

unread,
May 25, 2026, 9:56:26 AM (14 days ago) May 25
to wx-...@googlegroups.com, Push

@Blake-Madden pushed 1 commit.

  • e5f5a40 Add another missing include


View it on GitHub or unsubscribe.


Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26504/before/b74750b33310a7e75d894a964d074ed1038c1590/after/e5f5a40986ec30a890cc2cc00f8a1ac183fc9608@github.com>

Blake-Madden

unread,
May 25, 2026, 10:04:54 AM (14 days ago) May 25
to wx-...@googlegroups.com, Push

@Blake-Madden pushed 1 commit.

  • 45b5420 Delete orphaned plugin unit testing feature


View it on GitHub or unsubscribe.


Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26504/before/e5f5a40986ec30a890cc2cc00f8a1ac183fc9608/after/45b5420b521d4d18cef415b0f8956363a296ed2c@github.com>

VZ

unread,
May 26, 2026, 5:47:41 PM (12 days ago) May 26
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26504)

I'm not sure about the "plugin" tests but I'd definitely prefer to remove it one independent commit before making the SVG-related changes. Could you do it like this please?


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26504/c4549252744@github.com>

Blake-Madden

unread,
Jun 7, 2026, 11:23:52 AM (18 hours ago) Jun 7
to wx-...@googlegroups.com, Subscribed
Blake-Madden left a comment (wxWidgets/wxWidgets#26504)

I'm not sure about the "plugin" tests but I'd definitely prefer to remove it one independent commit before making the SVG-related changes. Could you do it like this please?

See #26568


Reply to this email directly, view it on GitHub, or unsubscribe.

Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26504/c4643089363@github.com>

Reply all
Reply to author
Forward
0 new messages