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
f42010b6
Commit
f42010b6
authored
Apr 12, 2011
by
louisremi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
third batch
parent
11adde51
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
616 additions
and
616 deletions
+616
-616
dimensions.js
test/unit/dimensions.js
+6
-6
effects.js
test/unit/effects.js
+48
-48
event.js
test/unit/event.js
+90
-90
manipulation.js
test/unit/manipulation.js
+239
-239
offset.js
test/unit/offset.js
+107
-107
queue.js
test/unit/queue.js
+11
-11
traversing.js
test/unit/traversing.js
+115
-115
No files found.
test/unit/dimensions.js
View file @
f42010b6
...
@@ -34,7 +34,7 @@ function testWidth( val ) {
...
@@ -34,7 +34,7 @@ function testWidth( val ) {
equals
(
blah
.
width
(
val
(
10
)
),
blah
,
"Make sure that setting a width on an empty set returns the set."
);
equals
(
blah
.
width
(
val
(
10
)
),
blah
,
"Make sure that setting a width on an empty set returns the set."
);
equals
(
blah
.
width
(),
null
,
"Make sure 'null' is returned on an empty set"
);
equals
(
blah
.
width
(),
null
,
"Make sure 'null' is returned on an empty set"
);
jQuery
.
removeData
(
$div
[
0
],
'olddisplay'
,
true
);
jQuery
.
removeData
(
$div
[
0
],
"olddisplay"
,
true
);
}
}
test
(
"width()"
,
function
()
{
test
(
"width()"
,
function
()
{
...
@@ -83,7 +83,7 @@ function testHeight( val ) {
...
@@ -83,7 +83,7 @@ function testHeight( val ) {
equals
(
blah
.
height
(
val
(
10
)
),
blah
,
"Make sure that setting a height on an empty set returns the set."
);
equals
(
blah
.
height
(
val
(
10
)
),
blah
,
"Make sure that setting a height on an empty set returns the set."
);
equals
(
blah
.
height
(),
null
,
"Make sure 'null' is returned on an empty set"
);
equals
(
blah
.
height
(),
null
,
"Make sure 'null' is returned on an empty set"
);
jQuery
.
removeData
(
$div
[
0
],
'olddisplay'
,
true
);
jQuery
.
removeData
(
$div
[
0
],
"olddisplay"
,
true
);
}
}
test
(
"height()"
,
function
()
{
test
(
"height()"
,
function
()
{
...
@@ -132,7 +132,7 @@ test("innerWidth()", function() {
...
@@ -132,7 +132,7 @@ test("innerWidth()", function() {
equals
(
div
.
innerWidth
(),
0
,
"Make sure that disconnected nodes are handled."
);
equals
(
div
.
innerWidth
(),
0
,
"Make sure that disconnected nodes are handled."
);
div
.
remove
();
div
.
remove
();
jQuery
.
removeData
(
$div
[
0
],
'olddisplay'
,
true
);
jQuery
.
removeData
(
$div
[
0
],
"olddisplay"
,
true
);
});
});
test
(
"innerHeight()"
,
function
()
{
test
(
"innerHeight()"
,
function
()
{
...
@@ -161,7 +161,7 @@ test("innerHeight()", function() {
...
@@ -161,7 +161,7 @@ test("innerHeight()", function() {
equals
(
div
.
innerHeight
(),
0
,
"Make sure that disconnected nodes are handled."
);
equals
(
div
.
innerHeight
(),
0
,
"Make sure that disconnected nodes are handled."
);
div
.
remove
();
div
.
remove
();
jQuery
.
removeData
(
$div
[
0
],
'olddisplay'
,
true
);
jQuery
.
removeData
(
$div
[
0
],
"olddisplay"
,
true
);
});
});
test
(
"outerWidth()"
,
function
()
{
test
(
"outerWidth()"
,
function
()
{
...
@@ -191,7 +191,7 @@ test("outerWidth()", function() {
...
@@ -191,7 +191,7 @@ test("outerWidth()", function() {
equals
(
div
.
outerWidth
(),
0
,
"Make sure that disconnected nodes are handled."
);
equals
(
div
.
outerWidth
(),
0
,
"Make sure that disconnected nodes are handled."
);
div
.
remove
();
div
.
remove
();
jQuery
.
removeData
(
$div
[
0
],
'olddisplay'
,
true
);
jQuery
.
removeData
(
$div
[
0
],
"olddisplay"
,
true
);
});
});
test
(
"outerHeight()"
,
function
()
{
test
(
"outerHeight()"
,
function
()
{
...
@@ -220,5 +220,5 @@ test("outerHeight()", function() {
...
@@ -220,5 +220,5 @@ test("outerHeight()", function() {
equals
(
div
.
outerHeight
(),
0
,
"Make sure that disconnected nodes are handled."
);
equals
(
div
.
outerHeight
(),
0
,
"Make sure that disconnected nodes are handled."
);
div
.
remove
();
div
.
remove
();
jQuery
.
removeData
(
$div
[
0
],
'olddisplay'
,
true
);
jQuery
.
removeData
(
$div
[
0
],
"olddisplay"
,
true
);
});
});
test/unit/effects.js
View file @
f42010b6
This diff is collapsed.
Click to expand it.
test/unit/event.js
View file @
f42010b6
This diff is collapsed.
Click to expand it.
test/unit/manipulation.js
View file @
f42010b6
This diff is collapsed.
Click to expand it.
test/unit/offset.js
View file @
f42010b6
This diff is collapsed.
Click to expand it.
test/unit/queue.js
View file @
f42010b6
...
@@ -7,32 +7,32 @@ test("queue() with other types",function() {
...
@@ -7,32 +7,32 @@ test("queue() with other types",function() {
var
$div
=
jQuery
({});
var
$div
=
jQuery
({});
$div
$div
.
queue
(
'foo'
,
function
(){
.
queue
(
"foo"
,
function
(){
equals
(
++
counter
,
1
,
"Dequeuing"
);
equals
(
++
counter
,
1
,
"Dequeuing"
);
jQuery
.
dequeue
(
this
,
'foo'
);
jQuery
.
dequeue
(
this
,
"foo"
);
})
})
.
queue
(
'foo'
,
function
(){
.
queue
(
"foo"
,
function
(){
equals
(
++
counter
,
2
,
"Dequeuing"
);
equals
(
++
counter
,
2
,
"Dequeuing"
);
jQuery
(
this
).
dequeue
(
'foo'
);
jQuery
(
this
).
dequeue
(
"foo"
);
})
})
.
queue
(
'foo'
,
function
(){
.
queue
(
"foo"
,
function
(){
equals
(
++
counter
,
3
,
"Dequeuing"
);
equals
(
++
counter
,
3
,
"Dequeuing"
);
})
})
.
queue
(
'foo'
,
function
(){
.
queue
(
"foo"
,
function
(){
equals
(
++
counter
,
4
,
"Dequeuing"
);
equals
(
++
counter
,
4
,
"Dequeuing"
);
});
});
equals
(
$div
.
queue
(
'foo'
).
length
,
4
,
"Testing queue length"
);
equals
(
$div
.
queue
(
"foo"
).
length
,
4
,
"Testing queue length"
);
$div
.
dequeue
(
'foo'
);
$div
.
dequeue
(
"foo"
);
equals
(
counter
,
3
,
"Testing previous call to dequeue"
);
equals
(
counter
,
3
,
"Testing previous call to dequeue"
);
equals
(
$div
.
queue
(
'foo'
).
length
,
1
,
"Testing queue length"
);
equals
(
$div
.
queue
(
"foo"
).
length
,
1
,
"Testing queue length"
);
$div
.
dequeue
(
'foo'
);
$div
.
dequeue
(
"foo"
);
equals
(
counter
,
4
,
"Testing previous call to dequeue"
);
equals
(
counter
,
4
,
"Testing previous call to dequeue"
);
equals
(
$div
.
queue
(
'foo'
).
length
,
0
,
"Testing queue length"
);
equals
(
$div
.
queue
(
"foo"
).
length
,
0
,
"Testing queue length"
);
});
});
test
(
"queue(name) passes in the next item in the queue as a parameter"
,
function
()
{
test
(
"queue(name) passes in the next item in the queue as a parameter"
,
function
()
{
...
...
test/unit/traversing.js
View file @
f42010b6
This diff is collapsed.
Click to expand it.
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