selectionmenubutton_test.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!DOCTYPE html>
  2. <html>
  3. <!--
  4. Copyright 2009 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. <!--
  9. @author zhyder@google.com (Zohair Hyder)
  10. -->
  11. <head>
  12. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  13. <meta charset="UTF-8" />
  14. <title>
  15. Closure Unit Tests - goog.ui.SelectionMenuButton
  16. </title>
  17. <style type="text/css">
  18. .goog-menu {
  19. position: absolute;
  20. color: #aaa;
  21. }
  22. </style>
  23. <script src="../base.js">
  24. </script>
  25. <script>
  26. goog.require('goog.ui.SelectionMenuButtonTest');
  27. </script>
  28. </head>
  29. <body>
  30. <p>
  31. Here's a selectionmenu defined in markup:
  32. </p>
  33. <div id="demoSelectionMenuButton" class="goog-selectionmenubutton-button">
  34. <input id="demoCheckbox" class="goog-selectionmenubutton-checkbox" type="checkbox" />
  35. <div id="demoMenu" class="goog-menu">
  36. <div id="menuItem1" class="goog-menuitem">
  37. All
  38. </div>
  39. <div id="menuItem2" class="goog-menuitem">
  40. None
  41. </div>
  42. <div id="menuItem3" class="goog-menuitem">
  43. Read
  44. </div>
  45. <div id="menuItem4" class="goog-menuitem">
  46. Unread
  47. </div>
  48. </div>
  49. </div>
  50. <div id="footer">
  51. </div>
  52. </body>
  53. </html>