OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 col { | |
6 width: 200px; | |
7 } | |
8 td { | |
9 background-color: #66f; | |
10 height: 25px; | |
11 } | |
12 </style> | |
13 <script src="../../../resources/js-test.js"></script> | |
14 <script> | |
15 function runTest() { | |
16 description('Tests that the width of table cell changes on chang ing the colgroup width to new width which is less than its originally defined wi dth. New width should be 100'); | |
17 | |
18 setTimeout(function() { | |
19 var col = document.getElementById('thecol'); | |
20 col.style.width="100px"; | |
21 shouldBe("document.getElementById('colWidth').offsetWidth"," 100"); | |
Julien - ping for review
2014/02/06 22:28:18
Do we really need a custom check instead of using
| |
22 finishJSTest(); | |
23 }, 0); | |
24 } | |
25 var jsTestIsAsync = true; | |
26 </script> | |
27 </head> | |
28 <body onload="runTest()"> | |
29 <table> | |
30 <colgroup> | |
31 <col id="thecol" span="2"> | |
32 </colgroup> | |
33 <tbody> | |
34 <tr> | |
35 <td id="colWidth"></td> | |
36 </tr> | |
37 </tbody> | |
38 </table> | |
39 </body> | |
40 </html> | |
OLD | NEW |