Test can't be easily added to wine because we don't have pages to test certificate errors on.
That should be addressed, no? E.g. with a page hosted at winehq.org with a self-signed certificate? That'd at least allow us to check the expected error when the root of a certificate chain is untrusted. --Juan