savedcaretrange_test.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. <head>
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10. <meta charset="UTF-8" />
  11. <title>Closure Unit Tests - goog.dom.SavedCaretRange</title>
  12. <script src="../base.js"></script>
  13. <script>
  14. goog.require('goog.dom.SavedCaretRangeTest');
  15. </script>
  16. </head>
  17. <body>
  18. <div id='caretRangeTest'>
  19. abc
  20. <div id='def'>def</div>
  21. ghi
  22. <div id='jkl'>jkl</div>
  23. mno
  24. <div id='pqr'>pqr</div>
  25. stu
  26. </div>
  27. <div id='caretRangeTest-2'>
  28. abc
  29. <div id='def-2'>def</div>
  30. ghi
  31. <div id='jkl-2'>jkl</div>
  32. mno
  33. <div id='pqr-2'>pqr</div>
  34. stu
  35. </div>
  36. <div id='caretRangeTest-3'>
  37. abc
  38. <div id='def-3'>def</div>
  39. ghi
  40. <div id='jkl-3'>jkl</div>
  41. mno
  42. <div id='pqr-3'>pqr</div>
  43. stu
  44. </div>
  45. <div id='removeContentsTest'>
  46. abc
  47. <div id='def-4'>def</div>
  48. ghi
  49. <div id='jkl-4'>jkl</div>
  50. mno
  51. <div id='pqr-4'>pqr</div>
  52. stu
  53. </div>
  54. <div id='reversedSavedCaretRange'>
  55. abc
  56. <div id='def-5'>def</div>
  57. ghi
  58. <div id='jkl-5'>jkl</div>
  59. mno
  60. <div id='pqr-5'>pqr</div>
  61. stu
  62. </div>
  63. <div id='bug1480638'>foo<table><tr><td>bar</td></tr></table>baz</div>
  64. </body>
  65. </html>