Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255

This commit is contained in:
James Graham 2015-03-27 09:15:38 +00:00
parent b2a5225831
commit 1a81b18b9f
12321 changed files with 544385 additions and 6 deletions

View file

@ -0,0 +1,10 @@
[
{
"id": "supporting-offline-caching-for-legacy-applications",
"original_id": "supporting-offline-caching-for-legacy-applications"
},
{
"id": "appcacheevents",
"original_id": "appcacheevents"
}
]

View file

@ -0,0 +1,18 @@
<!DOCTYPE HTML>
<html manifest="../resources/manifest/clock.manifest">
<head>
<title>Offline Application Cache - Event_cached</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<script>
var t = async_test("cached event test");
var cache = window.applicationCache;
cache.oncached = t.done();
</script>
</body>
</html>

View file

@ -0,0 +1,18 @@
<!DOCTYPE HTML>
<html manifest="../resources/manifest/clock.manifest">
<head>
<title>Offline Application Cache - Event_checking</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<script>
var t = async_test("checking event test");
var cache = window.applicationCache;
cache.onchecking = t.done();
</script>
</body>
</html>

View file

@ -0,0 +1,23 @@
<!DOCTYPE HTML>
<html manifest="../resources/manifest/clock.manifest">
<head>
<title>Offline Application Cache - Event_downloading</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<ol>
<li>Modify the commented part of the manifest file (manifest/clock.manifest) on the server.</li>
<li>Refresh the page.</li>
</ol>
<div id="log"></div>
<script>
var t = async_test("downloading event test");
var cache = window.applicationCache;
cache.ondownloading = t.done();
</script>
</body>
</html>

View file

@ -0,0 +1,23 @@
<!DOCTYPE HTML>
<html manifest="../resources/manifest/clock.manifest">
<head>
<title>Offline Application Cache - Event_error</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<ol>
<li>Add a dummy file in the manifest file (manifest/clock.manifest).</li>
<li>Refresh the page.</li>
</ol>
<div id="log"></div>
<script>
var t = async_test("error event test");
var cache = window.applicationCache;
cache.onerror = t.done();
</script>
</body>
</html>

View file

@ -0,0 +1,19 @@
<!DOCTYPE HTML>
<html manifest="../resources/manifest/clock.manifest">
<head>
<title>Offline Application Cache - Event_noupdate</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<script>
var t = async_test("noupdate event test");
var cache = window.applicationCache;
cache.onnoupdate = t.done();
</script>
</body>
</html>

View file

@ -0,0 +1,23 @@
<!DOCTYPE HTML>
<html manifest="../resources/manifest/clock.manifest">
<head>
<title>Offline Application Cache - Event_obsolete</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.</li>
</ol>
<div id="log"></div>
<script>
var t = async_test("obsolete event test");
var cache = window.applicationCache;
cache.onobsolete = t.done();
</script>
</body>
</html>

View file

@ -0,0 +1,18 @@
<!DOCTYPE HTML>
<html manifest="../resources/manifest/clock.manifest">
<head>
<title>Offline Application Cache - Event_progress</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<script>
var t = async_test("progress event test");
var cache = window.applicationCache;
cache.onprogress = t.done();
</script>
</body>
</html>

View file

@ -0,0 +1,22 @@
<!DOCTYPE HTML>
<html manifest="../resources/manifest/clock.manifest">
<head>
<title>Offline Application Cache - Event_updateready</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<ol>
<li>Modify the commented part in the manifest file (manifest/clock.manifest) on the server.</li>
<li>Refresh the page.</li>
</ol>
<div id="log"></div>
<script>
var t = async_test("updateready event test");
var cache = window.applicationCache;
cache.onupdateready = t.done();
</script>
</body>
</html>

View file

@ -0,0 +1,30 @@
<!DOCTYPE HTML>
<html manifest="../resources/manifest/clock.manifest">
<head>
<title>Offline Application Cache - Event_updateready_swapCache</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<ol>
<li>Modify the commented part in manifest file (manifest/clock.manifest) on the server.</li>
<li>Refresh the page.</li>
</ol>
<div id="log"></div>
<script>
var t = async_test("swapCache method test after updateready event is raised");
var cache = window.applicationCache;
cache.onupdateready = t.step_func(function() {
try {
cache.swapCache();
t.done();
} catch (e) {
assert_unreached("swapCache method failed.");
}
})
</script>
</body>
</html>