Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
test: use common.skip
Browse files Browse the repository at this point in the history
  • Loading branch information
joaocgreis committed May 2, 2017
1 parent 08c5c38 commit 1bde7e1
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions test/abort/test-abort-uncaught-exception.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const spawn = require('child_process').spawn;
const node = process.execPath;

if (common.isChakraEngine) {
console.log(`1..0 # Skipped: This test is disabled for chakra engine
because it depends on v8-option --abort-on-uncaught-exception`);
common.skip('This test is disabled for chakra engine because it depends ' +
'on v8-option --abort-on-uncaught-exception');
return;
}

Expand Down
6 changes: 3 additions & 3 deletions test/addons/null-buffer-neuter/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const common = require('../../common');
const binding = require(`./build/${common.buildType}/binding`);

if (common.isChakraEngine) {
console.log(`1..0 # Skipped: This test is disabled for chakra engine
because it depends on v8 GC behavior. Chakra GC may find reference-like
data on native stack and may not do the GC as expected.`);
common.skip('This test is disabled for chakra engine because it depends ' +
'on v8 GC behavior. Chakra GC may find reference-like data ' +
'on native stack and may not do the GC as expected.');
return;
}

Expand Down
6 changes: 3 additions & 3 deletions test/parallel/test-buffer-regression-649.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const assert = require('assert');
const SlowBuffer = require('buffer').SlowBuffer;

if (common.isChakraEngine) {
console.log('1..0 # Skipped: This test is disabled for chakra engine ' +
'because of behavior difference in treating `len` parameter of ArrayBuffer' +
'See https://github.com/Microsoft/ChakraCore/issues/105.');
common.skip('This test is disabled for chakra engine because of behavior ' +
'difference in treating `len` parameter of ArrayBuffer. ' +
'See https://github.com/Microsoft/ChakraCore/issues/105.');
return;
}

Expand Down
4 changes: 2 additions & 2 deletions test/parallel/test-buffer-sharedarraybuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
const common = require('../common');

if (common.isChakraEngine) {
console.log('1..0 # Skipped: This test is disabled for chakra engine ' +
'because SharedArrayBuffer is not yet supported');
common.skip('This test is disabled for chakra engine because ' +
'SharedArrayBuffer is not yet supported');
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const child_process = require('child_process');
const domain = require('domain');

if (common.isChakraEngine) {
console.log(`1..0 # Skipped: This test is disabled for chakra engine
because it depends on v8-option --abort-on-uncaught-exception`);
common.skip('This test is disabled for chakra engine because it depends ' +
'on v8-option --abort-on-uncaught-exception');
return;
}

Expand Down
4 changes: 2 additions & 2 deletions test/parallel/test-domain-with-abort-on-uncaught-exception.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const fs = require('fs');
*/

if (common.isChakraEngine) {
console.log(`1..0 # Skipped: This test is disabled for chakra engine
because it depends on v8-option --abort-on-uncaught-exception`);
common.skip('This test is disabled for chakra engine because it depends ' +
'on v8-option --abort-on-uncaught-exception');
return;
}

Expand Down
4 changes: 2 additions & 2 deletions test/parallel/test-preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const path = require('path');
const childProcess = require('child_process');

if (common.isChakraEngine) {
console.log('1..0 # Skipped: This test is disabled for chakra engine ' +
'because debugger support is not implemented yet.');
common.skip('This test is disabled for chakra engine because debugger ' +
'support is not implemented yet.');
return;
}

Expand Down
4 changes: 2 additions & 2 deletions test/parallel/test-util-format-shared-arraybuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
const common = require('../common');

if (common.isChakraEngine) {
console.log('1..0 # Skipped: This test is disabled for chakra engine ' +
'because SharedArrayBuffer is not yet supported');
common.skip('This test is disabled for chakra engine because ' +
'SharedArrayBuffer is not yet supported');
return;
}

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-v8-flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const v8 = require('v8');
const vm = require('vm');

if (common.isChakraEngine) {
console.log('1..0 # Skipped: This test is disabled for chakra engine.');
common.skip('This test is disabled for chakra engine.');
return;
}

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-v8-version-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const assert = require('assert');
const v8 = require('v8');

if (common.isChakraEngine) {
console.log('1..0 # Skipped: This test is disabled for chakra engine.');
common.skip('This test is disabled for chakra engine.');
return;
}

Expand Down
4 changes: 2 additions & 2 deletions test/parallel/test-vm-debug-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const vm = require('vm');
const spawn = require('child_process').spawn;

if (common.isChakraEngine) {
console.log('1..0 # Skipped: This test is disabled for chakra engine ' +
'because debugger support is not implemented yet.');
common.skip('This test is disabled for chakra engine because debugger ' +
'support is not implemented yet.');
return;
}

Expand Down
4 changes: 2 additions & 2 deletions test/sequential/test-domain-abort-on-uncaught.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const domain = require('domain');
const child_process = require('child_process');

if (common.isChakraEngine) {
console.log(`1..0 # Skipped: This test is disabled for chakra engine
because it depends on v8-option --abort-on-uncaught-exception`);
common.skip('This test is disabled for chakra engine because it depends ' +
'on v8-option --abort-on-uncaught-exception');
return;
}

Expand Down

0 comments on commit 1bde7e1

Please sign in to comment.