1. Remove the sunroof switch.
2. Inspect for continuity between the sunroof switch terminals using an ohmmeter.


Sunroof switch removal/installationMazda 6 Service Manual: i-ACTIVSENSE (Some models)
i-ACTIVSENSE is a collective term covering a series of advanced safety and driver
support systems which make use of a Forward Sensing Camera (FSC) and radar sensors.
These systems consist of active safety and pre-crash safety systems.
These systems are designed to assist the driver in safer dri ...
Mazda 6 Service Manual: Front drain hose installation
Caution
If the front drain hose is pinched or bent anywhere, the water in the hose
may not discharge and enter the inside of the vehicle. During and after
installation of the trims and the headliner, always make sure there is no
interference with the front drain hose. Fix any problem if found ...