mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
Send keydown events when testing uiCombobox
This commit is contained in:
@@ -15,6 +15,8 @@ describe('uiCombobox', function() {
|
||||
var start = input.property('selectionStart');
|
||||
var finis = input.property('selectionEnd');
|
||||
|
||||
happen.keydown(input.node(), {keyCode: keyCode});
|
||||
|
||||
switch (key) {
|
||||
case '⇥':
|
||||
break;
|
||||
@@ -86,7 +88,7 @@ describe('uiCombobox', function() {
|
||||
input.call(combobox.data(data));
|
||||
focusTypeahead(input);
|
||||
simulateKeypress('↓');
|
||||
expect(d3.select('.ideditor > div.combobox').nodes().length).to.equal(1);
|
||||
expect(d3.selectAll('.ideditor > div.combobox').size()).to.equal(1);
|
||||
});
|
||||
|
||||
it('filters entries to those matching the value', function() {
|
||||
|
||||
Reference in New Issue
Block a user