mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -11,12 +11,19 @@
|
|||
<script>
|
||||
var cache = window.applicationCache;
|
||||
|
||||
test(function() {
|
||||
try {
|
||||
async_test(function(t) {
|
||||
var next = t.step_func(function() {
|
||||
cache.onnoupdate = cache.oncached = null;
|
||||
|
||||
cache.update()
|
||||
assert_true(true, "update method test")
|
||||
} catch (e) {
|
||||
assert_unreached("update method failed.");
|
||||
|
||||
t.done();
|
||||
});
|
||||
|
||||
if (cache.status === cache.IDLE) {
|
||||
next();
|
||||
} else {
|
||||
cache.onnoupdate = cache.oncached = next;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -1,16 +1,11 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html manifest="../resources/manifest/clock.manifest">
|
||||
<html manifest="./non-existent-file.manifest">
|
||||
<head>
|
||||
<title>Offline Application Cache - API_update_error</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<ol>
|
||||
<li>Remove the manifest file (manifest/clock.manifest) from the server.</li>
|
||||
<li>Refresh the page, then calling update() will throw InvalidStateError exception.</li>
|
||||
</ol>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue