Skip to content

Commit

Permalink
edit append input in one test
Browse files Browse the repository at this point in the history
  • Loading branch information
cherifGsoul committed Oct 22, 2018
1 parent efe19b4 commit 5fdd173
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions can-dom-events-test.js
Expand Up @@ -72,15 +72,13 @@ unit.test('domEvents.dispatch works', function (assert) {
var input = document.createElement('input');
var eventType = 'click';
var qf = document.querySelector('#qunit-fixture');
qf.appendChild(input);
var handler = function () {
assert.ok(true, 'event handler should be called');
};

input.addEventListener(eventType, handler);

if (typeof Event !== "function") {
qf.appendChild(input);
}

domEvents.dispatch(input, eventType);

Expand Down

0 comments on commit 5fdd173

Please sign in to comment.