Bug 825392 - Fix up a test to use transitive wrapping rather than getPrivilegedProps. r=bz

This commit is contained in:
Bobby Holley 2014-03-19 13:35:44 -03:00
parent aee7d01e9e
commit a228c689cc

View File

@ -39,12 +39,8 @@ SimpleTest.waitForExplicitFinish();
function mouseHandler(aEvent)
{
gNumberOfMouseEventsCatched++;
var classList = SpecialPowers.getPrivilegedProps(aEvent, "originalTarget.classList");
var nodeName = SpecialPowers.getPrivilegedProps(aEvent, "originalTarget.nodeName");
is(nodeName, "DIV", "An inner div should be the target of the event");
ok(classList.contains("anonymous-div"), "the target div should be the editor div");
is(SpecialPowers.wrap(aEvent).originalTarget.nodeName, "DIV", "An inner div should be the target of the event");
ok(SpecialPowers.wrap(aEvent).originalTarget.classList.contains("anonymous-div"), "the target div should be the editor div");
}
function checkMouseEvents(element)