Skip to content

Commit fe5ac22

Browse files
committed
Merge branch 'migrate/tests' into feature/0.1.9
2 parents f5c58fe + a6b04da commit fe5ac22

31 files changed

+97
-68
lines changed

.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
* text=auto
2-
/src/test/testfiles/nix/**/*.confluence text eol=lf
3-
/src/test/testfiles/win/**/*.confluence text eol=crlf
2+
**/nix/**/*.confluence text eol=lf
3+
**/win/**/*.confluence text eol=crlf

media/css/confluence.css

Lines changed: 15 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
body {
2-
font-family: -apple-system,
3-
BlinkMacSystemFont,
4-
"Segoe UI",
5-
Roboto,
6-
Helvetica,
7-
Arial,
8-
sans-serif,
9-
"Apple Color Emoji",
10-
"Segoe UI Emoji",
11-
"Segoe UI Symbol";
12-
font-size: 14px;
2+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
133
padding: 0 26px;
144
line-height: 1em;
155
word-wrap: break-word;
@@ -24,11 +14,7 @@ a {
2414
color: #4080D0;
2515
text-decoration: none;
2616
}
27-
28-
a:focus,
29-
input:focus,
30-
select:focus,
31-
textarea:focus {
17+
a:focus, input:focus, select:focus, textarea:focus {
3218
outline: 1px solid -webkit-focus-ring-color;
3319
outline-offset: -1px;
3420
}
@@ -46,9 +32,7 @@ h1 {
4632
border-bottom-style: solid;
4733
}
4834

49-
h1,
50-
h2,
51-
h3 {
35+
h1, h2, h3 {
5236
font-weight: normal;
5337
}
5438

@@ -58,24 +42,21 @@ blockquote {
5842
border-left: 5px solid;
5943
}
6044

61-
table,
62-
th,
63-
td {
45+
table, th, td {
6446
border: 1px solid;
6547
border-collapse: collapse;
6648
padding: 7px;
6749
}
6850

69-
pre>code {
70-
display: inline-block;
71-
width: 90%;
72-
color: white;
51+
pre > code {
52+
display: block;
53+
background:rgba(0, 0, 0, 0.15);
54+
word-wrap: break-word;
55+
overflow-wrap: break-word;
56+
word-break: break-all;
57+
white-space: normal;
7358
margin: 0px 5px;
74-
font-size: 14px;
75-
background-color: black;
76-
cursor: pointer;
7759
padding: 5px 1em;
78-
box-shadow: 1px 1px 1px rgba(0, 0, 0, .25);
7960
line-height: 1.5em;
8061
}
8162

@@ -103,7 +84,7 @@ pre>code {
10384

10485

10586
pre > code > p {
106-
margin: 0px
87+
margin: 0px;
10788
}
10889

10990
ul {
@@ -118,10 +99,10 @@ ol.initial {
11899
list-style: decimal;
119100
}
120101

121-
ol.initial>ol {
102+
ol.initial > ol {
122103
list-style-type: lower-alpha;
123104
}
124105

125-
ol.initial>ol>ol {
106+
ol.initial > ol > ol {
126107
list-style-type: lower-roman;
127-
}
108+
}

package.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,20 +124,26 @@
124124
"vscode:prepublish": "npm run compile",
125125
"compile": "tsc -p ./",
126126
"watch": "tsc -watch -p ./",
127-
"postinstall": "node ./node_modules/vscode/bin/install",
128-
"test": "npm run clean && npm run compile && node ./node_modules/vscode/bin/test",
127+
"pretest": "npm run clean && npm run compile",
128+
"test": "node ./out/test/runTest.js",
129+
"prepackage": "npm run clean && npm run compile",
129130
"package": "./node_modules/.bin/vsce package",
130131
"clean": "rm -rf ./out",
131132
"clean-all": "rm -f ./confluence-markup*.vsix; rm -rf ./.vscode-test; rm -rf ./out; rm -rf ./node_modules"
132133
},
133134
"devDependencies": {
135+
"@types/glob": "^7.1.1",
134136
"@types/mocha": "^5.2.7",
135-
"@types/node": "^12.12.7",
136-
"html-formatter": "^0.1.9",
137+
"@types/node": "^12.12.8",
138+
"@types/vscode": "^1.40.0",
137139
"tslint": "^5.18.0",
138140
"typescript": "^3.5.3",
139141
"vsce": "^1.66.0",
140-
"vscode": "^1.1.36"
142+
"vscode-test": "^1.2.3",
143+
"glob": "^7.1.4",
144+
"mocha": "^6.1.4",
145+
"source-map-support": "^0.5.12",
146+
"html-formatter": "^0.1.9"
141147
},
142148
"__metadata": {
143149
"publisherDisplayName": "denco"

src/test/index.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/test/runTest.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
import * as path from 'path';
3+
4+
import { runTests } from 'vscode-test';
5+
6+
async function main() {
7+
try {
8+
// The folder containing the Extension Manifest package.json
9+
// Passed to `--extensionDevelopmentPath`
10+
const extensionDevelopmentPath = path.resolve(__dirname, '../../');
11+
12+
// The path to the extension test script
13+
// Passed to --extensionTestsPath
14+
const extensionTestsPath = path.resolve(__dirname, './suite/index');
15+
16+
// Download VS Code, unzip it and run the integration test
17+
await runTests({ extensionDevelopmentPath, extensionTestsPath });
18+
} catch (err) {
19+
console.error('Failed to run tests');
20+
process.exit(1);
21+
}
22+
}
23+
24+
main();
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)