0
是否有一些可以通過yml添加的替代瀏覽器測試? 我使用PhantomJS 1.9.2,但結果有點奇怪,並沒有出現在「真正的瀏覽器」...更改Travis-CI中的瀏覽器測試儀
編輯:似乎是一個open issue關於這個錯誤。這個問題的另一個原因...
任何指針?
我使用GruntJS:
module.exports = function(grunt){
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-jasmine-html-spec-runner');
grunt.initConfig({
connect: {
testServerHeadless: {
options: {port: 9001}
},
testServer: {
options: {
port: 9001,
keepalive: true
}
}
},
jasmine: {
core15: {
src: ['http://localhost:9001/myTestsHere...']
}
}
});
grunt.registerTask('test', [
'connect:testServerHeadless',
'jasmine:core15'
]);
};
而且我陽明:
language: node_js
node_js:
- 0.10
感謝您的關注!問題似乎是''setTimeout'在Phantom中表現錯誤。這在我發佈的github問題上很明顯,同樣清楚[在這裏](https://travis-ci.org/mootools/mootools-core),其中所有setTimeout代碼檢查都會崩潰。 – Rikard
我的評論後有任何建議/問題嗎? – Rikard
您是否嘗試過一個人在您引用的Git問題末尾提出的醜陋解決方案(任何機會):https://github.com/ariya/phantomjs/issues/10832#issuecomment-30869416 –