- if (applicationCache.status == applicationCache.UNCACHED)
- log("SUCCESS");
- else
- log("FAILURE: cache status is not uncached: " + applicationCache.status);
+ shouldBe("applicationCache.status", "applicationCache.UNCACHED");
+
+ event = e;
+ shouldBeEqualToString("event.reason", "resource");
+ shouldBeEqualToString("event.url", "http://127.0.0.1:8000/appcache/resources/does-not-exist.txt");
+ shouldBe("event.status", "404");
+ shouldBeTrue("'message' in event");