mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-29 13:25:40 +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 \
|
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 \
|
||||||
|
|||||||
@@ -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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user