Fix tests

This commit is contained in:
John Firebaugh
2013-06-18 12:21:56 -07:00
parent ddd9e4e8cc
commit 93ee3222db
+2 -2
View File
@@ -65,7 +65,7 @@ describe("iD.behavior.Hover", function() {
container.append('span').attr('class', 'hover');
container.call(iD.behavior.Hover(context).altDisables(true));
happen.keydown(document, {keyCode: 18});
happen.keydown(window, {keyCode: 18});
expect(container.selectAll('.hover')[0]).to.have.length(0);
expect(container.selectAll('.hover-suppressed')[0]).to.have.length(1);
@@ -77,7 +77,7 @@ describe("iD.behavior.Hover", function() {
container.append('span').attr('class', 'hover-suppressed');
container.call(iD.behavior.Hover(context).altDisables(true));
happen.keyup(document, {keyCode: 18});
happen.keyup(window, {keyCode: 18});
expect(container.selectAll('.hover')[0]).to.have.length(1);
expect(container.selectAll('.hover-suppressed')[0]).to.have.length(0);