diff options
| author | Di Peng | 2011-08-05 15:01:58 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-08-06 01:54:05 -0700 |
| commit | 142cffcf64d2dce93089e9a73257bddf50e96990 (patch) | |
| tree | 293b5191be9a5b2eb8d7eb8f335c180fe4a2735a /test/widgetsSpec.js | |
| parent | 862d78c1d96a22ae215ec272e6f0d07b374421bf (diff) | |
| download | angular.js-142cffcf64d2dce93089e9a73257bddf50e96990.tar.bz2 | |
refactor(widgets): remove input[button, submit, reset, image] and button windgets
These widgets are useless and only trigger extra $updateViews.
The only reason we had them was to support ng:change on these widgets,
but since there are no bindings present in these cases it doesn't make
sense to support ng:change here. It's likely just a leftover from
getangular.com
Breaking change: ng:change for input[button], input[submit], input[reset], input[image]
and button widgets is not supported any more
Diffstat (limited to 'test/widgetsSpec.js')
| -rw-r--r-- | test/widgetsSpec.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js index 978392ec..0ca42110 100644 --- a/test/widgetsSpec.js +++ b/test/widgetsSpec.js @@ -295,18 +295,6 @@ describe("widget", function(){ expect(scope.name).toEqual('Kai'); }); - it('should call ng:change on button click', function(){ - compile('<input type="button" value="Click Me" ng:change="clicked = true"/>'); - browserTrigger(element); - expect(scope.clicked).toEqual(true); - }); - - it('should support button alias', function(){ - compile('<button ng:change="clicked = true">Click {{"Me"}}.</button>'); - browserTrigger(element); - expect(scope.clicked).toEqual(true); - expect(scope.$element.text()).toEqual("Click Me."); - }); describe('radio', function(){ |
