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
a7430dfb
Commit
a7430dfb
authored
Jun 15, 2012
by
Scott González
Committed by
Rick Waldron
Jun 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use QUnit's URL configs to simplify custom configuration. Closes gh-827
parent
8f944a1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
28 deletions
+16
-28
index.html
test/index.html
+16
-28
No files found.
test/index.html
View file @
a7430dfb
...
...
@@ -9,35 +9,26 @@
<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
src=
"qunit/qunit/qunit.js"
></script>
<!-- Loads minified version if min=true is present in the search -->
<!-- Nullifies querySelectorAll if noqsa=true is present -->
<script>
(
function
()
{
var
set
,
keyvals
,
params
,
version
=
""
;
if
(
location
.
search
)
{
keyvals
=
location
.
search
.
slice
(
1
).
split
(
"&"
),
params
=
{};
while
(
keyvals
.
length
)
{
set
=
keyvals
.
shift
().
split
(
"="
);
params
[
set
[
0
]
]
=
set
[
1
];
}
if
(
params
.
version
&&
params
.
version
===
"min"
)
{
version
=
params
.
version
+
"."
;
}
if
(
params
.
qsa
&&
params
.
qsa
===
"no"
)
{
document
.
querySelectorAll
=
null
;
}
var
src
=
"../dist/jquery.js"
;
QUnit
.
config
.
urlConfig
.
push
(
"min"
);
if
(
QUnit
.
urlParams
.
min
)
{
src
=
"../dist/jquery.min.js"
;
}
QUnit
.
config
.
urlConfig
.
push
(
"noqsa"
);
if
(
QUnit
.
urlParams
.
noqsa
)
{
document
.
querySelectorAll
=
null
;
}
document
.
write
(
"<script src='../dist/jquery."
+
version
+
"js'><
\
/script>"
);
document
.
write
(
"<script src='"
+
src
+
"'><
\
/script>"
);
})();
</script>
<script
src=
"qunit/qunit/qunit.js"
></script>
<script
src=
"data/testrunner.js"
></script>
<script
src=
"unit/core.js"
></script>
...
...
@@ -70,10 +61,7 @@
</head>
<body
id=
"body"
>
<h1
id=
"qunit-header"
><a
href=
"/jquery/test/index.html"
>
jQuery Test Suite
</a>
<a
href=
"?version=min"
>
(minified)
</a>
<a
href=
"?qsa=no"
>
(-querySelectorAll)
</a>
</h1>
<h1
id=
"qunit-header"
><a
href=
"/jquery/test/index.html"
>
jQuery Test Suite
</a></h1>
<h2
id=
"qunit-banner"
></h2>
<div
id=
"qunit-testrunner-toolbar"
></div>
<h2
id=
"qunit-userAgent"
></h2>
...
...
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