From 517ada2662019aae99af4bffb0e7fc673bbe9ebd Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Tue, 7 Jun 2011 22:53:05 +0200 Subject: Fix couple of failing e2e tests The reason was recent change in docs url --- src/service/location.js | 6 +++--- src/widgets.js | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') 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]+)
test hash| - reset hash
+ reset hash
$location = {{$location}}
@@ -40,7 +40,7 @@ var URL_MATCH = /^(file|ftp|http|https):\/\/(\w+:{0,1}\w*@)?([\w\.-]*)(:([0-9]+) 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'); }); 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(){ url = {{url}} @@ -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(){ -- cgit v1.2.3