Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
8f944a1b
Commit
8f944a1b
authored
Jun 15, 2012
by
timmywil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add necessary test html from Sizzle tests; Add an easy way to turn off QSA in tests
parent
1ea4fe70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
17 deletions
+33
-17
sizzle
src/sizzle
+1
-1
index.html
test/index.html
+32
-16
No files found.
sizzle
@
7340e00e
Subproject commit
c24253c0556a75bfb145dccee6f074d064b3fdc3
Subproject commit
7340e00eed33d86ad92aaa355c1efda4222bbd88
test/index.html
View file @
8f944a1b
...
@@ -9,25 +9,32 @@
...
@@ -9,25 +9,32 @@
<script
src=
"data/testinit.js"
></script>
<script
src=
"data/testinit.js"
></script>
<!-- Loads minified version if version=min is present in the search -->
<!-- Nullifies querySelectorAll if qsa=no is present -->
<script>
<script>
var
set
,
keyvals
,
params
,
(
function
()
{
var
set
,
keyvals
,
params
,
version
=
""
;
version
=
""
;
if
(
location
.
search
)
{
if
(
location
.
search
)
{
keyvals
=
location
.
search
.
slice
(
1
).
split
(
"&"
),
keyvals
=
location
.
search
.
slice
(
1
).
split
(
"&"
),
params
=
{};
params
=
{};
while
(
keyvals
.
length
)
{
while
(
keyvals
.
length
)
{
set
=
keyvals
.
shift
().
split
(
"="
);
set
=
keyvals
.
shift
().
split
(
"="
);
params
[
set
[
0
]
]
=
set
[
1
];
params
[
set
[
0
]
]
=
set
[
1
];
}
}
if
(
params
.
version
&&
params
.
version
===
"min"
)
{
if
(
params
.
version
&&
params
.
version
===
"min"
)
{
version
=
params
.
version
+
"."
;
version
=
params
.
version
+
"."
;
}
if
(
params
.
qsa
&&
params
.
qsa
===
"no"
)
{
document
.
querySelectorAll
=
null
;
}
}
}
}
document
.
write
(
document
.
write
(
"<script src='../dist/jquery."
+
version
+
"js'><
\
/script>"
"<script src='../dist/jquery."
+
version
+
"js'><
\
/script>"
);
);
})(
);
</script>
</script>
<script
src=
"qunit/qunit/qunit.js"
></script>
<script
src=
"qunit/qunit/qunit.js"
></script>
...
@@ -64,7 +71,8 @@
...
@@ -64,7 +71,8 @@
<body
id=
"body"
>
<body
id=
"body"
>
<h1
id=
"qunit-header"
><a
href=
"/jquery/test/index.html"
>
jQuery Test Suite
</a>
<h1
id=
"qunit-header"
><a
href=
"/jquery/test/index.html"
>
jQuery Test Suite
</a>
<a
href=
"?jquery=min"
>
(minified)
</a>
<a
href=
"?version=min"
>
(minified)
</a>
<a
href=
"?qsa=no"
>
(-querySelectorAll)
</a>
</h1>
</h1>
<h2
id=
"qunit-banner"
></h2>
<h2
id=
"qunit-banner"
></h2>
<div
id=
"qunit-testrunner-toolbar"
></div>
<div
id=
"qunit-testrunner-toolbar"
></div>
...
@@ -269,6 +277,14 @@ Z</textarea>
...
@@ -269,6 +277,14 @@ Z</textarea>
<div
id=
"siblingTest"
>
<div
id=
"siblingTest"
>
<em
id=
"siblingfirst"
>
1
</em>
<em
id=
"siblingfirst"
>
1
</em>
<em
id=
"siblingnext"
>
2
</em>
<em
id=
"siblingnext"
>
2
</em>
<em
id=
"siblingthird"
>
<em
id=
"siblingchild"
>
<em
id=
"siblinggrandchild"
>
<em
id=
"siblinggreatgrandchild"
></em>
</em>
</em>
</em>
<span
id=
"siblingspan"
></span>
</div>
</div>
</div>
</div>
</dl>
</dl>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment