From 7f12305f597e8d30bd0583795c909d69ae1179df Mon Sep 17 00:00:00 2001 From: Shu-yu Guo Date: Wed, 8 Jan 2025 16:30:20 -0800 Subject: [PATCH] Rename support files to end in _FIXTURE.js (#4368) --- .../{bug1693261-async.mjs => bug1693261-async_FIXTURE.js} | 2 ++ test/staging/sm/module/bug1693261-c1.mjs | 6 ------ test/staging/sm/module/bug1693261-c1_FIXTURE.js | 8 ++++++++ test/staging/sm/module/bug1693261-c2.mjs | 6 ------ test/staging/sm/module/bug1693261-c2_FIXTURE.js | 8 ++++++++ test/staging/sm/module/bug1693261-x.mjs | 6 ------ test/staging/sm/module/bug1693261-x_FIXTURE.js | 8 ++++++++ 7 files changed, 26 insertions(+), 18 deletions(-) rename test/staging/sm/module/{bug1693261-async.mjs => bug1693261-async_FIXTURE.js} (58%) delete mode 100644 test/staging/sm/module/bug1693261-c1.mjs create mode 100644 test/staging/sm/module/bug1693261-c1_FIXTURE.js delete mode 100644 test/staging/sm/module/bug1693261-c2.mjs create mode 100644 test/staging/sm/module/bug1693261-c2_FIXTURE.js delete mode 100644 test/staging/sm/module/bug1693261-x.mjs create mode 100644 test/staging/sm/module/bug1693261-x_FIXTURE.js diff --git a/test/staging/sm/module/bug1693261-async.mjs b/test/staging/sm/module/bug1693261-async_FIXTURE.js similarity index 58% rename from test/staging/sm/module/bug1693261-async.mjs rename to test/staging/sm/module/bug1693261-async_FIXTURE.js index bc345e0b4c..459ae48ac4 100644 --- a/test/staging/sm/module/bug1693261-async.mjs +++ b/test/staging/sm/module/bug1693261-async_FIXTURE.js @@ -1,4 +1,6 @@ // |reftest| skip -- support file +// Copyright (C) 2024 Mozilla Corporation. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. if (globalThis.testArray === undefined) { globalThis.testArray = []; } diff --git a/test/staging/sm/module/bug1693261-c1.mjs b/test/staging/sm/module/bug1693261-c1.mjs deleted file mode 100644 index 31f42d027e..0000000000 --- a/test/staging/sm/module/bug1693261-c1.mjs +++ /dev/null @@ -1,6 +0,0 @@ -// |reftest| skip -- support file -import "./bug1693261-async.mjs"; -if (globalThis.testArray === undefined) { - globalThis.testArray = []; -} -globalThis.testArray.push("c1"); diff --git a/test/staging/sm/module/bug1693261-c1_FIXTURE.js b/test/staging/sm/module/bug1693261-c1_FIXTURE.js new file mode 100644 index 0000000000..74d4bb90cf --- /dev/null +++ b/test/staging/sm/module/bug1693261-c1_FIXTURE.js @@ -0,0 +1,8 @@ +// |reftest| skip -- support file +// Copyright (C) 2024 Mozilla Corporation. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +import "./bug1693261-async_FIXTURE.js"; +if (globalThis.testArray === undefined) { + globalThis.testArray = []; +} +globalThis.testArray.push("c1"); diff --git a/test/staging/sm/module/bug1693261-c2.mjs b/test/staging/sm/module/bug1693261-c2.mjs deleted file mode 100644 index e5ceb3079d..0000000000 --- a/test/staging/sm/module/bug1693261-c2.mjs +++ /dev/null @@ -1,6 +0,0 @@ -// |reftest| skip -- support file -import "./bug1693261-async.mjs"; -if (globalThis.testArray === undefined) { - globalThis.testArray = []; -} -globalThis.testArray.push("c2"); diff --git a/test/staging/sm/module/bug1693261-c2_FIXTURE.js b/test/staging/sm/module/bug1693261-c2_FIXTURE.js new file mode 100644 index 0000000000..8d4c8ce587 --- /dev/null +++ b/test/staging/sm/module/bug1693261-c2_FIXTURE.js @@ -0,0 +1,8 @@ +// |reftest| skip -- support file +// Copyright (C) 2024 Mozilla Corporation. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +import "./bug1693261-async_FIXTURE.js"; +if (globalThis.testArray === undefined) { + globalThis.testArray = []; +} +globalThis.testArray.push("c2"); diff --git a/test/staging/sm/module/bug1693261-x.mjs b/test/staging/sm/module/bug1693261-x.mjs deleted file mode 100644 index 4c73867e58..0000000000 --- a/test/staging/sm/module/bug1693261-x.mjs +++ /dev/null @@ -1,6 +0,0 @@ -// |reftest| skip -- support file -import "./bug1693261-c1.mjs"; -if (globalThis.testArray === undefined) { - globalThis.testArray = []; -} -globalThis.testArray.push("x"); diff --git a/test/staging/sm/module/bug1693261-x_FIXTURE.js b/test/staging/sm/module/bug1693261-x_FIXTURE.js new file mode 100644 index 0000000000..357b5e4056 --- /dev/null +++ b/test/staging/sm/module/bug1693261-x_FIXTURE.js @@ -0,0 +1,8 @@ +// |reftest| skip -- support file +// Copyright (C) 2024 Mozilla Corporation. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +import "./bug1693261-c1_FIXTURE.js"; +if (globalThis.testArray === undefined) { + globalThis.testArray = []; +} +globalThis.testArray.push("x");