Skip to content

Commit

Permalink
Add multiple browser tests back.
Browse files Browse the repository at this point in the history
Since browsers have different capabilities, remove the
use of testBrowser and only force-test the transports
they are known to actually support.
  • Loading branch information
reid committed Sep 10, 2010
1 parent d94217c commit db581b6
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions test/visitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,30 @@ function requestRunner (transport, browser) {
};
}

function testBrowser (browser) {
return {
"for the EventSource test runner": {
topic : httpify(),
"was requested" : requestRunner("eventsource", browser)
}
};
}

var ui = require("../lib/ui");
ui.verbose(1)

vows.describe("Visitors").addBatch({
"A Yeti server visited by the canonical browser" : testBrowser("")
"A Yeti server visited by the canonical browser" : {
"for the default test runner": {
topic : httpify(),
"was requested" : requestRunner("")
}
},
"A Yeti server visited by Safari" : {
"for the XHR test runner": {
topic : httpify(),
"was requested" : requestRunner("xhr", "Safari")
},
"for the EventSource test runner": {
topic : httpify(),
"was requested" : requestRunner("eventsource", "Safari")
}
},
"A Yeti server visited by Chrome" : {
"for the default test runner": {
topic : httpify(),
"was requested" : requestRunner("", "chrome")
}
}
}).export(module);

0 comments on commit db581b6

Please sign in to comment.