mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
Fix couple of failing e2e tests
The reason was recent change in docs url
This commit is contained in:
parent
88ae927857
commit
517ada2662
2 changed files with 7 additions and 7 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* @name angular.widget
|
||||
* @description
|
||||
*
|
||||
* Widgets are custom DOM elements. An angular widget can be either a custom
|
||||
* Widgets are custom DOM elements. An angular widget can be either a custom
|
||||
* attribute that modifies an existing DOM elements or an entirely new DOM element.
|
||||
*
|
||||
* Following is the list of built-in angular widgets:
|
||||
|
|
@ -642,8 +642,8 @@ angularWidget('option', function(){
|
|||
<doc:example>
|
||||
<doc:source>
|
||||
<select name="url">
|
||||
<option value="angular.filter.date.html">date filter</option>
|
||||
<option value="angular.filter.html.html">html filter</option>
|
||||
<option value="api/angular.filter.date.html">date filter</option>
|
||||
<option value="api/angular.filter.html.html">html filter</option>
|
||||
<option value="">(blank)</option>
|
||||
</select>
|
||||
<tt>url = <a href="{{url}}">{{url}}</a></tt>
|
||||
|
|
@ -655,7 +655,7 @@ angularWidget('option', function(){
|
|||
expect(element('.doc-example-live ng\\:include').text()).toMatch(/angular\.filter\.date/);
|
||||
});
|
||||
it('should change to html filter', function(){
|
||||
select('url').option('angular.filter.html.html');
|
||||
select('url').option('api/angular.filter.html.html');
|
||||
expect(element('.doc-example-live ng\\:include').text()).toMatch(/angular\.filter\.html/);
|
||||
});
|
||||
it('should change to blank', function(){
|
||||
|
|
|
|||
Loading…
Reference in a new issue