tablesorter_test.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. <!-- Author: robbyw@google.com (Robby Walker) -->
  9. <head>
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  11. <meta charset="UTF-8" />
  12. <title>
  13. Closure Unit Tests - goog.ui.TableSorter
  14. </title>
  15. <script src="../base.js">
  16. </script>
  17. <script>
  18. goog.require('goog.ui.TableSorterTest');
  19. </script>
  20. </head>
  21. <body>
  22. <div id="content">
  23. <table id="sortable">
  24. <thead>
  25. <tr><th>alpha</th><th>number</th><th>not sortable</th></tr>
  26. <tr><th id="not-sortable" colspan="3">cannot sort</th></tr>
  27. </thead>
  28. <tbody>
  29. <tr><td>C</td><td>10</td><td></td></tr>
  30. <tr><td>A</td><td>10</td><td></td></tr>
  31. <tr><td>C</td><td>17</td><td></td></tr>
  32. <tr><td>B</td><td>0</td><td></td></tr>
  33. <tr><td>C</td><td>3</td><td></td></tr>
  34. </tbody>
  35. </table>
  36. <table id="sortable-2">
  37. <thead>
  38. <tr><th>not sortable 1</th><th colspan="2">not sortable 2</th></tr>
  39. <tr>
  40. <th id="sorttable-2-col-1">Col 1</th>
  41. <th id="sorttable-2-col-2">Col 2</th>
  42. <th id="sorttable-2-col-3">Col 3</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. <tr><td>4</td><td>5</td><td>6</td></tr>
  47. <tr><td>1</td><td>2</td><td>3</td></tr>
  48. <tr><td>3</td><td>1</td><td>9</td></tr>
  49. </tbody>
  50. </table>
  51. <table id="sortable-3">
  52. <thead>
  53. <tr><th id="sortable-3-col">Sortable</th></tr>
  54. </thead>
  55. <tbody>
  56. <tr><td>B</td></tr>
  57. <tr><td>C</td></tr>
  58. <tr><td>A</td></tr>
  59. </tbody>
  60. <tbody>
  61. <tr><td>B</td></tr>
  62. <tr><td>A</td></tr>
  63. <tr><td>C</td></tr>
  64. </tbody>
  65. </table>
  66. <table id="sortable-4">
  67. <thead>
  68. <tr><th id="sortable-4-col">Sortable</th></tr>
  69. </thead>
  70. <tbody>
  71. <tr><td>11</td></tr>
  72. <tr><td>Bar</td></tr>
  73. <tr><td>3</td></tr>
  74. <tr><td>Foo</td></tr>
  75. <tr><td>2</td></tr>
  76. </tbody>
  77. </table>
  78. </div>
  79. </body>
  80. </html>