aboutsummaryrefslogtreecommitdiffstats
path: root/src/service
diff options
context:
space:
mode:
authorVojta Jina2011-06-07 22:53:05 +0200
committerIgor Minar2011-06-07 14:56:56 -0700
commit517ada2662019aae99af4bffb0e7fc673bbe9ebd (patch)
treea46105eb940329c2fc7eb3a0892782931dde01a5 /src/service
parent88ae9278574f2253742f443403da9cace494b997 (diff)
downloadangular.js-517ada2662019aae99af4bffb0e7fc673bbe9ebd.tar.bz2
Fix couple of failing e2e tests
The reason was recent change in docs url
Diffstat (limited to 'src/service')
-rw-r--r--src/service/location.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/service/location.js b/src/service/location.js
index f80cd697..0cfa2e83 100644
--- a/src/service/location.js
+++ b/src/service/location.js
@@ -32,7 +32,7 @@ var URL_MATCH = /^(file|ftp|http|https):\/\/(\w+:{0,1}\w*@)?([\w\.-]*)(:([0-9]+)
<doc:source>
<div ng:init="$location = $service('$location')">
<a id="ex-test" href="#myPath?name=misko">test hash</a>|
- <a id="ex-reset" href="#!angular.service.$location">reset hash</a><br/>
+ <a id="ex-reset" href="#!/api/angular.service.$location">reset hash</a><br/>
<input type='text' name="$location.hash" size="30">
<pre>$location = {{$location}}</pre>
</div>
@@ -40,7 +40,7 @@ var URL_MATCH = /^(file|ftp|http|https):\/\/(\w+:{0,1}\w*@)?([\w\.-]*)(:([0-9]+)
<doc:scenario>
it('should initialize the input field', function() {
expect(using('.doc-example-live').element('input[name=$location.hash]').val()).
- toBe('!angular.service.$location');
+ toBe('!/api/angular.service.$location');
});
@@ -60,7 +60,7 @@ var URL_MATCH = /^(file|ftp|http|https):\/\/(\w+:{0,1}\w*@)?([\w\.-]*)(:([0-9]+)
using('.doc-example-live').input('$location.hash').enter('foo');
using('.doc-example-live').element('#ex-reset').click();
expect(using('.doc-example-live').element('input[name=$location.hash]').val()).
- toBe('!angular.service.$location');
+ toBe('!/api/angular.service.$location');
});
</doc:scenario>