Commit c6de039b authored by John Resig's avatar John Resig

Simplified the XML selector test (save the result).

parent f796ad14
...@@ -291,9 +291,10 @@ test("jQuery(selector, xml).text(str) - Loaded via XML document", function() { ...@@ -291,9 +291,10 @@ test("jQuery(selector, xml).text(str) - Loaded via XML document", function() {
stop(); stop();
jQuery.get('data/dashboard.xml', function(xml) { jQuery.get('data/dashboard.xml', function(xml) {
// tests for #1419 where IE was a problem // tests for #1419 where IE was a problem
equals( jQuery("tab:first", xml).text(), "blabla", "Verify initial text correct" ); var tab = jQuery("tab", xml).eq(0);
jQuery("tab:first", xml).text("newtext"); equals( tab.text(), "blabla", "Verify initial text correct" );
equals( jQuery("tab:first", xml).text(), "newtext", "Verify new text correct" ); tab.text("newtext");
equals( tab.text(), "newtext", "Verify new text correct" );
start(); start();
}); });
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment