Fix AudioPlayer tests for Polymer2
Change <repeat-button> element to use click event instead of tap, because when binding to tap event Polymer2 wasn't triggering the click event. Change test util functions that issues events to have "composed: true" [1] when they have "bubbles: true", this allows events to propagate across shadow DOM boundary. Add trailing comma to repeat_button.js so auto-formatter leave those lines expanded. Update all functions that were updated in test_util_base.js to use const/let instead of var. [1] - https://developer.mozilla.org/en-US/docs/Web/API/Event/composed Bug: 875525 Change-Id: I5890f159ee54a5d6254b90621776cd82ef9bd7b5 Reviewed-on: https://chromium-review.googlesource.com/1237754 Commit-Queue: Luciano Pacheco <lucmult@chromium.org> Reviewed-by:Demetrios Papadopoulos <dpapad@chromium.org> Reviewed-by:
Trent Apted <tapted@chromium.org> Cr-Commit-Position: refs/heads/master@{#593466}
Showing
Please register or sign in to comment