Bug 839103 - Part 8: Use Document.styleSheetChangeEventsEnabled in test. r=bz

This commit is contained in:
Cameron McCormack 2013-05-16 17:13:36 +10:00
parent 0fb0159ada
commit 5b1f786086

View File

@ -36,6 +36,7 @@ function continueTest() {
info("continuing test");
let doc = gBrowser.contentDocument;
doc.styleSheetChangeEventsEnabled = true;
doc.addEventListener("StyleSheetAdded", unexpectedContentEvent, false);
doc.addEventListener("StyleSheetRemoved", unexpectedContentEvent, false);
doc.defaultView.addEventListener("StyleSheetAdded", unexpectedContentEvent, false);
@ -82,4 +83,4 @@ function concludeTest() {
gLinkElement = null;
gTab = null;
finish();
}
}