summaryrefslogtreecommitdiffstats
path: root/test/wpt/tests/fetch/fetch-later/basic.tentative.https.window.js
blob: a8ca011a7c992878ddd51df65742939b8fbf6337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// META: script=/resources/testharness.js
// META: script=/resources/testharnessreport.js

'use strict';

test(() => {
  assert_throws_js(TypeError, () => fetchLater());
}, `fetchLater() cannot be called without request.`);

test(() => {
  const result = fetchLater('/');
  assert_false(result.sent);
}, `fetchLater()'s return tells the deferred request is not yet sent.`);