From b2b170099f957e6575e309c35fed42915e95dd47 Mon Sep 17 00:00:00 2001
From: Misko Hevery
Date: Fri, 23 Jul 2010 13:54:12 -0700
Subject: fix issues with ie 7
---
test/BinderTest.js | 4 ++++
test/testabilityPatch.js | 3 +++
2 files changed, 7 insertions(+)
(limited to 'test')
diff --git a/test/BinderTest.js b/test/BinderTest.js
index b90d1789..f38383ae 100644
--- a/test/BinderTest.js
+++ b/test/BinderTest.js
@@ -407,6 +407,10 @@ BinderTest.prototype.testBindClass = function() {
BinderTest.prototype.testBindClassEvenOdd = function() {
var x = this.compile('
');
x.scope.$eval();
+ var d1 = jqLite(x.node[0].childNodes[1]);
+ var d2 = jqLite(x.node[0].childNodes[2]);
+ expect(d1.hasClass('o')).toBeTruthy();
+ expect(d2.hasClass('e')).toBeTruthy();
assertEquals(
'<#comment>#comment>' +
'
' +
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js
index b71943f6..5d0df780 100644
--- a/test/testabilityPatch.js
+++ b/test/testabilityPatch.js
@@ -63,6 +63,8 @@ function sortedHtml(element) {
html += '<' + node.nodeName.toLowerCase();
var attributes = node.attributes || [];
var attrs = [];
+ if (node.className)
+ attrs.push(' class="' + node.className + '"');
for(var i=0; i