fix(scenarioRunner): navigateTo should use prop('contentWindow')

... instead of attr('contentWindow')
This commit is contained in:
Igor Minar 2011-09-16 00:06:19 +02:00
parent 6883e8c7a0
commit 9acf45127e

View file

@ -33,7 +33,7 @@ angular.scenario.Application.prototype.getFrame_ = function() {
* @return {Object} the window of the frame
*/
angular.scenario.Application.prototype.getWindow_ = function() {
var contentWindow = this.getFrame_().attr('contentWindow');
var contentWindow = this.getFrame_().prop('contentWindow');
if (!contentWindow)
throw 'Frame window is not accessible.';
return contentWindow;