@@ -389,7 +389,7 @@ describe('$location', function() {
389
389
390
390
391
391
it ( 'should throw error when invalid server url given' , function ( ) {
392
- var locationUrl = new LocationHtml5Url ( 'http://server.org/base/abc' , 'http://server.org/base/' , '/base' ) ;
392
+ var locationUrl = new LocationHtml5Url ( 'http://server.org/base/abc' , 'http://server.org/base/' ) ;
393
393
394
394
expect ( function ( ) {
395
395
locationUrl . $$parse ( 'http://other.server.org/path#/path' ) ;
@@ -398,7 +398,7 @@ describe('$location', function() {
398
398
399
399
400
400
it ( 'should throw error when invalid base url given' , function ( ) {
401
- var locationUrl = new LocationHtml5Url ( 'http://server.org/base/abc' , 'http://server.org/base/' , '/base' ) ;
401
+ var locationUrl = new LocationHtml5Url ( 'http://server.org/base/abc' , 'http://server.org/base/' ) ;
402
402
403
403
expect ( function ( ) {
404
404
locationUrl . $$parse ( 'http://server.org/path#/path' ) ;
@@ -2453,9 +2453,9 @@ describe('$location', function() {
2453
2453
var locationUrl , locationUmlautUrl , locationIndexUrl ;
2454
2454
2455
2455
beforeEach ( function ( ) {
2456
- locationUrl = new LocationHtml5Url ( 'http://server/pre/' , 'http://server/pre/' , 'http://server/pre/path' ) ;
2457
- locationUmlautUrl = new LocationHtml5Url ( 'http://särver/pre/' , 'http://särver/pre/' , 'http://särver/pre/path' ) ;
2458
- locationIndexUrl = new LocationHtml5Url ( 'http://server/pre/index.html' , 'http://server/pre/' , 'http://server/pre/path' ) ;
2456
+ locationUrl = new LocationHtml5Url ( 'http://server/pre/' , 'http://server/pre/' ) ;
2457
+ locationUmlautUrl = new LocationHtml5Url ( 'http://särver/pre/' , 'http://särver/pre/' ) ;
2458
+ locationIndexUrl = new LocationHtml5Url ( 'http://server/pre/index.html' , 'http://server/pre/' ) ;
2459
2459
} ) ;
2460
2460
2461
2461
it ( 'should rewrite URL' , function ( ) {
0 commit comments