dragscrollsupport_test.html 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE html>
  2. <html>
  3. <!--
  4. Copyright 2008 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: dgajda@google.com (Damian Gajda)
  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.fx.DragScrollSupport
  16. </title>
  17. <script src="../base.js">
  18. </script>
  19. <script>
  20. goog.require('goog.fx.DragScrollSupportTest');
  21. </script>
  22. <style>
  23. #vContainerDiv {
  24. position: absolute;
  25. top: 20px;
  26. overflow-y: scroll;
  27. width: 100px;
  28. height: 100px;
  29. visibility: hidden;
  30. }
  31. #vContentDiv {
  32. height: 200px;
  33. }
  34. #hContainerDiv {
  35. position: absolute;
  36. top: 20px;
  37. left: 200px;
  38. overflow-x: scroll;
  39. width: 100px;
  40. height: 100px;
  41. visibility: hidden;
  42. }
  43. #hContentDiv {
  44. width: 200px;
  45. }
  46. </style>
  47. </head>
  48. <body>
  49. <div id="vContainerDiv">
  50. <div id="vContentDiv">
  51. Sample text
  52. </div>
  53. </div>
  54. <div id="hContainerDiv">
  55. <div id="hContentDiv">
  56. Sample text
  57. </div>
  58. </div>
  59. </body>
  60. </html>