Move test pages to `/test/manual/`

pull/2778/head
Alex Dima 3 years ago
parent 32f9897bf2
commit 430d8e6e17
No known key found for this signature in database
GPG Key ID: 39563C1504FDD0C9

@ -1,8 +1,6 @@
**/node_modules/
**/out/
**/release/
/monaco-editor/test/samples-all.generated.js
/monaco-editor/test/playground.generated/
/monaco-editor/typedoc/theme/
/monaco-editor/typedoc/monaco.d.ts
/monaco-editor/website/lib/
@ -15,3 +13,5 @@
/samples/browser-esm-webpack-typescript/dist/*.js
/samples/browser-esm-webpack-typescript-react/dist/*.js
/src/typescript/lib/
/test/manual/samples-all.generated.js
/test/manual/playground.generated/

@ -20,9 +20,9 @@ createSimpleServer(SERVER_ROOT, 8080);
createSimpleServer(SERVER_ROOT, 8088);
function generateTestSamplesTask() {
const sampleNames = fs.readdirSync(path.join(REPO_ROOT, 'monaco-editor/test/samples'));
const sampleNames = fs.readdirSync(path.join(REPO_ROOT, 'test/manual/samples'));
const samples = sampleNames.map((sampleName) => {
const samplePath = path.join(REPO_ROOT, 'monaco-editor/test/samples', sampleName);
const samplePath = path.join(REPO_ROOT, 'test/manual/samples', sampleName);
const sampleContent = fs.readFileSync(samplePath).toString();
return {
name: sampleName,
@ -33,7 +33,7 @@ function generateTestSamplesTask() {
'//This is a generated file via `npm run simpleserver`\ndefine([], function() { return';
const suffix = '; });';
fs.writeFileSync(
path.join(REPO_ROOT, 'monaco-editor/test/samples-all.generated.js'),
path.join(REPO_ROOT, 'test/manual/samples-all.generated.js'),
prefix + JSON.stringify(samples, null, '\t') + suffix
);
@ -96,7 +96,7 @@ function generateTestSamplesTask() {
'</html>'
];
fs.writeFileSync(
path.join(REPO_ROOT, 'monaco-editor/test/playground.generated/' + sampleId + '.html'),
path.join(REPO_ROOT, 'test/manual/playground.generated/' + sampleId + '.html'),
result.join('\n')
);
locations.push({
@ -132,7 +132,7 @@ function generateTestSamplesTask() {
'</html>'
];
fs.writeFileSync(
path.join(REPO_ROOT, 'monaco-editor/test/playground.generated/index.html'),
path.join(REPO_ROOT, 'test/manual/playground.generated/index.html'),
index.join('\n')
);
}

@ -3,7 +3,7 @@
<head> </head>
<body>
<iframe
src="http://localhost:8088/monaco-editor/test/2264/iframe.html?editor=src"
src="http://localhost:8088/monaco-editor/test/manual/2264/iframe.html?editor=src"
style="width: 800px; height: 600px"
sandbox="allow-same-origin allow-scripts allow-popups allow-modals allow-forms allow-downloads"
></iframe>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save