angular/angular.js — pull request #10177 by gyx1000 (2014-11-22 17:11:07+00:00)
Title: fix($httpBackend): compare timeoutId with undefined in completeRequest

fix($httpBackend): compare timeoutId with undefined in completeRequest
httpBackend with ngMock browser.defer can never cancel the first deferredFn because the timeoutId returned by defer for the first fn is a zero value.
Compare timeoutId with undefined fix this issue. Replace fakeTimeout with defer mock to test this fix.