el.dispatchEvent(ev);
    assert.equal(el.stream.length, 2);
  });
});

suite('setScrollDirection', function() {
  test('mapping', function() {
    var el = document.createElement('x-imperative');
    var key = '__polymerGesturesTouchAction';
    el.setScrollDirection('none');
    assert.equal(el[key], 'none');
    el.setScrollDirection('all');
    assert.equal(el[key], 'auto');
    el.setScrollDirection('x');
    assert.equal(el[key], 'pan-x');
    el.setScrollDirection('y');
    assert.equal(el[key], 'pan