aboutsummaryrefslogtreecommitdiffstats
path: root/src/widgets.js
diff options
context:
space:
mode:
authorIgor Minar2011-03-03 09:52:35 -0800
committerIgor Minar2011-03-03 13:50:12 -0800
commit5bf7ff5a3e7498cb43f1e18a6da32633162ff787 (patch)
tree58f94aea30ac0523fac8601ad93d97bf4e528aad /src/widgets.js
parenta01aa7055c94ad510b580f45222a48a8b9b24105 (diff)
downloadangular.js-5bf7ff5a3e7498cb43f1e18a6da32633162ff787.tar.bz2
fixing broken e2e tests
Diffstat (limited to 'src/widgets.js')
-rw-r--r--src/widgets.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/widgets.js b/src/widgets.js
index fe808740..91b0fcf2 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -625,15 +625,15 @@ angularWidget('option', function(){
</doc:source>
<doc:scenario>
it('should load date filter', function(){
- expect(element('.doc-example ng\\:include').text()).toMatch(/angular\.filter\.date/);
+ expect(element('.doc-example-live ng\\:include').text()).toMatch(/angular\.filter\.date/);
});
it('should change to hmtl filter', function(){
select('url').option('angular.filter.html.html');
- expect(element('.doc-example 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(){
- select('url').option('(blank)');
- expect(element('.doc-example ng\\:include').text()).toEqual('');
+ select('url').option('');
+ expect(element('.doc-example-live ng\\:include').text()).toEqual('');
});
</doc:scenario>
</doc:example>
@@ -729,15 +729,15 @@ angularWidget('ng:include', function(element){
</doc:source>
<doc:scenario>
it('should start in settings', function(){
- expect(element('.doc-example ng\\:switch').text()).toEqual('Settings Div');
+ expect(element('.doc-example-live ng\\:switch').text()).toEqual('Settings Div');
});
it('should change to home', function(){
select('switch').option('home');
- expect(element('.doc-example ng\\:switch').text()).toEqual('Home Span');
+ expect(element('.doc-example-live ng\\:switch').text()).toEqual('Home Span');
});
it('should select deafault', function(){
select('switch').option('other');
- expect(element('.doc-example ng\\:switch').text()).toEqual('default');
+ expect(element('.doc-example-live ng\\:switch').text()).toEqual('default');
});
</doc:scenario>
</doc:example>