diff options
| author | Misko Hevery | 2010-04-07 10:35:54 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-04-07 10:35:54 -0700 |
| commit | 29309e0e5a5f5eafd0f948100417d63127d3332d (patch) | |
| tree | 72440f8dc5e504fcf148c516a51cc0b0717e5c29 | |
| parent | 82cb18db28ea7381e5168489207bfa23c059af0c (diff) | |
| download | angular.js-29309e0e5a5f5eafd0f948100417d63127d3332d.tar.bz2 | |
jstd failing test case for cory
| -rw-r--r-- | src/widgets.js | 2 | ||||
| -rw-r--r-- | test/widgetsSpec.js | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/widgets.js b/src/widgets.js index 3e9ba236..012f13e2 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -225,5 +225,7 @@ angularWidget('NG:SWITCH', function ngSwitch(element){ return on == when; }, route: function(on, when) { + this.name = 'misko'; + return true; } }); diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js index 93c7adda..88ca3f87 100644 --- a/test/widgetsSpec.js +++ b/test/widgetsSpec.js @@ -210,6 +210,7 @@ describe('ng:switch', function(){ var scope = compile('<ng:switch on="url" using="route"><div ng-switch-when="/Book/:name">{{name}}</div></ng:include>'); scope.url = '/Book/Moby'; scope.$init(); +// jstestdriver.console.log('text'); expect(scope.$element.text()).toEqual('Moby'); }); |
