aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/traversing.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-10-16 10:17:14 -0400
committerRick Waldron <waldron.rick@gmail.com>2012-10-16 10:17:14 -0400
commited9e34482a303e7e64c397f89533dbe64f51cfbf (patch)
tree343331dcdc9b4f93dbeff7c375e3526c4bcd3057 /test/unit/traversing.js
parent605a38073e657d929eed06b3211baee1cd29c787 (diff)
downloadjquery-ed9e34482a303e7e64c397f89533dbe64f51cfbf.tar.gz
jquery-ed9e34482a303e7e64c397f89533dbe64f51cfbf.zip
enforce double quotes via JSHint. Closes gh-975
Diffstat (limited to 'test/unit/traversing.js')
-rw-r--r--test/unit/traversing.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/unit/traversing.js b/test/unit/traversing.js
index e1d982c80..dd957c28b 100644
--- a/test/unit/traversing.js
+++ b/test/unit/traversing.js
@@ -107,7 +107,7 @@ test("is() with positional selectors", function() {
expect(23);
var html = jQuery(
- '<p id="posp"><a class="firsta" href="#"><em>first</em></a><a class="seconda" href="#"><b>test</b></a><em></em></p>'
+ "<p id='posp'><a class='firsta' href='#'><em>first</em></a><a class='seconda' href='#'><b>test</b></a><em></em></p>"
).appendTo( "body" ),
isit = function(sel, match, expect) {
equal( jQuery( sel ).is( match ), expect, "jQuery( " + sel + " ).is( " + match + " )" );
@@ -234,16 +234,16 @@ test("filter(jQuery)", function() {
test("filter() with positional selectors", function() {
expect(19);
- var html = jQuery('' +
- '<p id="posp">' +
- '<a class="firsta" href="#">' +
- '<em>first</em>' +
- '</a>' +
- '<a class="seconda" href="#">' +
- '<b>test</b>' +
- '</a>' +
- '<em></em>' +
- '</p>').appendTo( "body" ),
+ var html = jQuery( "" +
+ "<p id='posp'>" +
+ "<a class='firsta' href='#'>" +
+ "<em>first</em>" +
+ "</a>" +
+ "<a class='seconda' href='#'>" +
+ "<b>test</b>" +
+ "</a>" +
+ "<em></em>" +
+ "</p>" ).appendTo( "body" ),
filterit = function(sel, filter, length) {
equal( jQuery( sel ).filter( filter ).length, length, "jQuery( " + sel + " ).filter( " + filter + " )" );
};