The HTC One (M8) has an IPx3 certification. That means it offers no protection from dust, but does offer protection from water sprayed up to 60 degrees at 10l per minute, pressure of 80-100kN/m2 for up to 5 minutes. The Nokia Lumia 930, as far as we know, is not safe against splashes like the HTC One (M8) is.
While Samsung was hoping that neither rival could survive the challenge (which made it a great promotional idea on Sammy's part) both the HTC One (M8) and the Nokia Lumia 930 managed to live on past the drenching. See for yourself by watching the video below.
source: CellphoneS via WMPoweruser