enterhandler_test.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!DOCTYPE html>
  2. <!--
  3. Tests for goog.editor.plugins.EnterHandler
  4. @author nicksantos@google.com (Nick Santos)
  5. -->
  6. <html>
  7. <!--
  8. Copyright 2008 The Closure Library Authors. All Rights Reserved.
  9. Use of this source code is governed by the Apache License, Version 2.0.
  10. See the COPYING file for details.
  11. -->
  12. <head>
  13. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  14. <meta charset="UTF-8" />
  15. <title>
  16. Closure Unit Tests - goog.editor.plugins.EnterHandler
  17. </title>
  18. <script src="../../base.js">
  19. </script>
  20. <script>
  21. goog.require('goog.editor.plugins.EnterHandlerTest');
  22. </script>
  23. <style type="text/css">
  24. .tr-field {
  25. border: thin solid blue;
  26. }
  27. .tr_bq {
  28. border-left: thin solid red;
  29. margin-left: 5px;
  30. }
  31. </style>
  32. </head>
  33. <body>
  34. <input type="button" value="Make all fields editable" onclick="setUp()" />
  35. <p>
  36. <div id="container">
  37. This is used to test static utility functions.
  38. </div>
  39. <div id="root">
  40. <div id="field1" class="tr-field">
  41. <blockquote>
  42. This is an
  43. <span id="field1cursor">
  44. selection
  45. </span>
  46. unsetup blockquote
  47. </blockquote>
  48. </div>
  49. <p>
  50. <div id="field2" class="tr-field">
  51. <blockquote class="tr_bq">
  52. This is a
  53. <span id="field2cursor">
  54. selection
  55. </span>
  56. setup blockquote
  57. </blockquote>
  58. </div>
  59. </p>
  60. <p>
  61. </p>
  62. </div>
  63. </p>
  64. </body>
  65. </html>