blob: 35eab5aada0487810de1cec0f1d5e4a1ffcfaf05 [file] [log] [blame]
<!DOCTYPE html>
<!-- Copyright 2015 The Chromium Authors. All rights reserved.
-- Use of this source code is governed by a BSD-style license that can be
-- found in the LICENSE file.
-->
<!-- Since resources under chrome://resources are not accessible from unittest,
-- we need to load them with relative paths. -->
<link rel="import" href="../../../../../third_party/polymer/v1_0/components-chromium/polymer/polymer.html">
<link rel="import" href="files_tooltip.html">
<style type="text/css">
button {
display: flex;
height: 32px;
margin: 30px;
width: 32px;
}
#container {
display: flex;
justify-content: space-between;
}
files-tooltip {
background: yellow;
box-sizing: border-box;
position: absolute;
text-align: center;
width: 100px;
}
</style>
<div id="container">
<button id="chocolate" aria-label="Chocolate!"></button>
<button id="cherries" aria-label="Cherries!"></button>
</div>
<!-- Button without a tooltip. -->
<button id="other"></button>
<files-tooltip></files-tooltip>
<script src="../../../../webui/resources/js/assert.js"></script>
<script src="../../../../webui/resources/js/util.js"></script>
<script src="../../common/js/unittest_util.js"></script>
<script src="files_tooltip_unittest.js"></script>