mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-12 22:45:52 +08:00
fixed IE tests
This commit is contained in:
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);
|
||||
|
||||
Reference in New Issue
Block a user