How do you test for waterproof on consumer electronic products (smart phone, tablet, etc)?

How do you test for waterproof on consumer electronic products (smart phone, tablet, etc)? What kind of tests can you perform to show that the product meets waterproof requirements.