From 7ae536d0532b7ad7859f9cf7e47b406f63383f29 Mon Sep 17 00:00:00 2001
From: Igor Minar
Date: Thu, 15 Sep 2011 05:36:00 +0200
Subject: fix(specs): various fixes to get IE8+jquery unit tests green
---
test/markupSpec.js | 6 ++++++
1 file changed, 6 insertions(+)
(limited to 'test/markupSpec.js')
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('');
expect(element).toHaveValue('abc');
@@ -114,6 +119,7 @@ describe("markups", function(){
it('should bind selected', function() {
compile('');
+ jqLite(document.body).append(element)
scope.isSelected=false;
scope.$digest();
expect(element.children()[1].selected).toBeFalsy();
--
cgit v1.2.3