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:
264ffbc
)
Slightly altered a test that was causing IE7 in some cases to hard crash. The test...
author
David Serduke
<davidserduke@gmail.com>
Sun, 18 Nov 2007 00:46:58 +0000
(
00:46
+0000)
committer
David Serduke
<davidserduke@gmail.com>
Sun, 18 Nov 2007 00:46:58 +0000
(
00:46
+0000)
test/unit/core.js
patch
|
blob
|
history
diff --git
a/test/unit/core.js
b/test/unit/core.js
index
18f1bb5
..
c7f1850
100644
(file)
--- a/
test/unit/core.js
+++ b/
test/unit/core.js
@@
-883,11
+883,11
@@
var scriptorder = 0;
test("html(String)", function() {
expect(10);
- var div = $("div");
+ var div = $("#main > div");
div.html("<b>test</b>");
var pass = true;
for ( var i = 0; i < div.size(); i++ ) {
- if ( div.get(i).childNodes.length == 0 ) pass = false;
+ if ( div.get(i).childNodes.length != 1 ) pass = false;
}
ok( pass, "Set HTML" );