Permalink
Switch branches/tags
merge_pr_13636 merge_pr_13635 merge_pr_13634 merge_pr_13631 merge_pr_13630 merge_pr_13629 merge_pr_13628 merge_pr_13622 merge_pr_13617 merge_pr_13614 merge_pr_13612 merge_pr_13610 merge_pr_13609 merge_pr_13608 merge_pr_13607 merge_pr_13605 merge_pr_13604 merge_pr_13601 merge_pr_13599 merge_pr_13594 merge_pr_13593 merge_pr_13590 merge_pr_13589 merge_pr_13588 merge_pr_13587 merge_pr_13586 merge_pr_13584 merge_pr_13583 merge_pr_13582 merge_pr_13580 merge_pr_13577 merge_pr_13576 merge_pr_13574 merge_pr_13573 merge_pr_13570 merge_pr_13569 merge_pr_13567 merge_pr_13566 merge_pr_13565 merge_pr_13562 merge_pr_13561 merge_pr_13556 merge_pr_13555 merge_pr_13554 merge_pr_13552 merge_pr_13551 merge_pr_13549 merge_pr_13548 merge_pr_13547 merge_pr_13546 merge_pr_13545 merge_pr_13543 merge_pr_13542 merge_pr_13541 merge_pr_13540 merge_pr_13538 merge_pr_13537 merge_pr_13535 merge_pr_13528 merge_pr_13527 merge_pr_13525 merge_pr_13521 merge_pr_13520 merge_pr_13519 merge_pr_13517 merge_pr_13516 merge_pr_13515 merge_pr_13514 merge_pr_13512 merge_pr_13511 merge_pr_13509 merge_pr_13504 merge_pr_13501 merge_pr_13500 merge_pr_13498 merge_pr_13497 merge_pr_13496 merge_pr_13495 merge_pr_13494 merge_pr_13493 merge_pr_13492 merge_pr_13491 merge_pr_13490 merge_pr_13489 merge_pr_13488 merge_pr_13486 merge_pr_13485 merge_pr_13484 merge_pr_13483 merge_pr_13482 merge_pr_13481 merge_pr_13480 merge_pr_13479 merge_pr_13476 merge_pr_13475 merge_pr_13473 merge_pr_13472 merge_pr_13469 merge_pr_13468 merge_pr_13466
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (53 sloc) 2.06 KB
<!DOCTYPE html>
<html>
<title>Service Workers: Cache</title>
<head>
<link rel="help" href="https://w3c.github.io/ServiceWorker/#cache">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src=/resources/WebIDLParser.js></script>
<script src=/resources/idlharness.js></script>
</head>
<body>
<script type=text/plain id="idl_0">
[Exposed=(Window,Worker)]
interface Cache {
Promise<Response> match(RequestInfo request, optional CacheQueryOptions options);
Promise<sequence<Response>> matchAll(optional RequestInfo request, optional CacheQueryOptions options);
Promise<void> add(RequestInfo request);
Promise<void> addAll(sequence<RequestInfo> requests);
Promise<void> put(RequestInfo request, Response response);
Promise<boolean> delete(RequestInfo request, optional CacheQueryOptions options);
Promise<sequence<Request>> keys(optional RequestInfo request, optional CacheQueryOptions options);
};
dictionary CacheQueryOptions {
boolean ignoreSearch = false;
boolean ignoreMethod = false;
boolean ignoreVary = false;
DOMString cacheName;
};
dictionary CacheBatchOperation {
DOMString type;
Request request;
Response response;
CacheQueryOptions options;
};
</script>
<script type=text/plain id="untested_idls">
interface AbstractResponse {};
interface Request {};
interface ScalarValueString {};
</script>
<script>
var idl_array = new IdlArray();
idl_array.add_untested_idls(document.getElementById("untested_idls").textContent);
idl_array.add_idls(document.getElementById("idl_0").textContent);
idl_array.add_objects({
Cache: ["throw new Error ('No object defined for the Cache interface')"],
QueryParams: ["throw new Error ('No object defined for the QueryParams dictionary')"],
CacheIterationCallback: ["throw new Error ('No object defined for the CacheIterationCallback callback')"]
});
idl_array.test();
</script>
</body>
</html>