alexvollmer/tuneup_js — pull request #10 by eoghain (2011-12-30 19:22:29+00:00)
Title: Make assertWindow() use new assertElementTree() so that we can do per element assertions

assertWindow() is too high level since it forces you to always assert from the top down, sometimes you just need to assert from a single element down, so I moved the basic logic into assertElementTree() and added a helper assertWindow() function that continues to perform as expected.

This is just a minor re-factoring that will allow for per element assertions so that you don't always have to walk the entire window if you just want to verify some sub-section of it.