});\r
\r
test("is(String)", function() {\r
- expect(22);\r
+ expect(26);\r
ok( $('#form').is('form'), 'Check for element: A form must be a form' );\r
ok( !$('#form').is('div'), 'Check for element: A form is not a div' );\r
ok( $('#mark').is('.blog'), 'Check for class: Expected class "blog"' );\r
ok( !$('#foo').is(null), 'Expected false for an invalid expression - null' );\r
ok( !$('#foo').is(''), 'Expected false for an invalid expression - ""' );\r
ok( !$('#foo').is(undefined), 'Expected false for an invalid expression - undefined' );\r
+ \r
+ // test is() with comma-seperated expressions\r
+ ok( $('#en').is('[@lang="en"],[@lang="de"]'), 'Check for lang attribute: Expecte en or de' );\r
+ ok( $('#en').is('[@lang="de"],[@lang="en"]'), 'Check for lang attribute: Expecte en or de' );\r
+ ok( $('#en').is('[@lang="en"] , [@lang="de"]'), 'Check for lang attribute: Expecte en or de' );\r
+ ok( $('#en').is('[@lang="de"] , [@lang="en"]'), 'Check for lang attribute: Expecte en or de' );\r
});\r
\r
test("$.extend(Object, Object)", function() {\r