提交 7d98606e 编写于 作者: Y yancend

testcase

上级 7eae4432
......@@ -50,14 +50,12 @@ test("getMaxCols", function () {
});
test("getSameEndPosCells", function () {
var table = getTable("<tr><td rowspan='2'>1</td><td>2</td><td>3</td></tr>" +
"<tr><td>2</td><td>3</td></tr>"),
var table = getTable("<tr><td rowspan='2'>1</td><td>2</td><td>3</td></tr><tr><td>2</td><td>3</td></tr>"),
ut = new UT(table);
var cell = table.rows[0].cells[0],
cells1 = ut.getSameEndPosCells(cell, "x"),
cells2 = ut.getSameEndPosCells(cell, "y");
ok(cells1.length == 1, "获取到同样X轴结尾位置的cell1个");
if(ua.browser.ie)//TODO 1.2.6
ok(cells2.length == 2, "获取到同样Y轴结尾位置的cell2个");
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册