rem: test("attr(String) in XML Files", function() { expect(2); stop(); $.get("data/dashboard.xml", function(xml) { ok( $("locations", xml).attr("class") == "foo", "Check class attribute in XML document" ); ok( $("location", xml).attr("for") == "bar", "Check for attribute in XML document" ); start(); }); }); 
add: test("index(Object)", function() { expect(8); ok( $([window, document]).index(window) == 0, "Check for index of elements" ); ok( $([window, document]).index(document) == 1, "Check for index of elements" ); var inputElements = $('#radio1,#radio2,#check1,#check2'); ok( inputElements.index(document.getElementById('radio1')) == 0, "Check for index of elements" ); ok( inputElements.index(document.getElementById('radio2')) == 1, "Check for index of elements" ); ok( inputElements.index(document.getElementById('check1')) == 2, "Check for index of elements" ); ok( inputElements.index(document.getElementById('check2')) == 3, "Check for index of elements" ); ok( inputElements.index(window) == -1, "Check for not found index" ); ok( inputElements.index(document) == -1, "Check for not found index" ); }); 
context:     test("attr(String) in XML Files", function() {        expect(2);        stop();        $.get("data/dashboard.xml", function(xml) {            ok( $("locations", xml).attr("class") == "foo", "Check class attribute in XML document" );            ok( $("location", xml).attr("for") == "bar", "Check for attribute in XML document" );            start();        });    });
meta: 2798	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2798/1be558203961c43043d6e9de3341e8bb9c3dcbf3/core.js/clean/test/unit/core.js