Skip to content

Commit bfc4fe7

Browse files
committed
Merge pull request nwjs#1089 from richardcypher/fixuseragent
[test]fix the file path of user-agent-app test
2 parents 6578070 + f7d1082 commit bfc4fe7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/automatic_tests/user-agent-app/mocha_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('user-agent-app', function() {
1313
appPath: path.join(global.tests_dir, 'user-agent-app'),
1414
end: function(data, app) {
1515
result = true;
16-
var package_info = JSON.parse(fs.readFileSync('package.json', 'utf8'));
16+
var package_info = JSON.parse(fs.readFileSync('automatic_tests/user-agent-app/package.json', 'utf8'));
1717
app.kill();
1818
if (data == package_info.name) {
1919
done();
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "user agent app",
3-
"main": "index.html"
4-
}
5-
3+
"main": "index.html",
4+
"user-agent": "%name/%nwver/%ver/%webkit_ver/%osinfo"
5+
}

0 commit comments

Comments
 (0)