Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Edited failing test demonstrating userAgent

  • Loading branch information...
commit 300f9a2faa916b2b7371d76888767170e783d8b8 1 parent 740448d
@bnoguchi bnoguchi authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/browser.navigation.test.js
View
8 test/browser.navigation.test.js
@@ -920,13 +920,13 @@ module.exports = {
'test setting user-agent': function(done){
var browser = tobi.createBrowser(80,'whatsmyuseragent.com');
- browser.get('/', function(res,$){
+ browser.get('http://whatsmyuseragent.com', function(res,$){
res.should.have.status(200);
- $('#MainBox p strong:first').should.have.text('Your User Agent:');
- browser.userAgent = ' Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.100 Safari/534.30';
+ $('h4:first').should.have.text('');
+ browser.userAgent = 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.100 Safari/534.30';
browser.get('/', function(res,$){
res.should.have.status(200);
- $('#MainBox p strong:first').should.have.text('Your User Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.100 Safari/534.30');
+ $('h4:first').should.have.text('Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.100 Safari/534.30');
done();
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.