Skip to content

Commit

Permalink
test(e2e): add scroll listener
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Aug 12, 2020
1 parent fa2b400 commit 0b71cdd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/end-to-end/src/app-root/app-root.tsx
@@ -1,4 +1,4 @@
import { Component, State, h, Host } from '@stencil/core';
import { Component, State, h, Host, Listen } from '@stencil/core';
import _ from 'lodash';
import _es from 'lodash-es';
import videojs from 'video.js';
Expand All @@ -24,7 +24,12 @@ export class AppRoot {
}

componentDidLoad() {
videojs('video')
videojs('video');
}

@Listen('scroll', { target: 'window' })
scroll(ev: UIEvent) {
console.log(ev.type);
}

render() {
Expand Down

0 comments on commit 0b71cdd

Please sign in to comment.