From 6f22d5ade48f0d97990cbe69d956da122f2f8358 Mon Sep 17 00:00:00 2001 From: Julie Ralph Date: Wed, 20 Apr 2016 18:35:06 -0700 Subject: [PATCH] fix(bootstrap): fix bootstrap for older versions of angular Trying to use the debug label for window.name fails for versions of angular older than 1.2.24. See #3115 --- lib/protractor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/protractor.js b/lib/protractor.js index 9a08dae00..543204624 100644 --- a/lib/protractor.js +++ b/lib/protractor.js @@ -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,'; var DEFAULT_GET_PAGE_TIMEOUT = 10000; @@ -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'))