Eurban, spraying WD-40 on to a leak used to cause the idle speed to increase because it is a flammable liquid, and effectively caused the mixture to go rich momentarily. Since they changed the propellant from LPG to CO2 though, it doesn't seem to work as well as it used to, either for leak testing or lubricating
I personally tend to use carb cleaner or brake cleaner, whichever I happen to have to hand, both of them do the trick nicely