| <!DOCTYPE html> |
| <!-- |
| Copyright (c) 2014 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. |
| --> |
| <link rel="import" href="/ui/base/toolbar_button.html"> |
| <link rel="import" href="/ui/base/dom_helpers.html"> |
| <script> |
| 'use strict'; |
| |
| tr.b.unittest.testSuite(function() { |
| test('tallWithTextContent', function() { |
| var el = document.createElement('tr-ui-b-toolbar-button'); |
| el.style.width = '100px'; |
| el.style.height = '40px'; |
| |
| el.textContent = 'blahblah'; |
| |
| this.addHTMLOutput(el); |
| }); |
| |
| test('tallWithInnerSpan', function() { |
| var el = document.createElement('tr-ui-b-toolbar-button'); |
| el.style.width = '100px'; |
| el.style.height = '40px'; |
| |
| el.appendChild(tr.ui.b.createSpan({textContent: 'blahblah'})); |
| |
| this.addHTMLOutput(el); |
| }); |
| |
| test('puny', function() { |
| var el = document.createElement('tr-ui-b-toolbar-button'); |
| el.textContent = 'M'; |
| this.addHTMLOutput(el); |
| }); |
| }); |
| </script> |