mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-09 23:34:42 +00:00
WIP: sauce-test
This commit is contained in:
parent
5c3cdf767b
commit
c12cc7a310
3 changed files with 23 additions and 2 deletions
|
|
@ -16,4 +16,4 @@ before_script:
|
||||||
- grunt webserver > /dev/null &
|
- grunt webserver > /dev/null &
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- grunt test --browsers ./sauce_firefox.sh --reporters=dots
|
- node ./sauce-test.js
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,10 @@
|
||||||
"shelljs": "0.1.2",
|
"shelljs": "0.1.2",
|
||||||
"karma": "0.8.4",
|
"karma": "0.8.4",
|
||||||
"yaml-js": "0.0.5",
|
"yaml-js": "0.0.5",
|
||||||
"showdown": "0.3.1"
|
"showdown": "0.3.1",
|
||||||
|
"wd": "*",
|
||||||
|
"assert": "*"
|
||||||
|
|
||||||
},
|
},
|
||||||
"licenses": [
|
"licenses": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
18
sauce-test.js
Normal file
18
sauce-test.js
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
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();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
Loading…
Reference in a new issue