@theia/api-tests 1.34.2 → 1.34.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@theia/api-tests",
3
- "version": "1.34.2",
3
+ "version": "1.34.3",
4
4
  "description": "Theia API tests",
5
5
  "dependencies": {
6
- "@theia/core": "1.34.2"
6
+ "@theia/core": "1.34.3"
7
7
  },
8
8
  "license": "EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0",
9
9
  "repository": {
@@ -20,5 +20,5 @@
20
20
  "publishConfig": {
21
21
  "access": "public"
22
22
  },
23
- "gitHead": "dba940bd8c0f9f4b324dad0e90d570d499456f60"
23
+ "gitHead": "a6cf9fe96b1624d6e27a11dce2ebdeae820478e5"
24
24
  }
@@ -1,21 +1,21 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2020 TypeFox and others.
3
- //
4
- // This program and the accompanying materials are made available under the
5
- // terms of the Eclipse Public License v. 2.0 which is available at
6
- // http://www.eclipse.org/legal/epl-2.0.
7
- //
8
- // This Source Code may also be made available under the following Secondary
9
- // Licenses when the conditions for such availability set forth in the Eclipse
10
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- // with the GNU Classpath Exception which is available at
12
- // https://www.gnu.org/software/classpath/license.html.
13
- //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- // *****************************************************************************
16
-
17
- interface Window {
18
- theia: {
19
- container: import('inversify').Container
20
- }
21
- }
1
+ // *****************************************************************************
2
+ // Copyright (C) 2020 TypeFox and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+
17
+ interface Window {
18
+ theia: {
19
+ container: import('inversify').Container
20
+ }
21
+ }
@@ -1,53 +1,53 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2020 TypeFox and others.
3
- //
4
- // This program and the accompanying materials are made available under the
5
- // terms of the Eclipse Public License v. 2.0 which is available at
6
- // http://www.eclipse.org/legal/epl-2.0.
7
- //
8
- // This Source Code may also be made available under the following Secondary
9
- // Licenses when the conditions for such availability set forth in the Eclipse
10
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- // with the GNU Classpath Exception which is available at
12
- // https://www.gnu.org/software/classpath/license.html.
13
- //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- // *****************************************************************************
16
-
17
- // @ts-check
18
- describe('animationFrame', function () {
19
- const { assert } = chai;
20
- const { animationFrame } = require('@theia/core/lib/browser/browser');
21
-
22
- class FrameCounter {
23
- constructor() {
24
- this.count = 0;
25
- this.stop = false;
26
- this.run();
27
- }
28
- run() {
29
- requestAnimationFrame(this.nextFrame.bind(this));
30
- }
31
- nextFrame() {
32
- this.count++;
33
- if (!this.stop) {
34
- this.run();
35
- }
36
- }
37
- }
38
-
39
- it('should resolve after one frame', async () => {
40
- const counter = new FrameCounter();
41
- await animationFrame();
42
- counter.stop = true;
43
- assert.equal(counter.count, 1);
44
- });
45
-
46
- it('should resolve after the given number of frames', async () => {
47
- const counter = new FrameCounter();
48
- await animationFrame(10);
49
- counter.stop = true;
50
- assert.equal(counter.count, 10);
51
- });
52
-
53
- });
1
+ // *****************************************************************************
2
+ // Copyright (C) 2020 TypeFox and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+
17
+ // @ts-check
18
+ describe('animationFrame', function () {
19
+ const { assert } = chai;
20
+ const { animationFrame } = require('@theia/core/lib/browser/browser');
21
+
22
+ class FrameCounter {
23
+ constructor() {
24
+ this.count = 0;
25
+ this.stop = false;
26
+ this.run();
27
+ }
28
+ run() {
29
+ requestAnimationFrame(this.nextFrame.bind(this));
30
+ }
31
+ nextFrame() {
32
+ this.count++;
33
+ if (!this.stop) {
34
+ this.run();
35
+ }
36
+ }
37
+ }
38
+
39
+ it('should resolve after one frame', async () => {
40
+ const counter = new FrameCounter();
41
+ await animationFrame();
42
+ counter.stop = true;
43
+ assert.equal(counter.count, 1);
44
+ });
45
+
46
+ it('should resolve after the given number of frames', async () => {
47
+ const counter = new FrameCounter();
48
+ await animationFrame(10);
49
+ counter.stop = true;
50
+ assert.equal(counter.count, 10);
51
+ });
52
+
53
+ });
@@ -1,36 +1,36 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2021 STMicroelectronics and others.
3
- //
4
- // This program and the accompanying materials are made available under the
5
- // terms of the Eclipse Public License v. 2.0 which is available at
6
- // http://www.eclipse.org/legal/epl-2.0.
7
- //
8
- // This Source Code may also be made available under the following Secondary
9
- // Licenses when the conditions for such availability set forth in the Eclipse
10
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- // with the GNU Classpath Exception which is available at
12
- // https://www.gnu.org/software/classpath/license.html.
13
- //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- // *****************************************************************************
16
-
17
- // @ts-check
18
- describe('Contribution filter', function () {
19
- this.timeout(5000);
20
- const { assert } = chai;
21
-
22
- const { CommandRegistry, CommandContribution } = require('@theia/core/lib/common/command');
23
- const { SampleFilteredCommandContribution, SampleFilteredCommand } = require('@theia/api-samples/lib/browser/contribution-filter/sample-filtered-command-contribution');
24
-
25
- const container = window.theia.container;
26
- const commands = container.get(CommandRegistry);
27
-
28
- it('filtered command in container but not in registry', async function () {
29
- const allCommands = container.getAll(CommandContribution);
30
- assert.isDefined(allCommands.find(contribution => contribution instanceof SampleFilteredCommandContribution),
31
- 'SampleFilteredCommandContribution is not bound in container');
32
- const filteredCommand = commands.getCommand(SampleFilteredCommand.FILTERED.id);
33
- assert.isUndefined(filteredCommand, 'SampleFilteredCommandContribution should be filtered out but is present in "CommandRegistry"');
34
- });
35
-
36
- });
1
+ // *****************************************************************************
2
+ // Copyright (C) 2021 STMicroelectronics and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+
17
+ // @ts-check
18
+ describe('Contribution filter', function () {
19
+ this.timeout(5000);
20
+ const { assert } = chai;
21
+
22
+ const { CommandRegistry, CommandContribution } = require('@theia/core/lib/common/command');
23
+ const { SampleFilteredCommandContribution, SampleFilteredCommand } = require('@theia/api-samples/lib/browser/contribution-filter/sample-filtered-command-contribution');
24
+
25
+ const container = window.theia.container;
26
+ const commands = container.get(CommandRegistry);
27
+
28
+ it('filtered command in container but not in registry', async function () {
29
+ const allCommands = container.getAll(CommandContribution);
30
+ assert.isDefined(allCommands.find(contribution => contribution instanceof SampleFilteredCommandContribution),
31
+ 'SampleFilteredCommandContribution is not bound in container');
32
+ const filteredCommand = commands.getCommand(SampleFilteredCommand.FILTERED.id);
33
+ assert.isUndefined(filteredCommand, 'SampleFilteredCommandContribution should be filtered out but is present in "CommandRegistry"');
34
+ });
35
+
36
+ });
@@ -1,132 +1,132 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2021 Ericsson and others.
3
- //
4
- // This program and the accompanying materials are made available under the
5
- // terms of the Eclipse Public License v. 2.0 which is available at
6
- // http://www.eclipse.org/legal/epl-2.0.
7
- //
8
- // This Source Code may also be made available under the following Secondary
9
- // Licenses when the conditions for such availability set forth in the Eclipse
10
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- // with the GNU Classpath Exception which is available at
12
- // https://www.gnu.org/software/classpath/license.html.
13
- //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- // *****************************************************************************
16
-
17
- // @ts-check
18
- describe('file-search', function () {
19
-
20
- const { assert } = chai;
21
-
22
- const Uri = require('@theia/core/lib/common/uri');
23
- const { QuickFileOpenService } = require('@theia/file-search/lib/browser/quick-file-open');
24
- const { CancellationTokenSource } = require('@theia/core/lib/common/cancellation');
25
-
26
- /** @type {import('inversify').Container} */
27
- const container = window['theia'].container;
28
- const quickFileOpenService = container.get(QuickFileOpenService);
29
-
30
- describe('quick-file-open', () => {
31
-
32
- describe('#compareItems', () => {
33
-
34
- /** @type import ('@theia/file-search/lib/browser/quick-file-open').QuickFileOpenService['compareItems']*/
35
- const sortByCompareItems = (a, b) => quickFileOpenService['compareItems'](a, b);
36
-
37
- it('should compare two quick-open-items by `label`', () => {
38
-
39
- /** @type import ('@theia/file-search/lib/browser/quick-file-open').FileQuickPickItem*/
40
- const a = { label: 'a', uri: new Uri.default('b') };
41
- /** @type import ('@theia/file-search/lib/browser/quick-file-open').FileQuickPickItem*/
42
- const b = { label: 'b', uri: new Uri.default('a') };
43
-
44
- assert.deepEqual([a, b].sort(sortByCompareItems), [a, b], 'a should be before b');
45
- assert.deepEqual([b, a].sort(sortByCompareItems), [a, b], 'a should be before b');
46
- assert.equal(quickFileOpenService['compareItems'](a, a), 0, 'items should be equal');
47
- });
48
-
49
- it('should compare two quick-open-items by `uri`', () => {
50
-
51
- /** @type import ('@theia/file-search/lib/browser/quick-file-open').FileQuickPickItem*/
52
- const a = { label: 'a', uri: new Uri.default('a') };
53
- /** @type import ('@theia/file-search/lib/browser/quick-file-open').FileQuickPickItem*/
54
- const b = { label: 'a', uri: new Uri.default('b') };
55
- assert.deepEqual([a, b].sort(sortByCompareItems), [a, b], 'a should be before b');
56
- assert.deepEqual([b, a].sort(sortByCompareItems), [a, b], 'a should be before b');
57
- assert.equal(sortByCompareItems(a, a), 0, 'items should be equal');
58
- });
59
-
60
- it('should not place very good matches above exact matches', () => {
61
- const exactMatch = 'almost_absurdly_long_file_name_with_many_parts.file';
62
- const veryGoodMatch = 'almost_absurdly_long_file_name_with_many_parts_plus_one.file';
63
- quickFileOpenService['filterAndRange'] = { filter: exactMatch };
64
- /** @type import ('@theia/file-search/lib/browser/quick-file-open').FileQuickPickItem*/
65
- const a = { label: exactMatch, uri: new Uri.default(exactMatch) };
66
- /** @type import ('@theia/file-search/lib/browser/quick-file-open').FileQuickPickItem*/
67
- const b = { label: veryGoodMatch, uri: new Uri.default(veryGoodMatch) };
68
- assert.deepEqual([a, b].sort(sortByCompareItems), [a, b], 'a should be before b');
69
- assert.deepEqual([b, a].sort(sortByCompareItems), [a, b], 'a should be before b');
70
- assert.equal(sortByCompareItems(a, a), 0, 'items should be equal');
71
- quickFileOpenService['filterAndRange'] = quickFileOpenService['filterAndRangeDefault'];
72
- });
73
-
74
- });
75
-
76
- describe('#filterAndRange', () => {
77
-
78
- it('should return the default when not searching', () => {
79
- const filterAndRange = quickFileOpenService['filterAndRange'];
80
- assert.equal(filterAndRange, quickFileOpenService['filterAndRangeDefault']);
81
- });
82
-
83
- it('should update when searching', () => {
84
- quickFileOpenService['getPicks']('a:2:1', new CancellationTokenSource().token); // perform a mock search.
85
- const filterAndRange = quickFileOpenService['filterAndRange'];
86
- assert.equal(filterAndRange.filter, 'a');
87
- assert.deepEqual(filterAndRange.range, { start: { line: 1, character: 0 }, end: { line: 1, character: 0 } });
88
- });
89
-
90
- });
91
-
92
- describe('#splitFilterAndRange', () => {
93
-
94
- const expression1 = 'a:2:1';
95
- const expression2 = 'a:2,1';
96
- const expression3 = 'a:2#2';
97
- const expression4 = 'a#2:2';
98
- const expression5 = 'a#2,1';
99
- const expression6 = 'a#2#2';
100
- const expression7 = 'a:2';
101
- const expression8 = 'a#2';
102
-
103
- it('should split the filter correctly for different combinations', () => {
104
- assert.equal((quickFileOpenService['splitFilterAndRange'](expression1).filter), 'a');
105
- assert.equal((quickFileOpenService['splitFilterAndRange'](expression2).filter), 'a');
106
- assert.equal((quickFileOpenService['splitFilterAndRange'](expression3).filter), 'a');
107
- assert.equal((quickFileOpenService['splitFilterAndRange'](expression4).filter), 'a');
108
- assert.equal((quickFileOpenService['splitFilterAndRange'](expression5).filter), 'a');
109
- assert.equal((quickFileOpenService['splitFilterAndRange'](expression6).filter), 'a');
110
- assert.equal((quickFileOpenService['splitFilterAndRange'](expression7).filter), 'a');
111
- assert.equal((quickFileOpenService['splitFilterAndRange'](expression8).filter), 'a');
112
- });
113
-
114
- it('should split the range correctly for different combinations', () => {
115
- const rangeTest1 = { start: { line: 1, character: 0 }, end: { line: 1, character: 0 } };
116
- const rangeTest2 = { start: { line: 1, character: 1 }, end: { line: 1, character: 1 } };
117
-
118
- assert.deepEqual(quickFileOpenService['splitFilterAndRange'](expression1).range, rangeTest1);
119
- assert.deepEqual(quickFileOpenService['splitFilterAndRange'](expression2).range, rangeTest1);
120
- assert.deepEqual(quickFileOpenService['splitFilterAndRange'](expression3).range, rangeTest2);
121
- assert.deepEqual(quickFileOpenService['splitFilterAndRange'](expression4).range, rangeTest2);
122
- assert.deepEqual(quickFileOpenService['splitFilterAndRange'](expression5).range, rangeTest1);
123
- assert.deepEqual(quickFileOpenService['splitFilterAndRange'](expression6).range, rangeTest2);
124
- assert.deepEqual(quickFileOpenService['splitFilterAndRange'](expression7).range, rangeTest1);
125
- assert.deepEqual(quickFileOpenService['splitFilterAndRange'](expression8).range, rangeTest1);
126
- });
127
-
128
- });
129
-
130
- });
131
-
132
- });
1
+ // *****************************************************************************
2
+ // Copyright (C) 2021 Ericsson and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+
17
+ // @ts-check
18
+ describe('file-search', function () {
19
+
20
+ const { assert } = chai;
21
+
22
+ const Uri = require('@theia/core/lib/common/uri');
23
+ const { QuickFileOpenService } = require('@theia/file-search/lib/browser/quick-file-open');
24
+ const { CancellationTokenSource } = require('@theia/core/lib/common/cancellation');
25
+
26
+ /** @type {import('inversify').Container} */
27
+ const container = window['theia'].container;
28
+ const quickFileOpenService = container.get(QuickFileOpenService);
29
+
30
+ describe('quick-file-open', () => {
31
+
32
+ describe('#compareItems', () => {
33
+
34
+ /** @type import ('@theia/file-search/lib/browser/quick-file-open').QuickFileOpenService['compareItems']*/
35
+ const sortByCompareItems = (a, b) => quickFileOpenService['compareItems'](a, b);
36
+
37
+ it('should compare two quick-open-items by `label`', () => {
38
+
39
+ /** @type import ('@theia/file-search/lib/browser/quick-file-open').FileQuickPickItem*/
40
+ const a = { label: 'a', uri: new Uri.default('b') };
41
+ /** @type import ('@theia/file-search/lib/browser/quick-file-open').FileQuickPickItem*/
42
+ const b = { label: 'b', uri: new Uri.default('a') };
43
+
44
+ assert.deepEqual([a, b].sort(sortByCompareItems), [a, b], 'a should be before b');
45
+ assert.deepEqual([b, a].sort(sortByCompareItems), [a, b], 'a should be before b');
46
+ assert.equal(quickFileOpenService['compareItems'](a, a), 0, 'items should be equal');
47
+ });
48
+
49
+ it('should compare two quick-open-items by `uri`', () => {
50
+
51
+ /** @type import ('@theia/file-search/lib/browser/quick-file-open').FileQuickPickItem*/
52
+ const a = { label: 'a', uri: new Uri.default('a') };
53
+ /** @type import ('@theia/file-search/lib/browser/quick-file-open').FileQuickPickItem*/
54
+ const b = { label: 'a', uri: new Uri.default('b') };
55
+ assert.deepEqual([a, b].sort(sortByCompareItems), [a, b], 'a should be before b');
56
+ assert.deepEqual([b, a].sort(sortByCompareItems), [a, b], 'a should be before b');
57
+ assert.equal(sortByCompareItems(a, a), 0, 'items should be equal');
58
+ });
59
+
60
+ it('should not place very good matches above exact matches', () => {
61
+ const exactMatch = 'almost_absurdly_long_file_name_with_many_parts.file';
62
+ const veryGoodMatch = 'almost_absurdly_long_file_name_with_many_parts_plus_one.file';
63
+ quickFileOpenService['filterAndRange'] = { filter: exactMatch };
64
+ /** @type import ('@theia/file-search/lib/browser/quick-file-open').FileQuickPickItem*/
65
+ const a = { label: exactMatch, uri: new Uri.default(exactMatch) };
66
+ /** @type import ('@theia/file-search/lib/browser/quick-file-open').FileQuickPickItem*/
67
+ const b = { label: veryGoodMatch, uri: new Uri.default(veryGoodMatch) };
68
+ assert.deepEqual([a, b].sort(sortByCompareItems), [a, b], 'a should be before b');
69
+ assert.deepEqual([b, a].sort(sortByCompareItems), [a, b], 'a should be before b');
70
+ assert.equal(sortByCompareItems(a, a), 0, 'items should be equal');
71
+ quickFileOpenService['filterAndRange'] = quickFileOpenService['filterAndRangeDefault'];
72
+ });
73
+
74
+ });
75
+
76
+ describe('#filterAndRange', () => {
77
+
78
+ it('should return the default when not searching', () => {
79
+ const filterAndRange = quickFileOpenService['filterAndRange'];
80
+ assert.equal(filterAndRange, quickFileOpenService['filterAndRangeDefault']);
81
+ });
82
+
83
+ it('should update when searching', () => {
84
+ quickFileOpenService['getPicks']('a:2:1', new CancellationTokenSource().token); // perform a mock search.
85
+ const filterAndRange = quickFileOpenService['filterAndRange'];
86
+ assert.equal(filterAndRange.filter, 'a');
87
+ assert.deepEqual(filterAndRange.range, { start: { line: 1, character: 0 }, end: { line: 1, character: 0 } });
88
+ });
89
+
90
+ });
91
+
92
+ describe('#splitFilterAndRange', () => {
93
+
94
+ const expression1 = 'a:2:1';
95
+ const expression2 = 'a:2,1';
96
+ const expression3 = 'a:2#2';
97
+ const expression4 = 'a#2:2';
98
+ const expression5 = 'a#2,1';
99
+ const expression6 = 'a#2#2';
100
+ const expression7 = 'a:2';
101
+ const expression8 = 'a#2';
102
+
103
+ it('should split the filter correctly for different combinations', () => {
104
+ assert.equal((quickFileOpenService['splitFilterAndRange'](expression1).filter), 'a');
105
+ assert.equal((quickFileOpenService['splitFilterAndRange'](expression2).filter), 'a');
106
+ assert.equal((quickFileOpenService['splitFilterAndRange'](expression3).filter), 'a');
107
+ assert.equal((quickFileOpenService['splitFilterAndRange'](expression4).filter), 'a');
108
+ assert.equal((quickFileOpenService['splitFilterAndRange'](expression5).filter), 'a');
109
+ assert.equal((quickFileOpenService['splitFilterAndRange'](expression6).filter), 'a');
110
+ assert.equal((quickFileOpenService['splitFilterAndRange'](expression7).filter), 'a');
111
+ assert.equal((quickFileOpenService['splitFilterAndRange'](expression8).filter), 'a');
112
+ });
113
+
114
+ it('should split the range correctly for different combinations', () => {
115
+ const rangeTest1 = { start: { line: 1, character: 0 }, end: { line: 1, character: 0 } };
116
+ const rangeTest2 = { start: { line: 1, character: 1 }, end: { line: 1, character: 1 } };
117
+
118
+ assert.deepEqual(quickFileOpenService['splitFilterAndRange'](expression1).range, rangeTest1);
119
+ assert.deepEqual(quickFileOpenService['splitFilterAndRange'](expression2).range, rangeTest1);
120
+ assert.deepEqual(quickFileOpenService['splitFilterAndRange'](expression3).range, rangeTest2);
121
+ assert.deepEqual(quickFileOpenService['splitFilterAndRange'](expression4).range, rangeTest2);
122
+ assert.deepEqual(quickFileOpenService['splitFilterAndRange'](expression5).range, rangeTest1);
123
+ assert.deepEqual(quickFileOpenService['splitFilterAndRange'](expression6).range, rangeTest2);
124
+ assert.deepEqual(quickFileOpenService['splitFilterAndRange'](expression7).range, rangeTest1);
125
+ assert.deepEqual(quickFileOpenService['splitFilterAndRange'](expression8).range, rangeTest1);
126
+ });
127
+
128
+ });
129
+
130
+ });
131
+
132
+ });