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 = [];