| 1 |
<!DOCTYPE html><!-- DO NOT EDIT. This file auto-generated by generate_closure_unit_tests.js --><!-- |
| 2 |
Copyright 2017 The Closure Library Authors. All Rights Reserved. |
| 3 |
|
| 4 |
Use of this source code is governed by the Apache License, Version 2.0. |
| 5 |
See the COPYING file for details. |
| 6 |
--><html><head><meta charset="UTF-8"> |
| 7 |
|
| 8 |
<script src="../base.js"></script> |
| 9 |
|
| 10 |
<script>goog.require('goog.editor.TableTest');</script> |
| 11 |
<title>Closure Unit Tests - goog.editor.TableTest</title><!-- |
| 12 |
Copyright 2017 The Closure Library Authors. All Rights Reserved. |
| 13 |
|
| 14 |
Use of this source code is governed by the Apache License, Version 2.0. |
| 15 |
See the COPYING file for details. |
| 16 |
--> |
| 17 |
<style> |
| 18 |
table { |
| 19 |
border:1px outset #777; |
| 20 |
margin-top: 1em; |
| 21 |
empty-cells: show; |
| 22 |
} |
| 23 |
td, th { |
| 24 |
border:1px inset #777; |
| 25 |
} |
| 26 |
</style> |
| 27 |
</head><body><table id="test-basic"> |
| 28 |
<tbody><tr> |
| 29 |
<th> |
| 30 |
Number |
| 31 |
</th> |
| 32 |
<th> |
| 33 |
Color |
| 34 |
</th> |
| 35 |
<th> |
| 36 |
Speed |
| 37 |
</th> |
| 38 |
</tr> |
| 39 |
<tr> |
| 40 |
<td> |
| 41 |
One |
| 42 |
</td> |
| 43 |
<td> |
| 44 |
Red |
| 45 |
</td> |
| 46 |
<td> |
| 47 |
60 |
| 48 |
</td> |
| 49 |
</tr> |
| 50 |
<tr> |
| 51 |
<td> |
| 52 |
Two |
| 53 |
</td> |
| 54 |
<td> |
| 55 |
Blue |
| 56 |
</td> |
| 57 |
<td> |
| 58 |
75 |
| 59 |
</td> |
| 60 |
</tr> |
| 61 |
<tr> |
| 62 |
<td> |
| 63 |
Three |
| 64 |
</td> |
| 65 |
<td> |
| 66 |
Orange |
| 67 |
</td> |
| 68 |
<td> |
| 69 |
88 |
| 70 |
</td> |
| 71 |
</tr> |
| 72 |
</tbody></table> |
| 73 |
<table id="test-torture"> |
| 74 |
<tbody><tr> |
| 75 |
<th rowspan="2"> |
| 76 |
Left 0+1 |
| 77 |
<br> |
| 78 |
</th> |
| 79 |
<th colspan="2"> |
| 80 |
Middle, Right 0 |
| 81 |
</th> |
| 82 |
</tr> |
| 83 |
<tr> |
| 84 |
<td colspan="2" rowspan="2"> |
| 85 |
Middle, Right 1 + 2 |
| 86 |
<br> |
| 87 |
</td> |
| 88 |
</tr> |
| 89 |
<tr> |
| 90 |
<th> |
| 91 |
Left 2 |
| 92 |
</th> |
| 93 |
</tr> |
| 94 |
<tr> |
| 95 |
<th> |
| 96 |
Left 3 |
| 97 |
</th> |
| 98 |
<td> |
| 99 |
Middle 3 |
| 100 |
</td> |
| 101 |
<td> |
| 102 |
Right 3 |
| 103 |
</td> |
| 104 |
</tr> |
| 105 |
<tr> |
| 106 |
<th colspan="3"> |
| 107 |
Left, Middle, Right 4 |
| 108 |
</th> |
| 109 |
</tr> |
| 110 |
<tr> |
| 111 |
<th colspan="2" rowspan="2"> |
| 112 |
Left, Middle 5+6 |
| 113 |
<br> |
| 114 |
</th> |
| 115 |
<td rowspan="4"> |
| 116 |
Right 5+6+7+8 |
| 117 |
</td> |
| 118 |
</tr> |
| 119 |
<tr> |
| 120 |
</tr> |
| 121 |
<tr> |
| 122 |
<th rowspan="2"> |
| 123 |
Left 7+8 |
| 124 |
</th> |
| 125 |
<td> |
| 126 |
Middle 7 |
| 127 |
</td> |
| 128 |
</tr> |
| 129 |
<tr> |
| 130 |
<td> |
| 131 |
Middle 8 |
| 132 |
</td> |
| 133 |
</tr> |
| 134 |
</tbody></table> |
| 135 |
<table id="test-nested"> |
| 136 |
<tbody><tr> |
| 137 |
<td> |
| 138 |
One |
| 139 |
</td> |
| 140 |
<td> |
| 141 |
Two |
| 142 |
</td> |
| 143 |
<td> |
| 144 |
<table> |
| 145 |
<tbody><tr> |
| 146 |
<td> |
| 147 |
Nested cell 1 |
| 148 |
</td> |
| 149 |
<td> |
| 150 |
Nested cell 2 |
| 151 |
</td> |
| 152 |
</tr> |
| 153 |
<tr> |
| 154 |
<td> |
| 155 |
Nested cell 2 |
| 156 |
</td> |
| 157 |
<td> |
| 158 |
Nested cell 3 |
| 159 |
</td> |
| 160 |
</tr> |
| 161 |
</tbody></table> |
| 162 |
</td> |
| 163 |
</tr> |
| 164 |
<tr> |
| 165 |
<td> |
| 166 |
Four |
| 167 |
</td> |
| 168 |
<td> |
| 169 |
Five |
| 170 |
</td> |
| 171 |
<td> |
| 172 |
Six |
| 173 |
</td> |
| 174 |
</tr> |
| 175 |
</tbody></table></body></html> |