зеркало из https://github.com/mozilla/pjs.git
Bug 431986: ApplicationCache doesn't implement EventTarget, patch by dcamp@mozilla.com, r+sr=jst, a=schrep
This commit is contained in:
Родитель
cbba1ad38b
Коммит
2ebb8cc96b
|
@ -3313,6 +3313,7 @@ nsDOMClassInfo::Init()
|
|||
|
||||
DOM_CLASSINFO_MAP_BEGIN(OfflineResourceList, nsIDOMOfflineResourceList)
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMOfflineResourceList)
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMEventTarget)
|
||||
DOM_CLASSINFO_MAP_END
|
||||
|
||||
DOM_CLASSINFO_MAP_BEGIN(LoadStatusList, nsIDOMLoadStatusList)
|
||||
|
|
|
@ -97,12 +97,15 @@ function manifestUpdated()
|
|||
|
||||
|
||||
if (OfflineTest.setup()) {
|
||||
OfflineTest.ok(applicationCache instanceof EventTarget,
|
||||
"applicationCache should be an event target");
|
||||
|
||||
applicationCache.onerror = OfflineTest.failEvent;
|
||||
|
||||
applicationCache.onchecking = function() {
|
||||
applicationCache.addEventListener("checking", function() {
|
||||
OfflineTest.is(applicationCache.status, 2, "CHECKING state while checking");
|
||||
gGotChecking = true;
|
||||
};
|
||||
}, true);
|
||||
applicationCache.ondownloading = function() {
|
||||
OfflineTest.is(applicationCache.status, 3, "DOWNLOADING state while checking")
|
||||
gGotDownloading = true; };
|
||||
|
|
Загрузка…
Ссылка в новой задаче