diff options
| author | Igor Minar | 2011-09-15 05:36:00 +0200 |
|---|---|---|
| committer | Igor Minar | 2011-09-16 02:44:33 +0200 |
| commit | 7ae536d0532b7ad7859f9cf7e47b406f63383f29 (patch) | |
| tree | ef2f6721945e1c72d508c97b6775244a5a38a5bc /test/markupSpec.js | |
| parent | 2170c06924b3a0dc1fef3b383d6a236e670dceea (diff) | |
| download | angular.js-7ae536d0532b7ad7859f9cf7e47b406f63383f29.tar.bz2 | |
fix(specs): various fixes to get IE8+jquery unit tests green
Diffstat (limited to 'test/markupSpec.js')
| -rw-r--r-- | test/markupSpec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/markupSpec.js b/test/markupSpec.js index 6874cdcd..2704e0dc 100644 --- a/test/markupSpec.js +++ b/test/markupSpec.js @@ -63,6 +63,11 @@ describe("markups", function(){ }); }); + afterEach(function() { + if (element) element.remove(); + }); + + it('should populate value attribute on OPTION', function(){ compile('<select name="x"><option>abc</option></select>'); expect(element).toHaveValue('abc'); @@ -114,6 +119,7 @@ describe("markups", function(){ it('should bind selected', function() { compile('<select><option value=""></option><option ng:selected="{{isSelected}}">Greetings!</option></select>'); + jqLite(document.body).append(element) scope.isSelected=false; scope.$digest(); expect(element.children()[1].selected).toBeFalsy(); |
