textarea_test.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!DOCTYPE html>
  2. <html>
  3. <!--
  4. Copyright 2010 The Closure Library Authors. All Rights Reserved.
  5. Use of this source code is governed by the Apache License, Version 2.0.
  6. See the COPYING file for details.
  7. -->
  8. <head>
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  10. <meta charset="UTF-8" />
  11. <title>
  12. Closure Unit Tests - goog.ui.Textarea
  13. </title>
  14. <script src="../base.js">
  15. </script>
  16. <script>
  17. goog.require('goog.ui.TextareaTest');
  18. </script>
  19. <style>
  20. textarea {
  21. /* Some of the height tests are based on font size px values. */
  22. font-size: 1em;
  23. height: 25px; /* Need to force an initial height < our minHeight. */
  24. width: 150px;
  25. padding: 2px;
  26. margin: 0;
  27. border: 1px solid #000;
  28. }
  29. .drop-shadowed {
  30. filter:progid:DXImageTransform.Microsoft.DropShadow(color='#e7e7e7',
  31. offX='5',offY='5');
  32. box-shadow: 5px 5px 0 #e7e7e7;
  33. -moz-box-shadow: 5px 5px 0 #e7e7e7;
  34. -webkit-box-shadow: 5px 5px 0 #e7e7e7;
  35. }
  36. </style>
  37. </head>
  38. <body>
  39. <h1>goog.ui.Textarea tests</h1>
  40. <p>Here's a textarea defined in markup:</p>
  41. <textarea id="demo-textarea">Foo</textarea>
  42. <div id="sandbox"></div>
  43. </body>
  44. </html>