mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
21 lines
634 B
JavaScript
21 lines
634 B
JavaScript
var wd = require('wd')
|
|
, assert = require('assert')
|
|
, browser = wd.remote("ondemand.saucelabs.com", 80,
|
|
process.env.SAUCE_USER_NAME,
|
|
process.env.SAUCE_ACCESS_KEY)
|
|
|
|
|
|
browser.init({
|
|
browserName:'chrome'
|
|
, tags : ["examples"]
|
|
, name: "This is an example test from Travis"
|
|
, "tunnel-identifier": process.env.TRAVIS_JOB_NUMBER
|
|
}, function() {
|
|
|
|
browser.get("http://localhost:8000/build/docs/api", function() {
|
|
browser.title(function(err, title) {
|
|
assert.ok(~title.indexOf('AngularJS: API Reference'), 'Wrong title!');
|
|
browser.quit();
|
|
});
|
|
});
|
|
});
|