fixed IE tests

This commit is contained in:
Misko Hevery
2010-07-08 15:55:00 -07:00
parent ee82dae318
commit 00bb790392
3 changed files with 4 additions and 4 deletions

View File

@@ -36,6 +36,7 @@ task :compile_scenario do
lib/jquery/jquery-1.4.2.js \
src/scenario/angular.prefix \
src/Angular.js \
src/jqLite.js \
src/JSON.js \
src/Scope.js \
src/Parser.js \

View File

@@ -35,9 +35,8 @@ angular.scenario.dsl.input = function(selector) {
value + "'", function(done){
var input = this.testDocument.
find(':radio[name$=@' + selector + '][value=' + value + ']');
var event = this.testWindow.document.createEvent('MouseEvent');
event.initMouseEvent('click', true, true, this.testWindow, 0,0,0,0,0, false, false, false, false, 0, null);
input[0].dispatchEvent(event);
jqLiteWrap(input[0]).trigger('click');
input[0].checked = true;
done();
});
}

View File

@@ -163,7 +163,7 @@ describe('Runner', function(){
expect(log).toEqual('first;second;');
next();
expect(log).toEqual('first;second;done;');
expect(spec).not.toEqual(window);
expect(spec === window).toEqual(false);
expect(spec).toEqual(firstThis);
expect(spec).toEqual(secondThis);
expect(spec).toEqual(doneThis);