Battery life is an estimate based on what you're doing right now.
Watching videos online that require flash, doing video editing, playing games, etc. will use more power. Also screen brightness levels can have a large effect.
It's unrealistic to expect 7 hours while watching videos or anything more then just may using MS Office.
Those estimates are top of the charts, kind of like MPG rating on a car. Possible, but unlikely as it requires you to the run the machine very slow and conservatively.
Here's what Apple says about their battery life tests:
Wireless web testing conducted by Apple in January 2013 using preproduction 2.7GHz quad-core Intel Core i7-based 15-inch MacBook Pro systems and preproduction 2.6GHz dual‑core Intel Core i5‑based 13-inch MacBook Pro systems. The wireless web test measures battery life by wirelessly browsing 25 popular websites with display brightness set to 50%