rem: test("attr(String, Object) - Loaded via XML document", function() { expect(2); stop(); $.get('data/dashboard.xml', function(xml) { var titles = []; $('tab', xml).each(function() { titles.push($(this).attr('title')); }); ok( titles[0] == 'Location', 'attr() in XML context: Check first title' ); ok( titles[1] == 'Users', 'attr() in XML context: Check second title' ); start(); }); }); 
add: $("div").attr({foo: 'baz', zoo: 'ping'}).each(function(){ if ( this.getAttribute('foo') != "baz" && this.getAttribute('zoo') != "ping" ) pass = false; }); 
context:     test("attr(String, Object) - Loaded via XML document", function() {        expect(2);        stop();        $.get('data/dashboard.xml', function(xml) {               var titles = [];              $('tab', xml).each(function() {                    titles.push($(this).attr('title'));              });              ok( titles[0] == 'Location', 'attr() in XML context: Check first title' );              ok( titles[1] == 'Users', 'attr() in XML context: Check second title' );              start();        });    });
meta: 3217	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3217/1be558203961c43043d6e9de3341e8bb9c3dcbf3/core.js/clean/test/unit/core.js