Skip to content

Commit 517ada2

Browse files
vojtajinaIgorMinar
authored andcommitted
Fix couple of failing e2e tests
The reason was recent change in docs url
1 parent 88ae927 commit 517ada2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/service/location.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ var URL_MATCH = /^(file|ftp|http|https):\/\/(\w+:{0,1}\w*@)?([\w\.-]*)(:([0-9]+)
3232
<doc:source>
3333
<div ng:init="$location = $service('$location')">
3434
<a id="ex-test" href="#myPath?name=misko">test hash</a>|
35-
<a id="ex-reset" href="#!angular.service.$location">reset hash</a><br/>
35+
<a id="ex-reset" href="#!/api/angular.service.$location">reset hash</a><br/>
3636
<input type='text' name="$location.hash" size="30">
3737
<pre>$location = {{$location}}</pre>
3838
</div>
3939
</doc:source>
4040
<doc:scenario>
4141
it('should initialize the input field', function() {
4242
expect(using('.doc-example-live').element('input[name=$location.hash]').val()).
43-
toBe('!angular.service.$location');
43+
toBe('!/api/angular.service.$location');
4444
});
4545
4646
@@ -60,7 +60,7 @@ var URL_MATCH = /^(file|ftp|http|https):\/\/(\w+:{0,1}\w*@)?([\w\.-]*)(:([0-9]+)
6060
using('.doc-example-live').input('$location.hash').enter('foo');
6161
using('.doc-example-live').element('#ex-reset').click();
6262
expect(using('.doc-example-live').element('input[name=$location.hash]').val()).
63-
toBe('!angular.service.$location');
63+
toBe('!/api/angular.service.$location');
6464
});
6565
6666
</doc:scenario>

src/widgets.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @name angular.widget
55
* @description
66
*
7-
* Widgets are custom DOM elements. An angular widget can be either a custom
7+
* Widgets are custom DOM elements. An angular widget can be either a custom
88
* attribute that modifies an existing DOM elements or an entirely new DOM element.
99
*
1010
* Following is the list of built-in angular widgets:
@@ -642,8 +642,8 @@ angularWidget('option', function(){
642642
<doc:example>
643643
<doc:source>
644644
<select name="url">
645-
<option value="angular.filter.date.html">date filter</option>
646-
<option value="angular.filter.html.html">html filter</option>
645+
<option value="api/angular.filter.date.html">date filter</option>
646+
<option value="api/angular.filter.html.html">html filter</option>
647647
<option value="">(blank)</option>
648648
</select>
649649
<tt>url = <a href="{{url}}">{{url}}</a></tt>
@@ -655,7 +655,7 @@ angularWidget('option', function(){
655655
expect(element('.doc-example-live ng\\:include').text()).toMatch(/angular\.filter\.date/);
656656
});
657657
it('should change to html filter', function(){
658-
select('url').option('angular.filter.html.html');
658+
select('url').option('api/angular.filter.html.html');
659659
expect(element('.doc-example-live ng\\:include').text()).toMatch(/angular\.filter\.html/);
660660
});
661661
it('should change to blank', function(){

0 commit comments

Comments
 (0)