-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updating depedencie and vscode engine, #300 * updating webpack config to use terser plugin. Cleaning up code, #300 * changed clipboard copy lib, #300
- Loading branch information
Showing
26 changed files
with
1,020 additions
and
1,059 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'use strict'; | ||
|
||
import * as fs from "fs-extra"; | ||
import * as path from "path"; | ||
import { EOL } from "os"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'use strict'; | ||
|
||
export interface Page { | ||
content(activated: Boolean): string | Thenable<string>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'use strict'; | ||
|
||
import { spawnSync } from "child_process"; | ||
import { getGaugeVersionInfo } from '../gaugeVersion'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,27 @@ | ||
import * as assert from 'assert'; | ||
import { commands, Uri, window } from 'vscode'; | ||
import * as path from 'path'; | ||
import vscode = require('vscode'); | ||
import { TextDocument } from 'vscode-languageclient/lib/main'; | ||
import { connect } from 'tls'; | ||
|
||
let testDataPath = path.join(__dirname, '..', '..', 'test', 'testdata', 'sampleProject'); | ||
|
||
suite('Gauge References Tests', () => { | ||
setup(async () => { | ||
await vscode.commands.executeCommand('workbench.action.closeAllEditors'); | ||
await commands.executeCommand('workbench.action.closeAllEditors'); | ||
}); | ||
|
||
test('should show references for step at cursor', async () => { | ||
let specFile = vscode.Uri.file(path.join(testDataPath, 'tests', 'step_implementation.js')); | ||
let editor = await vscode.window.showTextDocument(specFile) | ||
await vscode.commands.executeCommand("workbench.action.focusFirstEditorGroup") | ||
await vscode.commands.executeCommand("cursorMove", { to: 'down', by: 'line', value: 18 }) | ||
let value = await vscode.commands.executeCommand('gauge.showReferences.atCursor') | ||
let implFile = Uri.file(path.join(testDataPath, 'tests', 'step_implementation.js')); | ||
await window.showTextDocument(implFile); | ||
await commands.executeCommand("workbench.action.focusFirstEditorGroup"); | ||
await commands.executeCommand("cursorMove", { to: 'down', by: 'line', value: 18 }); | ||
let value = await commands.executeCommand('gauge.showReferences.atCursor'); | ||
assert.ok(value); | ||
}).timeout(10000); | ||
|
||
test('should not show any reference if cursor is not in step context', async () => { | ||
let specFile = vscode.Uri.file(path.join(testDataPath, 'tests', 'step_implementation.js')); | ||
let editor = await vscode.window.showTextDocument(specFile); | ||
await vscode.commands.executeCommand("workbench.action.focusFirstEditorGroup"); | ||
await vscode.commands.executeCommand("cursorMove", { to: 'down', by: 'line', value: 20 }); | ||
let value = vscode.commands.executeCommand('gauge.showReferences.atCursor') | ||
await commands.executeCommand("workbench.action.focusFirstEditorGroup"); | ||
await commands.executeCommand("cursorMove", { to: 'down', by: 'line', value: 20 }); | ||
let value = commands.executeCommand('gauge.showReferences.atCursor'); | ||
assert.notEqual(value, true); | ||
}).timeout(10000); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters