menuanchoredposition_test.html 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE HTML>
  2. <html>
  3. <!--
  4. Copyright 2011 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. Author: nicksantos@google.com (Nick Santos)
  8. -->
  9. <head>
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  11. <meta charset="UTF-8" />
  12. <title>
  13. Closure Unit Tests - goog.positioning.MenuAnchoredPosition
  14. </title>
  15. <script src="../base.js">
  16. </script>
  17. <script>
  18. goog.require('goog.positioning.MenuAnchoredPositionTest');
  19. </script>
  20. </head>
  21. <!-- Force offscreen menus to count as FAIL_X -->
  22. <body style="overflow: hidden">
  23. <div id="offscreen-anchor" style="position: absolute; left: -1000px; top: -1000px">
  24. </div>
  25. <div id="onscreen-anchor" style="position: absolute; left: 5px; top: 5px">
  26. </div>
  27. <!-- The x and y position of this anchor will be reset on each setUp -->
  28. <div id="custom-anchor" style="position: absolute;">
  29. </div>
  30. <div id="menu" style="position: absolute; left: 20px; top: 20px">
  31. Menu Item 1
  32. <br />
  33. Menu Item 2
  34. <br />
  35. Menu Item 3
  36. </div>
  37. </body>
  38. </html>