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
611d7660
Commit
611d7660
authored
Oct 15, 2012
by
Rick Waldron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicate expect. Add QUnit.config.requireExpects to testrunner.js QUnit configurations.
parent
0c447434
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
testrunner.js
test/data/testrunner.js
+3
-0
css.js
test/unit/css.js
+2
-2
No files found.
test/data/testrunner.js
View file @
611d7660
...
@@ -156,6 +156,9 @@ function testSubproject( label, url, risTests ) {
...
@@ -156,6 +156,9 @@ function testSubproject( label, url, risTests ) {
// and start()'s the next test.
// and start()'s the next test.
QUnit
.
config
.
testTimeout
=
20
*
1000
;
// 20 seconds
QUnit
.
config
.
testTimeout
=
20
*
1000
;
// 20 seconds
// Enforce an "expect" argument or expect() call in all test bodies.
QUnit
.
config
.
requireExpects
=
true
;
/**
/**
* Load the TestSwarm listener if swarmURL is in the address.
* Load the TestSwarm listener if swarmURL is in the address.
*/
*/
...
...
test/unit/css.js
View file @
611d7660
...
@@ -782,7 +782,7 @@ if ( jQuery.fn.offset ) {
...
@@ -782,7 +782,7 @@ if ( jQuery.fn.offset ) {
});
});
}
}
test
(
"Do not append px to 'fill-opacity' #9548"
,
1
,
function
()
{
test
(
"Do not append px to 'fill-opacity' #9548"
,
function
()
{
expect
(
1
);
expect
(
1
);
var
$div
=
jQuery
(
"<div>"
).
appendTo
(
"#qunit-fixture"
).
css
(
"fill-opacity"
,
1
);
var
$div
=
jQuery
(
"<div>"
).
appendTo
(
"#qunit-fixture"
).
css
(
"fill-opacity"
,
1
);
...
@@ -791,7 +791,7 @@ test("Do not append px to 'fill-opacity' #9548", 1, function() {
...
@@ -791,7 +791,7 @@ test("Do not append px to 'fill-opacity' #9548", 1, function() {
test
(
"css('width') and css('height') should respect box-sizing, see #11004"
,
function
()
{
test
(
"css('width') and css('height') should respect box-sizing, see #11004"
,
function
()
{
expect
(
4
);
expect
(
4
);
var
el_dis
=
jQuery
(
"<div style='width:300px;height:300px;margin:2px;padding:2px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;'>test</div>"
),
var
el_dis
=
jQuery
(
"<div style='width:300px;height:300px;margin:2px;padding:2px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;'>test</div>"
),
el
=
el_dis
.
clone
().
appendTo
(
"#qunit-fixture"
);
el
=
el_dis
.
clone
().
appendTo
(
"#qunit-fixture"
);
...
...
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