git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5e50079
)
test runner: 2 tests for [5728].
author
Ariel Flesler
<aflesler@gmail.com>
Tue, 17 Jun 2008 19:59:16 +0000
(19:59 +0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Tue, 17 Jun 2008 19:59:16 +0000
(19:59 +0000)
test/unit/core.js
patch
|
blob
|
history
diff --git
a/test/unit/core.js
b/test/unit/core.js
index
a0e7b1f
..
dda7929
100644
(file)
--- a/
test/unit/core.js
+++ b/
test/unit/core.js
@@
-1174,7
+1174,7
@@
test("val(String/Number)", function() {
var scriptorder = 0;
\r
\r
test("html(String)", function() {
\r
var scriptorder = 0;
\r
\r
test("html(String)", function() {
\r
- expect(11);
\r
+ expect(13);
\r
var div = jQuery("#main > div");
\r
div.html("<b>test</b>");
\r
var pass = true;
\r
var div = jQuery("#main > div");
\r
div.html("<b>test</b>");
\r
var pass = true;
\r
@@
-1196,6
+1196,10
@@
test("html(String)", function() {
jQuery("#main select").html("<option>O1</option><option selected='selected'>O2</option><option>O3</option>");
\r
equals( jQuery("#main select").val(), "O2", "Selected option correct" );
\r
\r
jQuery("#main select").html("<option>O1</option><option selected='selected'>O2</option><option>O3</option>");
\r
equals( jQuery("#main select").val(), "O2", "Selected option correct" );
\r
\r
+ var $div = jQuery('<div />');
\r
+ equals( $div.html( 5 ).html(), '5', 'Setting a number as html' );
\r
+ equals( $div.html( 0 ).html(), '0', 'Setting a zero as html' );
\r
+
\r
stop();
\r
\r
jQuery("#main").html('<script type="text/javascript">ok( true, "jQuery().html().evalScripts() Evals Scripts Twice in Firefox, see #975" );</script>');
\r
stop();
\r
\r
jQuery("#main").html('<script type="text/javascript">ok( true, "jQuery().html().evalScripts() Evals Scripts Twice in Firefox, see #975" );</script>');
\r