These are chat archives for bitovi/syn

12th
Jun 2017
Jeroen Cornelissen
@jeroencornelissen
Jun 12 2017 15:03

A few months ago I submitted this funcunit issue bitovi/funcunit#186
But I still can’t get my tests to work, mimic a shift click.

Currently trying this:

QUnit.test('Selection - shift', function(assert) {
    stop();

    $element.find('tbody .checkbox-button:first').trigger('click');
    syn.type($('body')[0], '[shift]')
        .click($(`smsc-listview#smscListView_${listViewId} tbody .checkbox-button:last`)[0], function() {
            console.log('here');
        })
        .type($('body')[0], '[shift-up]', function() {
            console.log('there');
            assert.equal(selection.length, items.length, 'All items selected');
            start();
        });
});

console.log doesn’t show up… and assertion isn’t done.