testModule('queryAll', function(SelectorSet) {
  'use strict';

  test('id', function() {
    var set = new SelectorSet();
    set.add('#foo');

    var fixture1 = document.getElementById('fixture1');
    var el = fixture1.querySelector('#foo');
    var results = set.queryAll(fixture1);
    equal(results.length, 1);
    equal(results[0].selector, '#foo');
    equal(results[0].elements[0], el);
  });

  test('class', function() {
    var set = new SelectorSet();
    set.add('.foo');

    var fixture1 = document.getElementById('fixture1');
    var el = fixture1.querySelector('.foo');
    var results = set.queryAll(fixture1);
    equal(results.length, 1);
    equal(results[0].selector, '.foo');
    equal(results[0].elements[0], el);
  });

  test('tag', function() {
    var set = new SelectorSet();
    set.add('foo');

    var fixture1 = document.getElementById('fixture1');
    var el = fixture1.querySelector('foo');
    var results = set.queryAll(fixture1);
    equal(results.length, 1);
    equal(results[0].selector, 'foo');
    equal(results[0].elements[0], el);
  });

  test('id and class', function() {
    var set = new SelectorSet();
    set.add('#foo');
    set.add('.foo');

    var fixture1 = document.getElementById('fixture1');
    var el1 = fixture1.querySelector('#foo');
    var el2 = fixture1.querySelector('.foo');
    var results = set.queryAll(fixture1);
    equal(results.length, 2);
    equal(results[0].selector, '#foo');
    equal(results[0].elements[0], el1);
    equal(results[1].selector, '.foo');
    equal(results[1].elements[0], el2);
  });
});

@@ -1575,13 +1575,857 @@
 );%0A  %7D);
+%0A%0A  test('compound id and class match', function() %7B%0A    var set = new SelectorSet();%0A    set.add('.foo, .bar');%0A    set.add('#foo, #bar');%0A    set.add('#foo, .foo');%0A    set.add('#bar, .bar');%0A%0A    var fixture1 = document.getElementById('fixture1');%0A    var el1 = fixture1.querySelector('#foo');%0A    var el2 = fixture1.querySelector('.foo');%0A    var results = set.queryAll(fixture1);%0A    equal(results.length, 3);%0A    equal(results%5B0%5D.selector, '.foo, .bar');%0A    equal(results%5B0%5D.elements.length, 1);%0A    equal(results%5B0%5D.elements%5B0%5D, el2);%0A    equal(results%5B1%5D.selector, '#foo, #bar');%0A    equal(results%5B1%5D.elements.length, 1);%0A    equal(results%5B1%5D.elements%5B0%5D, el1);%0A    equal(results%5B2%5D.selector, '#foo, .foo');%0A    equal(results%5B2%5D.elements.length, 2);%0A    equal(results%5B2%5D.elements%5B0%5D, el1);%0A    equal(results%5B2%5D.elements%5B1%5D, el2);%0A  %7D);
 %0A%7D);%0A

Test compound id and class