mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fixed IE tests
This commit is contained in:
parent
ee82dae318
commit
00bb790392
3 changed files with 4 additions and 4 deletions
1
Rakefile
1
Rakefile
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue