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
0c927172
Commit
0c927172
authored
Apr 15, 2013
by
Michał Gołębiowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Further spacing & code style corrections.
parent
a19c831b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
62 deletions
+61
-62
focusElem.html
test/data/event/focusElem.html
+9
-9
boxSizing.html
test/data/support/boxSizing.html
+9
-9
testsuite.css
test/data/testsuite.css
+40
-40
queue.js
test/unit/queue.js
+3
-4
No files found.
test/data/event/focusElem.html
View file @
0c927172
<!doctype html>
<!doctype html>
<html>
<html>
<head>
<head>
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
>
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
>
<title>
.focus() (activeElement access #13393)
</title>
<title>
.focus() (activeElement access #13393)
</title>
<script
src=
"../../jquery.js"
></script>
<script
src=
"../../jquery.js"
></script>
</head>
</head>
<body>
<body>
<a
href=
"#"
id=
"frame-link"
></a>
<a
href=
"#"
id=
"frame-link"
></a>
<script>
<script>
jQuery
(
"#frame-link"
).
focus
();
jQuery
(
"#frame-link"
).
focus
();
window
.
parent
.
iframeCallback
(
true
);
window
.
parent
.
iframeCallback
(
true
);
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
test/data/support/boxSizing.html
View file @
0c927172
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<style>
<style>
body
{
body
{
zoom
:
0.87
;
zoom
:
0.87
;
}
}
</style>
</style>
</head>
</head>
<body>
<body>
<script
src=
"../../jquery.js"
></script>
<script
src=
"../../jquery.js"
></script>
<script>
<script>
jQuery
(
function
()
{
jQuery
(
function
()
{
window
.
parent
.
iframeCallback
(
jQuery
.
support
.
boxSizing
);
window
.
parent
.
iframeCallback
(
jQuery
.
support
.
boxSizing
);
});
});
</script>
</script>
</body>
</body>
</html>
</html>
test/data/testsuite.css
View file @
0c927172
/* for testing opacity set in styles in IE */
/* for testing opacity set in styles in IE */
ol
#empty
{
ol
#empty
{
opacity
:
0
;
opacity
:
0
;
filter
:
Alpha
(
opacity
=
0
)
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorStr
=
'#ffff0000'
,
EndColorStr
=
'#ffffffff'
);
filter
:
Alpha
(
opacity
=
0
)
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorStr
=
'#ffff0000'
,
EndColorStr
=
'#ffffffff'
);
}
}
div
#fx-tests
h4
{
div
#fx-tests
h4
{
background
:
red
;
background
:
red
;
}
}
div
#fx-tests
h4
.pass
{
div
#fx-tests
h4
.pass
{
background
:
green
;
background
:
green
;
}
}
div
#fx-tests
div
.box
{
div
#fx-tests
div
.box
{
background
:
red
;
background
:
red
;
overflow
:
hidden
;
overflow
:
hidden
;
border
:
2px
solid
#000
;
border
:
2px
solid
#000
;
}
}
div
#fx-tests
div
.overflow
{
div
#fx-tests
div
.overflow
{
overflow
:
visible
;
overflow
:
visible
;
}
}
div
.inline
{
div
.inline
{
display
:
inline
;
display
:
inline
;
}
}
div
.autoheight
{
div
.autoheight
{
height
:
auto
;
height
:
auto
;
}
}
div
.autowidth
{
div
.autowidth
{
width
:
auto
;
width
:
auto
;
}
}
div
.autoopacity
{
div
.autoopacity
{
opacity
:
auto
;
opacity
:
auto
;
}
}
div
.largewidth
{
div
.largewidth
{
width
:
100px
;
width
:
100px
;
}
}
div
.largeheight
{
div
.largeheight
{
height
:
100px
;
height
:
100px
;
}
}
div
.largeopacity
{
div
.largeopacity
{
filter
:
progid
:
DXImageTransform
.
Microsoft
.
Alpha
(
opacity
=
100
);
filter
:
progid
:
DXImageTransform
.
Microsoft
.
Alpha
(
opacity
=
100
);
}
}
div
.medwidth
{
div
.medwidth
{
width
:
50px
;
width
:
50px
;
}
}
div
.medheight
{
div
.medheight
{
height
:
50px
;
height
:
50px
;
}
}
div
.medopacity
{
div
.medopacity
{
opacity
:
0.5
;
opacity
:
0.5
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
Alpha
(
opacity
=
50
);
filter
:
progid
:
DXImageTransform
.
Microsoft
.
Alpha
(
opacity
=
50
);
}
}
div
.nowidth
{
div
.nowidth
{
width
:
0px
;
width
:
0px
;
}
}
div
.noheight
{
div
.noheight
{
height
:
0px
;
height
:
0px
;
}
}
div
.noopacity
{
div
.noopacity
{
opacity
:
0
;
opacity
:
0
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
Alpha
(
opacity
=
0
);
filter
:
progid
:
DXImageTransform
.
Microsoft
.
Alpha
(
opacity
=
0
);
}
}
div
.hidden
{
div
.hidden
{
display
:
none
;
display
:
none
;
}
}
div
#fx-tests
div
.widewidth
{
div
#fx-tests
div
.widewidth
{
background-repeat
:
repeat-x
;
background-repeat
:
repeat-x
;
}
}
div
#fx-tests
div
.wideheight
{
div
#fx-tests
div
.wideheight
{
background-repeat
:
repeat-y
;
background-repeat
:
repeat-y
;
}
}
div
#fx-tests
div
.widewidth.wideheight
{
div
#fx-tests
div
.widewidth.wideheight
{
background-repeat
:
repeat
;
background-repeat
:
repeat
;
}
}
div
#fx-tests
div
.noback
{
div
#fx-tests
div
.noback
{
background-image
:
none
;
background-image
:
none
;
}
}
.chain-test
,
.chain-test
,
.chain-test
div
{
.chain-test
div
{
width
:
100px
;
width
:
100px
;
height
:
20px
;
height
:
20px
;
position
:
relative
;
position
:
relative
;
float
:
left
;
float
:
left
;
}
}
.chain-test
div
{
.chain-test
div
{
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
left
:
0
;
left
:
0
;
}
}
.chain-test
{
.chain-test
{
background
:
red
;
background
:
red
;
}
}
.chain-test
div
{
.chain-test
div
{
background
:
green
;
background
:
green
;
}
}
.chain-test-out
{
.chain-test-out
{
background
:
green
;
background
:
green
;
}
}
.chain-test-out
div
{
.chain-test-out
div
{
background
:
red
;
background
:
red
;
display
:
none
;
display
:
none
;
}
}
/* tests to ensure jQuery can determine the native display mode of elements
/* tests to ensure jQuery can determine the native display mode of elements
...
...
test/unit/queue.js
View file @
0c927172
...
@@ -3,8 +3,7 @@ module( "queue", { teardown: moduleTeardown });
...
@@ -3,8 +3,7 @@ module( "queue", { teardown: moduleTeardown });
test
(
"queue() with other types"
,
14
,
function
()
{
test
(
"queue() with other types"
,
14
,
function
()
{
stop
();
stop
();
var
defer
,
var
$div
=
jQuery
({}),
$div
=
jQuery
({}),
counter
=
0
;
counter
=
0
;
$div
.
promise
(
"foo"
).
done
(
function
()
{
$div
.
promise
(
"foo"
).
done
(
function
()
{
...
@@ -27,7 +26,7 @@ test( "queue() with other types", 14, function() {
...
@@ -27,7 +26,7 @@ test( "queue() with other types", 14, function() {
equal
(
++
counter
,
4
,
"Dequeuing"
);
equal
(
++
counter
,
4
,
"Dequeuing"
);
});
});
defer
=
$div
.
promise
(
"foo"
).
done
(
function
()
{
$div
.
promise
(
"foo"
).
done
(
function
()
{
equal
(
counter
,
4
,
"Testing previous call to dequeue in deferred"
);
equal
(
counter
,
4
,
"Testing previous call to dequeue in deferred"
);
start
();
start
();
});
});
...
@@ -183,7 +182,7 @@ test("clearQueue() clears the fx queue", function() {
...
@@ -183,7 +182,7 @@ test("clearQueue() clears the fx queue", function() {
});
});
asyncTest
(
"fn.promise() - called when fx queue is empty"
,
3
,
function
()
{
asyncTest
(
"fn.promise() - called when fx queue is empty"
,
3
,
function
()
{
var
foo
=
jQuery
(
"#foo"
).
clone
().
a
ndSelf
(),
var
foo
=
jQuery
(
"#foo"
).
clone
().
a
ddBack
(),
promised
=
false
;
promised
=
false
;
foo
.
queue
(
function
(
next
)
{
foo
.
queue
(
function
(
next
)
{
...
...
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