aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/dimensions.js
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2013-02-18 23:52:29 -0500
committerRichard Gibson <richard.gibson@gmail.com>2013-02-22 20:13:36 -0500
commit59f5adb622dd6bc3419bbaa9cc2d4acd7a0b08b9 (patch)
tree721e7b0e1b7222379d24acf648707d3f4d68fdac /test/unit/dimensions.js
parent9338a69e307c0051ef50d6365c5f45872a9d7ef7 (diff)
downloadjquery-59f5adb622dd6bc3419bbaa9cc2d4acd7a0b08b9.tar.gz
jquery-59f5adb622dd6bc3419bbaa9cc2d4acd7a0b08b9.zip
No ticket: Revise unit tests in anticipation of Sizzle-free builds
Diffstat (limited to 'test/unit/dimensions.js')
-rw-r--r--test/unit/dimensions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js
index 680b08320..64094c2e5 100644
--- a/test/unit/dimensions.js
+++ b/test/unit/dimensions.js
@@ -296,8 +296,8 @@ test("getting dimensions shouldnt modify runtimeStyle see #9233", function() {
test( "table dimensions", 2, function() {
var table = jQuery("<table><colgroup><col/><col/></colgroup><tbody><tr><td></td><td>a</td></tr><tr><td></td><td>a</td></tr></tbody></table>").appendTo("#qunit-fixture"),
- tdElem = table.find("tr:eq(0) td:eq(0)"),
- colElem = table.find("col:eq(1)").width( 300 );
+ tdElem = table.find("td").first(),
+ colElem = table.find("col").first().width( 300 );
table.find("td").css({ "margin": 0, "padding": 0 });