textrange_test.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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.TextRange</title>
  12. <script src="../base.js"></script>
  13. <script>
  14. goog.require('goog.dom.TextRangeTest');
  15. </script>
  16. </head>
  17. <body>
  18. <div id="test1"></div>
  19. <div id="test2">
  20. <img id="logo" src="http://www.google.com/intl/en_ALL/images/logo.gif">
  21. </div>
  22. <!-- Omit whitespace here to ensure no extra text nodes are included. -->
  23. <table id="table"><tbody id="tbody"><tr id="tr1"><td id="td11">a</td
  24. ><td id="td12">b</td></tr><tr id="tr2"><td id="td21">c</td><td id="td22"
  25. >d</td></tr></tbody></table>
  26. <table id="table2">
  27. <tr>
  28. <td>moof</td>
  29. </tr>
  30. <tr>
  31. <td id="table2td">
  32. <div id="table2div">foo<img id="logo2"
  33. src="http://www.google.com/intl/en_ALL/images/logo.gif">bar</div>
  34. </td>
  35. </tr>
  36. </table>
  37. <!-- Omit whitespace here to ensure no extra text nodes are included. -->
  38. <div id="test3Rtl" dir="rtl"><span>position</span><img id="logo3Rtl"
  39. src="http://www.google.com/intl/en_ALL/images/logo.gif"><span
  40. >test</span></div>
  41. <!-- Omit whitespace here to ensure no extra text nodes are included. -->
  42. <div id="test3"><span>position</span><img id="logo3"
  43. src="http://www.google.com/intl/en_ALL/images/logo.gif"><span
  44. >test</span></div>
  45. </body>
  46. </html>