@@ -824,21 +824,23 @@ angularWidget('select', function(element){
824
824
<doc:example>
825
825
<doc:source>
826
826
<select name="url">
827
- <option value="api/angular.filter.date. html">date filter </option>
828
- <option value="api/angular.filter. html.html"> html filter </option>
827
+ <option value="examples/ng-include/template1. html">template1.html </option>
828
+ <option value="examples/ng-include/template2. html">template2. html</option>
829
829
<option value="">(blank)</option>
830
830
</select>
831
- <tt> url = <a href="{{url}}">{{url}}</a></tt>
831
+ url of the template: <tt> <a href="{{url}}">{{url}}</a></tt>
832
832
<hr/>
833
833
<ng:include src="url"></ng:include>
834
834
</doc:source>
835
835
<doc:scenario>
836
- it('should load date filter', function(){
837
- expect(element('.doc-example-live ng\\:include').text()).toMatch(/angular\.filter\.date/);
836
+ it('should load template1.html', function(){
837
+ expect(element('.doc-example-live ng\\:include').text()).
838
+ toBe('Content of template1.html\n');
838
839
});
839
- it('should change to html filter', function(){
840
- select('url').option('api/angular.filter.html.html');
841
- expect(element('.doc-example-live ng\\:include').text()).toMatch(/angular\.filter\.html/);
840
+ it('should load template2.html', function(){
841
+ select('url').option('examples/ng-include/template2.html');
842
+ expect(element('.doc-example-live ng\\:include').text()).
843
+ toBe('Content of template2.html\n');
842
844
});
843
845
it('should change to blank', function(){
844
846
select('url').option('');
0 commit comments