mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-14 09:43:12 +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>
|
<doc:source>
|
||||||
<div ng:init="$location = $service('$location')">
|
<div ng:init="$location = $service('$location')">
|
||||||
<a id="ex-test" href="#myPath?name=misko">test hash</a>|
|
<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">
|
<input type='text' name="$location.hash" size="30">
|
||||||
<pre>$location = {{$location}}</pre>
|
<pre>$location = {{$location}}</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -40,7 +40,7 @@ var URL_MATCH = /^(file|ftp|http|https):\/\/(\w+:{0,1}\w*@)?([\w\.-]*)(:([0-9]+)
|
||||||
<doc:scenario>
|
<doc:scenario>
|
||||||
it('should initialize the input field', function() {
|
it('should initialize the input field', function() {
|
||||||
expect(using('.doc-example-live').element('input[name=$location.hash]').val()).
|
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').input('$location.hash').enter('foo');
|
||||||
using('.doc-example-live').element('#ex-reset').click();
|
using('.doc-example-live').element('#ex-reset').click();
|
||||||
expect(using('.doc-example-live').element('input[name=$location.hash]').val()).
|
expect(using('.doc-example-live').element('input[name=$location.hash]').val()).
|
||||||
toBe('!angular.service.$location');
|
toBe('!/api/angular.service.$location');
|
||||||
});
|
});
|
||||||
|
|
||||||
</doc:scenario>
|
</doc:scenario>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
* @name angular.widget
|
* @name angular.widget
|
||||||
* @description
|
* @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.
|
* attribute that modifies an existing DOM elements or an entirely new DOM element.
|
||||||
*
|
*
|
||||||
* Following is the list of built-in angular widgets:
|
* Following is the list of built-in angular widgets:
|
||||||
|
|
@ -642,8 +642,8 @@ angularWidget('option', function(){
|
||||||
<doc:example>
|
<doc:example>
|
||||||
<doc:source>
|
<doc:source>
|
||||||
<select name="url">
|
<select name="url">
|
||||||
<option value="angular.filter.date.html">date filter</option>
|
<option value="api/angular.filter.date.html">date filter</option>
|
||||||
<option value="angular.filter.html.html">html filter</option>
|
<option value="api/angular.filter.html.html">html filter</option>
|
||||||
<option value="">(blank)</option>
|
<option value="">(blank)</option>
|
||||||
</select>
|
</select>
|
||||||
<tt>url = <a href="{{url}}">{{url}}</a></tt>
|
<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/);
|
expect(element('.doc-example-live ng\\:include').text()).toMatch(/angular\.filter\.date/);
|
||||||
});
|
});
|
||||||
it('should change to html filter', function(){
|
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/);
|
expect(element('.doc-example-live ng\\:include').text()).toMatch(/angular\.filter\.html/);
|
||||||
});
|
});
|
||||||
it('should change to blank', function(){
|
it('should change to blank', function(){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue