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 \ lib/jquery/jquery-1.4.2.js \
src/scenario/angular.prefix \ src/scenario/angular.prefix \
src/Angular.js \ src/Angular.js \
src/jqLite.js \
src/JSON.js \ src/JSON.js \
src/Scope.js \ src/Scope.js \
src/Parser.js \ src/Parser.js \

View File

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

View File

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