mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 825392 - Fix up a test to use transitive wrapping rather than getPrivilegedProps. r=bz
This commit is contained in:
parent
aee7d01e9e
commit
a228c689cc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user