range_test.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!DOCTYPE html>
  2. <html>
  3. <!--
  4. Copyright 2007 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.Range</title>
  12. <script src="../base.js"></script>
  13. <script>
  14. goog.require('goog.dom.RangeTest');
  15. </script>
  16. </head>
  17. <body>
  18. <div id="test1">Text</div>
  19. <div id="test2">abc<br id="br">def</div>
  20. <div id="empty"></div>
  21. <div id="test3"><div></div></div>
  22. <div id="removeTest"><div>Text that<br/>will be deleted</div></div>
  23. <div id="surroundTest"></div>
  24. <div id="insertTest"></div>
  25. <div id="surroundWithNodesTest"></div>
  26. <div id="removePartialTest">012345</div>
  27. <table id="tableTest"><tr><td id="cell">1</td><td>2</td></tr></table>
  28. <div id="ulTest"><ul><li>1</li><li>2</li></ul></div>
  29. <div id="olTest"><ol><li>1</li><li>2</li></ol></div>
  30. <img id="logo" src="http://www.google.com/intl/en_ALL/images/logo.gif">
  31. <div id="removeNodeTest"><div>Will be removed</div></div>
  32. <div id='bug1480638'></div>
  33. <div id='textWithSpaces'>hello world !</div>
  34. <div contentEditable=true>
  35. <div id='rangeAroundBreaks'>abcd<br />e</div>
  36. <div id='breaksAroundNode'><br />abcde<br /></div>
  37. </div>
  38. <!-- A focusable element to help restore focus to a sane state. -->
  39. <input id="focusableElement">
  40. </body>
  41. </html>