Skip to content

Commit

Permalink
fix(bootstrap): fix bootstrap for older versions of angular
Browse files Browse the repository at this point in the history
Trying to use the debug label for window.name fails for versions
of angular older than 1.2.24. See angular#3115
  • Loading branch information
juliemr committed Apr 21, 2016
1 parent a618bfd commit 6f22d5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/protractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ var ExpectedConditions = require('./expectedConditions').ExpectedConditions;
/* global angular */

var DEFER_LABEL = 'NG_DEFER_BOOTSTRAP!';
var ENABLE_DEBUG_INFO_LABEL = 'NG_ENABLE_DEBUG_INFO!';
var DEFAULT_RESET_URL = 'data:text/html,<html></html>';
var DEFAULT_GET_PAGE_TIMEOUT = 10000;

Expand Down Expand Up @@ -640,7 +639,7 @@ Protractor.prototype.get = function(destination, opt_timeout) {

this.driver.get(this.resetUrl).then(null, deferred.reject);
this.executeScript_(
'window.name = "' + ENABLE_DEBUG_INFO_LABEL + DEFER_LABEL + '" + window.name;' +
'window.name = "' + DEFER_LABEL + '" + window.name;' +

'window.location.replace("' + destination + '");',
msg('reset url'))
Expand Down

0 comments on commit 6f22d5a

Please sign in to comment.