aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVojta Jina2011-06-07 22:53:05 +0200
committerIgor Minar2011-06-07 14:56:56 -0700
commit517ada2662019aae99af4bffb0e7fc673bbe9ebd (patch)
treea46105eb940329c2fc7eb3a0892782931dde01a5
parent88ae9278574f2253742f443403da9cace494b997 (diff)
downloadangular.js-517ada2662019aae99af4bffb0e7fc673bbe9ebd.tar.bz2
Fix couple of failing e2e tests
The reason was recent change in docs url
-rw-r--r--src/service/location.js6
-rw-r--r--src/widgets.js8
2 files changed, 7 insertions, 7 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>
diff --git a/src/widgets.js b/src/widgets.js
index 2ccf4a1f..cc6d48b9 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -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(){