Are you using Safari as your test? Does anything else that accesses the Internet work, such as Mail, Mac App Store, iTunes Store (in iTunes), and Software Update?
Is this something that worked before, and is now not working? Or is this Mac new to your wireless network?