classes_test.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html>
  3. <!--
  4. Copyright 2006 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. When changing this, make sure that classes_quirks_test.html is kept in sync.
  10. -->
  11. <head>
  12. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  13. <meta charset="UTF-8" />
  14. <title>Closure Unit Tests - goog.dom.classes</title>
  15. <script src="../base.js"></script>
  16. <style type="text/css">
  17. #styleTest1 {
  18. width:120px;font-weight:bold;
  19. }
  20. </style>
  21. </head>
  22. <body>
  23. <div id="testEl">
  24. <span>Test Element</span>
  25. </div>
  26. <div><div><div id="testEl2"></div></div></div>
  27. <span id="span1" class="TEST1"></span>
  28. <span id="span2" class="TEST1"></span>
  29. <span id="span3" class="TEST2"></span>
  30. <span id="span4" class="TEST3"></span>
  31. <span id="span5" class="TEST1"></span>
  32. <span id="span6"></span>
  33. <p id="p1"></p>
  34. <div id="styleTest1"></div>
  35. <div id="styleTest2" style="width:100px;font-weight:bold"></div>
  36. <div id="styleTest3"></div>
  37. <!-- Paragraph to test element child and sibling -->
  38. <p id="p2">
  39. <!-- Comment -->
  40. a
  41. <b id="b1">c</b>
  42. d
  43. <!-- Comment -->
  44. e
  45. <b id="b2">f</b>
  46. g
  47. <!-- Comment -->
  48. </p>
  49. <p id="p3" class="SOMECLASS
  50. OTHERCLASS">
  51. h
  52. </p>
  53. <iframe name="frame" src="../math/math_test.html"></iframe>
  54. <script>
  55. goog.require('goog.dom.classes_test');
  56. </script>
  57. </body>
  58. </html>