blob: ac0f4481b482b346bb6a3d2b9e5e0a65cdfd9a7c [file] [log] [blame]
<!DOCTYPE html>
<title>Worklet: Dynamic import() on WorkletGlobalScope</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
// This test should not be upstreamed to WPT because this tests console outputs.
console.log('This test logs a result once from each PaintWorkletGlobalScope');
promise_test(() => {
const kScriptURL = 'resources/dynamic-import-worklet-script.js';
return CSS.paintWorklet.addModule(kScriptURL)
.then(result => assert_equals(undefined, result));
}, 'Dynamic import() on WorkletGlobalScope should reject the promise.');
</script>