mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-19 00:06:30 +08:00
fix(scenarioRunner): navigateTo should use prop('contentWindow')
... instead of attr('contentWindow')
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user