angular/angular.js — pull request #3691 by ashaffer (2013-08-21 21:28:39+00:00)
Title: feat(matchers): add future-awareness to matcher parameters

Added the ability to pass futures as the argument to matchers. This allows you to do things like this:

expect(element('.bar').width()).toEqual(element('.nav').width())

I've found it to be extremely useful in my own tests. If you want this let me know and i'll add some unit tests for the functionality.