mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-26 11:10:25 +00:00
18 lines
517 B
JavaScript
18 lines
517 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"
|
|
}, 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();
|
|
});
|
|
});
|
|
});
|