Skip to content

Commit ece5380

Browse files
committed
Remove PhantomJS guards in integration tests
1 parent 4f57fd9 commit ece5380

File tree

2 files changed

+36
-40
lines changed

2 files changed

+36
-40
lines changed

test/index.html

+19-21
Original file line numberDiff line numberDiff line change
@@ -33,29 +33,27 @@
3333
<script src="../build/raven.test.js"></script>
3434

3535
<script>
36-
if (!window.PHANTOMJS) {
37-
(function(runner){
38-
var failed = [];
36+
(function(runner){
37+
var failed = [];
3938

40-
runner.on('fail', function(test, err){
41-
failed.push({
42-
title: test.title,
43-
fullTitle: test.fullTitle(),
44-
error: {
45-
message: err.message,
46-
stack: err.stack
47-
}
48-
});
49-
});
39+
runner.on('fail', function(test, err){
40+
failed.push({
41+
title: test.title,
42+
fullTitle: test.fullTitle(),
43+
error: {
44+
message: err.message,
45+
stack: err.stack
46+
}
47+
});
48+
});
5049

51-
runner.on('end', function(){
52-
runner.stats.failed = failed;
53-
if (typeof global !== "undefined") {
54-
global.mochaResults = runner.stats;
55-
}
56-
});
57-
})(mocha.run());
58-
}
50+
runner.on('end', function(){
51+
runner.stats.failed = failed;
52+
if (typeof global !== "undefined") {
53+
global.mochaResults = runner.stats;
54+
}
55+
});
56+
})(mocha.run());
5957
</script>
6058
</body>
6159
</html>

test/integration/index.html

+17-19
Original file line numberDiff line numberDiff line change
@@ -39,28 +39,26 @@
3939
<script src="test.js"></script>
4040

4141
<script>
42-
if (!window.PHANTOMJS) {
43-
(function (runner) {
44-
window.runner = runner;
45-
var failed = [];
42+
(function (runner) {
43+
window.runner = runner;
44+
var failed = [];
4645

47-
runner.on('fail', function (test, err) {
48-
failed.push({
49-
title: test.title,
50-
fullTitle: test.fullTitle(),
51-
error: {
52-
message: err.message,
53-
stack: err.stack
54-
}
55-
});
46+
runner.on('fail', function (test, err) {
47+
failed.push({
48+
title: test.title,
49+
fullTitle: test.fullTitle(),
50+
error: {
51+
message: err.message,
52+
stack: err.stack
53+
}
5654
});
55+
});
5756

58-
runner.on('end', function () {
59-
runner.stats.failed = failed;
60-
window.mochaResults = runner.stats;
61-
});
62-
})(mocha.run());
63-
}
57+
runner.on('end', function () {
58+
runner.stats.failed = failed;
59+
window.mochaResults = runner.stats;
60+
});
61+
})(mocha.run());
6462
</script>
6563
</body>
6664
</html>

0 commit comments

Comments
 (0)