var trumpet = require('../');
var fs = require('fs');
var test = require('tape');
var through = require('through');

test('rebase selector', function (t) {
    t.plan(1);
    
    var tr = trumpet();
    var elem = tr.select('.c');
    elem.getAttribute('class', function (value) {
        t.equal(value, 'c');
    });
    fs.createReadStream(__dirname + '/rebase.html').pipe(tr);
});

@@ -116,22 +116,40 @@
 %0A%0Atest('
-rebase
+wonky duplicated classes
  selecto
@@ -289,24 +289,24 @@
 n (value) %7B%0A
-
         t.eq
@@ -392,12 +392,295 @@
 pe(tr);%0A%7D);%0A
+%0Atest('rebase selector', function (t) %7B%0A    t.plan(1);%0A    %0A    var tr = trumpet();%0A    var elem = tr.select('.a %3E .b %3E * %3E .d');%0A    elem.getAttribute('class', function (value) %7B%0A        t.equal(value, 'd');%0A    %7D);%0A    fs.createReadStream(__dirname + '/rebase.html').pipe(tr);%0A%7D);%0A

rebase selector test just works somehow