Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / appcache / abort-cache-ondownloading.html
blob1903fa22c01cf5c26e02e6f5ede138547a088f35
1 <html manifest="resources/abort-cache-ondownloading.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 ondownloading() {
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('downloading', ondownloading, 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 downloading event.</div>
52 <div id="result"></div>
53 </html>