aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisko Hevery2010-07-08 15:55:00 -0700
committerMisko Hevery2010-07-08 15:55:00 -0700
commit00bb79039251ca6e4622df677fe4894552774bd5 (patch)
tree2e4f74484bc3f0f2230be5f3c7d2edf8cb4d2ebb
parentee82dae3186b7a4fc4d339fc97d5792b2b5e2648 (diff)
downloadangular.js-00bb79039251ca6e4622df677fe4894552774bd5.tar.bz2
fixed IE tests
-rw-r--r--Rakefile1
-rw-r--r--src/scenario/DSL.js5
-rw-r--r--test/scenario/RunnerSpec.js2
3 files changed, 4 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index c8de5b78..4eb22ade 100644
--- a/Rakefile
+++ b/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 \
diff --git a/src/scenario/DSL.js b/src/scenario/DSL.js
index 194a28d6..b713cfd6 100644
--- a/src/scenario/DSL.js
+++ b/src/scenario/DSL.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();
});
}
diff --git a/test/scenario/RunnerSpec.js b/test/scenario/RunnerSpec.js
index 884e897a..bbdd9e8c 100644
--- a/test/scenario/RunnerSpec.js
+++ b/test/scenario/RunnerSpec.js
@@ -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);