Skip to content

Commit

Permalink
adjust fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
kvchari committed Dec 14, 2021
1 parent 4974a8b commit fdc57e7
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions test/fixtures/e2e/bento/base-carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,11 @@
<head>
<script src="https://cdn.ampproject.org/bento.js"></script>
<!-- These styles prevent Cumulative Layout Shift on the unupgraded custom element -->
<style>
bento-base-carousel {
display: block;
overflow: hidden;
position: relative;
}
</style>
<script
async
src="https://cdn.ampproject.org/v0/bento-base-carousel-1.0.js"
></script>
<link rel="stylesheet" href="https://cdn.ampproject.org/v0/bento-base-carousel-1.0.css">
<style>
bento-base-carousel,
bento-base-carousel > div {
Expand All @@ -30,7 +24,7 @@
}
</style>
</head>
<bento-base-carousel id="my-carousel" visible-count="3">
<bento-base-carousel id="my-carousel" visible-count="3" slide="3">
<div class="red-gradient">A</div>
<div class="blue-gradient">B</div>
<div class="green-gradient">C</div>
Expand All @@ -51,9 +45,6 @@
await customElements.whenDefined('bento-base-carousel');
const api = await carousel.getApi();

// programatically advance to next slide
api.next();

// set up button actions
document.querySelector('#prev-button').onclick = () => api.prev();
document.querySelector('#next-button').onclick = () => api.next();
Expand Down

0 comments on commit fdc57e7

Please sign in to comment.