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:
f796ad1
)
Simplified the XML selector test (save the result).
author
John Resig
<jeresig@gmail.com>
Mon, 5 Jan 2009 21:04:15 +0000
(21:04 +0000)
committer
John Resig
<jeresig@gmail.com>
Mon, 5 Jan 2009 21:04:15 +0000
(21:04 +0000)
test/unit/core.js
patch
|
blob
|
history
diff --git
a/test/unit/core.js
b/test/unit/core.js
index
07011e8
..
f49b676
100644
(file)
--- a/
test/unit/core.js
+++ b/
test/unit/core.js
@@
-291,9
+291,10
@@
test("jQuery(selector, xml).text(str) - Loaded via XML document", function() {
stop();
jQuery.get('data/dashboard.xml', function(xml) {
// tests for #1419 where IE was a problem
stop();
jQuery.get('data/dashboard.xml', function(xml) {
// tests for #1419 where IE was a problem
- equals( jQuery("tab:first", xml).text(), "blabla", "Verify initial text correct" );
- jQuery("tab:first", xml).text("newtext");
- equals( jQuery("tab:first", xml).text(), "newtext", "Verify new text correct" );
+ var tab = jQuery("tab", xml).eq(0);
+ equals( tab.text(), "blabla", "Verify initial text correct" );
+ tab.text("newtext");
+ equals( tab.text(), "newtext", "Verify new text correct" );
start();
});
});
start();
});
});