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
f7f4ef91
Commit
f7f4ef91
authored
Apr 12, 2011
by
Dave Methvin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix_suite_fails' of
https://github.com/timmywil/jquery
into timmywil-fix_suite_fails
parents
0032e30f
69866fd2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
12 deletions
+14
-12
testsuite.css
test/data/testsuite.css
+3
-0
index.html
test/index.html
+0
-5
attributes.js
test/unit/attributes.js
+9
-7
event.js
test/unit/event.js
+2
-0
No files found.
test/data/testsuite.css
View file @
f7f4ef91
...
...
@@ -109,3 +109,6 @@ div#show-tests * { display: none; }
#nothiddendiv
{
font-size
:
16px
;
}
#nothiddendivchild
.em
{
font-size
:
2em
;
}
#nothiddendivchild
.prct
{
font-size
:
150%
;
}
/* For testing type on vml in IE #7071 */
v
\
:oval
{
behavior
:
url(#default#VML)
;
display
:
inline-block
;
}
\ No newline at end of file
test/index.html
View file @
f7f4ef91
...
...
@@ -45,10 +45,6 @@
<script
src=
"unit/effects.js"
></script>
<script
src=
"unit/offset.js"
></script>
<script
src=
"unit/dimensions.js"
></script>
<!-- For testing http://bugs.jquery.com/ticket/7071 -->
<xml:namespace
ns=
"urn:schemas-microsoft-com:vml"
prefix=
"v"
/>
<style>v
\
:oval
{
behavior
:
url(#default#VML)
;
display
:
inline-block
;
}
</style>
</head>
<body
id=
"body"
>
...
...
@@ -151,7 +147,6 @@
<span
id=
"test.foo[5]bar"
class=
"test.foo[5]bar"
></span>
<foo
_bar
id=
"foobar"
>
test element
</foo
_bar
>
<v:oval
id=
"oval"
style=
"width:100pt;height:75pt;"
fillcolor=
"red"
>
</v:oval>
</form>
<b
id=
"floatTest"
>
Float test.
</b>
<iframe
id=
"iframe"
name=
"iframe"
></iframe>
...
...
test/unit/attributes.js
View file @
f7f4ef91
...
...
@@ -492,6 +492,7 @@ test("val()", function() {
var
testVal
=
function
(
valueObj
)
{
expect
(
8
);
QUnit
.
reset
();
jQuery
(
"#text1"
).
val
(
valueObj
(
"test"
));
equals
(
document
.
getElementById
(
"text1"
).
value
,
"test"
,
"Check for modified (via val(String)) value of input element"
);
...
...
@@ -504,15 +505,16 @@ var testVal = function(valueObj) {
jQuery
(
"#text1"
).
val
(
valueObj
(
null
));
equals
(
document
.
getElementById
(
"text1"
).
value
,
""
,
"Check for modified (via val(null)) value of input element"
);
jQuery
(
"#select1"
).
val
(
valueObj
(
"3"
));
equals
(
jQuery
(
"#select1"
).
val
(),
"3"
,
"Check for modified (via val(String)) value of select element"
);
var
$select1
=
jQuery
(
"#select1"
);
$select1
.
val
(
valueObj
(
"3"
));
equals
(
$select1
.
val
(),
"3"
,
"Check for modified (via val(String)) value of select element"
);
jQuery
(
"#select1"
)
.
val
(
valueObj
(
2
));
equals
(
jQuery
(
"#select1"
)
.
val
(),
"2"
,
"Check for modified (via val(Number)) value of select element"
);
$select1
.
val
(
valueObj
(
2
));
equals
(
$select1
.
val
(),
"2"
,
"Check for modified (via val(Number)) value of select element"
);
jQuery
(
"#select1"
)
.
append
(
"<option value='4'>four</option>"
);
jQuery
(
"#select1"
)
.
val
(
valueObj
(
4
));
equals
(
jQuery
(
"#select1"
)
.
val
(),
"4"
,
"Should be possible to set the val() to a newly created option"
);
$select1
.
append
(
"<option value='4'>four</option>"
);
$select1
.
val
(
valueObj
(
4
));
equals
(
$select1
.
val
(),
"4"
,
"Should be possible to set the val() to a newly created option"
);
// using contents will get comments regular, text, and comment nodes
var
j
=
jQuery
(
"#nonnodes"
).
contents
();
...
...
test/unit/event.js
View file @
f7f4ef91
...
...
@@ -778,6 +778,8 @@ test("trigger() shortcuts", function() {
elem
.
remove
();
// test that special handlers do not blow up with VML elements (#7071)
jQuery
(
'<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v" />'
).
appendTo
(
'head'
);
jQuery
(
'<v:oval id="oval" style="width:100pt;height:75pt;" fillcolor="red"> </v:oval>'
).
appendTo
(
'#form'
);
jQuery
(
"#oval"
).
click
().
keydown
();
});
...
...
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