-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working on the test suite, only failing 45 out of the 11329 test cases
- Loading branch information
Showing
9 changed files
with
64,199 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env node | ||
|
||
var request = require('request') | ||
, path = require('path') | ||
, fs = require('fs'); | ||
|
||
var files = { | ||
'pgts.yaml': 'http://ua-parser.googlecode.com/svn/trunk/test/resources/pgts_browser_list.yaml' | ||
, 'testcases.yaml': 'http://ua-parser.googlecode.com/svn/trunk/test/resources/test_user_agent_parser.yaml' | ||
, 'firefoxes.yaml': 'http://ua-parser.googlecode.com/svn/trunk/test/resources/firefox_user_agent_strings.yaml' | ||
}; | ||
|
||
/** | ||
* Update the fixtures | ||
*/ | ||
|
||
Object.keys(files).forEach(function (key) { | ||
request(files[key], function response (err, res, data) { | ||
if (err || res.statusCode !== 200) return console.error('failed to update'); | ||
|
||
console.log('downloaded', files[key]); | ||
fs.writeFileSync(path.join(__dirname, '..', 'tests', 'fixtures', key), data); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.