From 9462b556a31efbe1560c5086326c80a6e9e39f87 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Sat, 9 Apr 2011 00:16:40 -0700 Subject: fix build for IE9 all unit tests now pass under IE9 --- test/testabilityPatch.js | 3 +++ test/widgetsSpec.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index b5c2c3f4..0cc85a8c 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -194,6 +194,9 @@ function sortedHtml(element, showNgClass) { attrs.push(' class="' + className + '"'); } for(var i=0; i0 && attributes[i] == attributes[i-1]) + continue; //IE9 creates dupes. Ignore them! + var attr = attributes[i]; if(attr.name.match(/^ng:/) || attr.value && diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js index 4fb85c36..8d3e0456 100644 --- a/test/widgetsSpec.js +++ b/test/widgetsSpec.js @@ -668,7 +668,7 @@ describe("widget", function(){ compile('empty link'); - if (msie) { + if (msie < 9) { event = document.createEventObject(); expect(event.returnValue).not.toBeDefined(); -- cgit v1.2.3