range_test.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 nicksantos@google.com (Nick Santos)
  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.editor.range
  16. </title>
  17. <script src="../base.js">
  18. </script>
  19. <script>
  20. goog.require('goog.editor.rangeTest');
  21. </script>
  22. </head>
  23. <body>
  24. <div id='root'>
  25. <div id='parentNode'>
  26. abc
  27. <div id='def'>def</div>
  28. ghi
  29. <div id='jkl'>jkl</div>
  30. mno
  31. <div id='pqr'>pqr</div>
  32. stu
  33. </div>
  34. <div id='caretRangeTest-1'>
  35. abc
  36. <div id='def-1'>def</div>
  37. ghi
  38. <div id='jkl-1'>jkl</div>
  39. mno
  40. <div id='pqr-1'>pqr</div>
  41. stu
  42. </div>
  43. <div id='normalizeTest-with-br'>abc<br/>def</div>
  44. <div id='normalizeTest-with-div'><div>abc</div></div>
  45. <div id='normalizeTest-with-empty-text-nodes'></div>
  46. <div id='normalizeTest-2'>
  47. abc
  48. <div id='def-2'>def</div>
  49. ghi
  50. <div id='jkl-2'>jkl</div>
  51. mno
  52. <div id='pqr-2'>pqr</div>
  53. stu
  54. </div>
  55. <div id='normalizeTest-3'>
  56. abc
  57. <div id='def-3'>def</div>
  58. ghi
  59. <div id='jkl-3'>jkl</div>
  60. mno
  61. <div id='pqr-3'>pqr</div>
  62. stu
  63. </div>
  64. <div id='normalizeTest-4'>
  65. abc
  66. <div id='def-4'>def</div>
  67. ghi
  68. <div id='jkl-4'>jkl</div>
  69. mno
  70. <div id='pqr-4'>pqr</div>
  71. stu
  72. </div>
  73. <div id='editableTest' g_editable='true'>
  74. abc
  75. <div>def</div>
  76. ghi
  77. <div>jkl</div>
  78. mno
  79. <div>pqr</div>
  80. stu
  81. </div>
  82. </div>
  83. </body>
  84. </html>