@@ -2,10 +2,11 @@ import * as assert from 'assert';
2
2
import * as path from 'path' ;
3
3
import * as vscode from 'vscode' ;
4
4
import { cljParser } from '../src/cljParser' ;
5
+ import { setLongTimeout } from './utils' ;
5
6
6
7
const testFolderLocation = '/../../test/documents/' ;
7
8
8
- suite ( 'cljParser.getNamespace' , ( ) => {
9
+ suite ( 'cljParser.getNamespace' , function ( ) {
9
10
let cases = [
10
11
[ 'user' , '' ] ,
11
12
[ 'foo' , '(ns foo)' ] ,
@@ -34,8 +35,9 @@ suite('cljParser.getNamespace', () => {
34
35
}
35
36
} ) ;
36
37
37
- suite ( 'cljParser.getCurrentBlock' , ( ) => {
38
+ suite ( 'cljParser.getCurrentBlock' , function ( ) {
38
39
// title, line, character, expected
40
+ setLongTimeout ( this ) ;
39
41
let cases : [ string , number , number , string | undefined ] [ ] = [
40
42
[ 'Position on the same line' , 16 , 9 , '(prn "test")' ] ,
41
43
[ 'Position at the middle of multiline block' , 22 , 5 ,
@@ -67,8 +69,9 @@ suite('cljParser.getCurrentBlock', () => {
67
69
testBlockSelection ( 'Eval current block' , cljParser . getCurrentBlock , 'evalBlock.clj' , cases ) ;
68
70
} ) ;
69
71
70
- suite ( 'cljParser.getOuterBlock' , ( ) => {
72
+ suite ( 'cljParser.getOuterBlock' , function ( ) {
71
73
// title, line, character, expected
74
+ setLongTimeout ( this ) ;
72
75
let cases : [ string , number , number , string | undefined ] [ ] = [
73
76
[ 'Get outermost block of function definition' , 11 , 20 ,
74
77
'(defn new-system-dev\n' +
0 commit comments