Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: LayoutTests/http/tests/appcache/modified-manifest.html

Issue 217133002: AppCache error details tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: statusCode -> status Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html manifest="resources/modified-manifest.php">
2 <script src="/js-test-resources/js-test.js"></script>
3 <script>
4 var jsTestIsAsync = true;
5 description("Test that a manifest that changes during an update fails.");
6
7 var gotCheckingEvent = false;
8 function onChecking() { gotCheckingEvent = true; }
9
10
11 var gotDownloadingEvent = false;
12 function onDownloading() { gotDownloadingEvent = true; }
13
14 function onError(e)
15 {
16 shouldBeTrue("gotCheckingEvent");
17 shouldBeTrue("gotDownloadingEvent");
18 shouldBe("window.applicationCache.status", "applicationCache.UNCACHED");
19
20 event = e;
21 shouldBeEqualToString("event.reason", "changed");
22 shouldBeEqualToString("event.url", "");
23 shouldBe("event.status", "0");
24 shouldBeTrue("'message' in event");
25
26 finishJSTest();
27 }
28
29 applicationCache.addEventListener('checking', onChecking, false);
30 applicationCache.addEventListener('downloading', onDownloading, false);
31 applicationCache.addEventListener('error', onError, false);
32
33 </script>
34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698