Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Unified Diff: ui/file_manager/file_manager/foreground/js/tooltip_controller_unittest.html

Issue 1223693002: Add tooltips to the header buttons in Files app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/file_manager/file_manager/foreground/js/tooltip_controller_unittest.html
diff --git a/ui/file_manager/file_manager/foreground/js/tooltip_controller_unittest.html b/ui/file_manager/file_manager/foreground/js/tooltip_controller_unittest.html
new file mode 100644
index 0000000000000000000000000000000000000000..bb2e208039a87386fab933f19c65f220b40ab5ba
--- /dev/null
+++ b/ui/file_manager/file_manager/foreground/js/tooltip_controller_unittest.html
@@ -0,0 +1,44 @@
+<!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.
+ -->
+
+<style type="text/css">
+ button {
+ display: flex;
+ height: 32px;
+ margin: 30px;
+ width: 32px;
+ }
+
+ #container {
+ display: flex;
+ justify-content: space-between;
+ }
+
+ #tooltip {
+ background: yellow;
+ 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>
+
+<div id="tooltip">
+ <div id="tooltip-label"></div>
+</div>
+
+<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="tooltip_controller.js"></script>
+<script src="tooltip_controller_unittest.js"></script>

Powered by Google App Engine
This is Rietveld 408576698