From 9f478970f322a43541070ed1a2772fe89b3de403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Thu, 12 Dec 2024 16:34:33 +0100 Subject: [PATCH] Add fixtures --- .../import-defer/evaluation-triggers/dep-then_FIXTURE.js | 6 ++++++ .../import/import-defer/evaluation-triggers/dep_FIXTURE.js | 6 ++++++ .../import-defer/evaluation-triggers/setup_FIXTURE.js | 4 ++++ 3 files changed, 16 insertions(+) create mode 100644 test/language/import/import-defer/evaluation-triggers/dep-then_FIXTURE.js create mode 100644 test/language/import/import-defer/evaluation-triggers/dep_FIXTURE.js create mode 100644 test/language/import/import-defer/evaluation-triggers/setup_FIXTURE.js diff --git a/test/language/import/import-defer/evaluation-triggers/dep-then_FIXTURE.js b/test/language/import/import-defer/evaluation-triggers/dep-then_FIXTURE.js new file mode 100644 index 0000000000..59c7770dcc --- /dev/null +++ b/test/language/import/import-defer/evaluation-triggers/dep-then_FIXTURE.js @@ -0,0 +1,6 @@ +// Copyright (C) 2024 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +globalThis.evaluations.push("then"); + +export function then(cb) { cb(); } diff --git a/test/language/import/import-defer/evaluation-triggers/dep_FIXTURE.js b/test/language/import/import-defer/evaluation-triggers/dep_FIXTURE.js new file mode 100644 index 0000000000..d6118da264 --- /dev/null +++ b/test/language/import/import-defer/evaluation-triggers/dep_FIXTURE.js @@ -0,0 +1,6 @@ +// Copyright (C) 2024 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +globalThis.evaluations.push("dep"); + +export let exported = 3; diff --git a/test/language/import/import-defer/evaluation-triggers/setup_FIXTURE.js b/test/language/import/import-defer/evaluation-triggers/setup_FIXTURE.js new file mode 100644 index 0000000000..d71b2fa95e --- /dev/null +++ b/test/language/import/import-defer/evaluation-triggers/setup_FIXTURE.js @@ -0,0 +1,4 @@ +// Copyright (C) 2024 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +globalThis.evaluations = [];