mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-25 04:36:23 +00:00
tsfmt - extensions/vscode-colorize-tests
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
'use strict';
|
||||
|
||||
import * as assert from 'assert';
|
||||
import {commands, Uri} from 'vscode';
|
||||
import {join, basename, normalize, dirname} from 'path';
|
||||
import { commands, Uri } from 'vscode';
|
||||
import { join, basename, normalize, dirname } from 'path';
|
||||
import * as fs from 'fs';
|
||||
|
||||
function assertUnchangedTokens(testFixurePath:string, done) {
|
||||
function assertUnchangedTokens(testFixurePath: string, done) {
|
||||
let fileName = basename(testFixurePath);
|
||||
|
||||
return commands.executeCommand('_workbench.captureSyntaxTokens', Uri.file(testFixurePath)).then(data => {
|
||||
@@ -47,7 +47,7 @@ suite("colorization", () => {
|
||||
let fixturesFiles = fs.readdirSync(extensionColorizeFixturePath);
|
||||
fixturesFiles.forEach(fixturesFile => {
|
||||
// define a test for each fixture
|
||||
test(extension + '-' + fixturesFile, function(done) {
|
||||
test(extension + '-' + fixturesFile, function (done) {
|
||||
assertUnchangedTokens(join(extensionColorizeFixturePath, fixturesFile), done);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -25,4 +25,4 @@ testRunner.configure({
|
||||
timeout: 10000
|
||||
});
|
||||
|
||||
export= testRunner;
|
||||
export = testRunner;
|
||||
@@ -5,9 +5,9 @@
|
||||
|
||||
declare function run(): void;
|
||||
|
||||
declare function suite(name: string, fn: (err?)=>void);
|
||||
declare function test(name: string, fn: (done?: (err?)=>void)=>void);
|
||||
declare function suiteSetup(fn: (done?: (err?)=>void)=>void);
|
||||
declare function suiteTeardown(fn: (done?: (err?)=>void)=>void);
|
||||
declare function setup(fn: (done?: (err?)=>void)=>void);
|
||||
declare function teardown(fn: (done?: (err?)=>void)=>void);
|
||||
declare function suite(name: string, fn: (err?) => void);
|
||||
declare function test(name: string, fn: (done?: (err?) => void) => void);
|
||||
declare function suiteSetup(fn: (done?: (err?) => void) => void);
|
||||
declare function suiteTeardown(fn: (done?: (err?) => void) => void);
|
||||
declare function setup(fn: (done?: (err?) => void) => void);
|
||||
declare function teardown(fn: (done?: (err?) => void) => void);
|
||||
|
||||
Reference in New Issue
Block a user