fix e2e runner's navigateTo when url contains # fragment

This commit is contained in:
Igor Minar 2011-04-11 10:20:42 -07:00
parent 3d388498e5
commit ce0fbc6a77

View file

@ -50,7 +50,7 @@ angular.scenario.Application.prototype.getWindow_ = function() {
angular.scenario.Application.prototype.checkUrlStatus_ = function(url, callback) {
var self = this;
_jQuery.ajax({
url: url,
url: url.replace(/#.*/, ''), //IE encodes and sends the url fragment, so we must strip it
type: 'HEAD',
complete: function(request) {
if (request.status < 200 || request.status >= 300) {