@@ -824,21 +824,23 @@ angularWidget('select', function(element){
824824 <doc:example>
825825 <doc:source>
826826 <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>
829829 <option value="">(blank)</option>
830830 </select>
831- <tt> url = <a href="{{url}}">{{url}}</a></tt>
831+ url of the template: <tt> <a href="{{url}}">{{url}}</a></tt>
832832 <hr/>
833833 <ng:include src="url"></ng:include>
834834 </doc:source>
835835 <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');
838839 });
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');
842844 });
843845 it('should change to blank', function(){
844846 select('url').option('');
0 commit comments