ed'),
      'Worker cannot access partitioned cookie via JS');
  assert_true(
      msg3.cookies.includes('unpartitioned'),
      'Worker can access unpartitioned cookie via JS');

  // Test that the partitioned cookie is not available to this worker in HTTP
  // requests from importScripts.
  filtered_registrations[0].active.postMessage({type: 'echo_cookies_import'});
  const msg4 = await next_message();
  assert_true(msg4.ok, 'Get cookies');
  assert_false(
      msg4.cookies.includes('__Host-partitioned'