mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Fix tests
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user