Skip to content

Commit

Permalink
Move build folder's resources location and update paths
Browse files Browse the repository at this point in the history
  • Loading branch information
howard-e committed Aug 27, 2024
1 parent e10ab4b commit 37af6f5
Show file tree
Hide file tree
Showing 7 changed files with 269 additions and 271 deletions.
480 changes: 240 additions & 240 deletions __test__/__snapshots__/createAllTests.test.js.snap

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions __test__/__snapshots__/createReviewPages.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ exports[`review pages creation runs createReviewPages successfully for all test

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -570,7 +570,7 @@ exports[`review pages creation runs createReviewPages successfully for all test

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -3542,7 +3542,7 @@ exports[`review pages creation runs createReviewPages successfully for all test

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -4664,7 +4664,7 @@ exports[`review pages creation runs createReviewPages successfully for all test

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -7251,7 +7251,7 @@ exports[`review pages creation runs createReviewPages successfully for all test

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -7708,7 +7708,7 @@ exports[`review pages creation runs createReviewPages successfully for all test

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -10680,7 +10680,7 @@ exports[`review pages creation runs createReviewPages successfully for all test

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -11802,7 +11802,7 @@ exports[`review pages creation runs createReviewPages successfully for all test

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -14389,7 +14389,7 @@ exports[`review pages creation runs createReviewPages successfully for all test

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -14846,7 +14846,7 @@ exports[`review pages creation runs createReviewPages successfully for all test

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -17818,7 +17818,7 @@ exports[`review pages creation runs createReviewPages successfully for all test

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -18940,7 +18940,7 @@ exports[`review pages creation runs createReviewPages successfully for all test

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -21527,7 +21527,7 @@ exports[`review pages creation runs createReviewPages successfully for all test

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -21984,7 +21984,7 @@ exports[`review pages creation runs createReviewPages successfully for all test

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -24956,7 +24956,7 @@ exports[`review pages creation runs createReviewPages successfully for all test

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -26078,7 +26078,7 @@ exports[`review pages creation runs createReviewPages successfully for all test

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -28638,7 +28638,7 @@ exports[`review pages creation runs createReviewPages successfully for v1 tests

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -31653,7 +31653,7 @@ exports[`review pages creation runs createReviewPages successfully for v2 tests

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -32136,7 +32136,7 @@ exports[`review pages creation runs createReviewPages successfully for v2 tests

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down Expand Up @@ -33290,7 +33290,7 @@ exports[`review pages creation runs createReviewPages successfully for v2 tests

</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';

function numberTests(value) {
let testNumber = 0;
Expand Down
6 changes: 3 additions & 3 deletions lib/data/process-test-directory-v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ const processTestDirectory = async config => {
'tests',
`tests/${testPlanName}`,
`tests/${testPlanName}/**`,
'tests/support.json',
'resources',
'resources/*',
'tests/support.json',
].join(','),
});

Expand Down Expand Up @@ -148,10 +148,10 @@ const processTestDirectory = async config => {
name: testPlanName,
entries: testPlanUpdate.filter({ glob: 'reference{,/**}' }).record.entries,
},
{ name: 'resources', ...resourcesRecord.record },
{ name: 'support.json', ...supportRecord.record },
],
},
{ name: 'resources', ...resourcesRecord.record },
],
});

Expand Down Expand Up @@ -457,7 +457,7 @@ ${references}
${getScripts()}
</script>
<script type="module">
import { initialize, verifyATBehavior, displayTestPageAndInstructions } from "../resources/aria-at-harness.mjs";
import { initialize, verifyATBehavior, displayTestPageAndInstructions } from "../../resources/aria-at-harness.mjs";
new Promise((resolve) => {
fetch('../support.json')
Expand Down
8 changes: 4 additions & 4 deletions lib/data/process-test-directory.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ const processTestDirectory = async config => {
'tests',
`tests/${testPlanName}`,
`tests/${testPlanName}/**`,
'tests/commands.json',
'tests/support.json',
'resources',
'resources/*',
'tests/support.json',
'tests/commands.json',
].join(','),
});

Expand Down Expand Up @@ -146,11 +146,11 @@ const processTestDirectory = async config => {
name: testPlanName,
entries: testPlanUpdate.filter({ glob: 'reference{,/**}' }).record.entries,
},
{ name: 'resources', ...resourcesRecord.record },
{ name: 'support.json', ...supportJsonRecord.record },
{ name: 'commands.json', ...commandsJsonRecord.record },
],
},
{ name: 'resources', ...resourcesRecord.record },
],
});

Expand Down Expand Up @@ -574,7 +574,7 @@ ${exampleReferences}
${getScripts()}
</script>
<script type="module">
import { initialize, verifyATBehavior, displayTestPageAndInstructions } from "../resources/aria-at-harness.mjs";
import { initialize, verifyATBehavior, displayTestPageAndInstructions } from "../../resources/aria-at-harness.mjs";
new Promise((resolve) => {
fetch('../support.json')
Expand Down
2 changes: 1 addition & 1 deletion lib/data/templates/collected-test.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function renderHTML(test, testFileName) {
</head>
<body>
<script type="module">
import {loadCollectedTestAsync} from "../resources/aria-at-harness.mjs";
import {loadCollectedTestAsync} from "../../resources/aria-at-harness.mjs";
loadCollectedTestAsync(new URL(location + "/..").pathname, "${testFileName}");
</script>
</body>
Expand Down
2 changes: 0 additions & 2 deletions scripts/test-reviewer/createReviewPages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ export function createReviewPages(config) {
const allATKeys = support.ats.map(at => at.key);

fse.readdirSync(testsBuildDirectory).forEach(function (directory) {
if (directory === 'resources') return;

const testPlanDirectory = path.join(testsDirectory, directory);
const stat = fse.statSync(testPlanDirectory);

Expand Down
2 changes: 1 addition & 1 deletion scripts/test-reviewer/review-template.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</style>
<script type="module">
import {TestWindow} from '../../tests/resources/aria-at-test-window.mjs';
import {TestWindow} from '../../resources/aria-at-test-window.mjs';
function numberTests(value) {
let testNumber = 0;
Expand Down

0 comments on commit 37af6f5

Please sign in to comment.