Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / appcache / abort-cache-onchecking-resource-404.html
blob75710e9f6c202c83a0be2807881bd074d07550e9
1 <html manifest="resources/abort-cache-onchecking-resource-404.manifest">
2 <script>
3 if (window.testRunner) {
4 testRunner.dumpAsText()
5 testRunner.waitUntilDone();
8 function log(message) {
9 document.getElementById("result").innerHTML += message + "\n";
12 function onchecking() {
13 applicationCache.abort();
16 function onnoupdate() {
17 log("FAILURE");
18 log("noupdate");
19 if (window.testRunner)
20 testRunner.notifyDone();
23 function oncached() {
24 log("FAILURE");
25 log("CACHED");
26 if (window.testRunner)
27 testRunner.notifyDone();
30 function onupdateready() {
31 log("FAILURE");
32 log("UPDATEREADY");
33 if (window.testRunner)
34 testRunner.notifyDone();
37 function onerror() {
38 log("SUCCESS");
39 if (window.testRunner)
40 testRunner.notifyDone();
43 applicationCache.addEventListener('checking', onchecking, false);
44 applicationCache.addEventListener('noupdate', onnoupdate, false);
45 applicationCache.addEventListener('cached', oncached, false);
46 applicationCache.addEventListener('error', onerror, false);
47 applicationCache.addEventListener('updateready', onupdateready, false);
49 </script>
51 <div>This tests that download process was aborted after checking event and before update failed.</div>
52 <div id="result"></div>
53 </html>