diff --git a/accessible/tests/mochitest/name_nsRootAcc_wnd.xul b/accessible/tests/mochitest/name_nsRootAcc_wnd.xul index 4e07c3e725f8..73769f649cdb 100644 --- a/accessible/tests/mochitest/name_nsRootAcc_wnd.xul +++ b/accessible/tests/mochitest/name_nsRootAcc_wnd.xul @@ -39,14 +39,14 @@ function switchTabSelectChecker(aInvoker) { this.type = "select"; - this.target getter = function() { return aInvoker.getTabsElm(); } + Object.defineProperty(this, "target", { get: function() { return aInvoker.getTabsElm(); }}); this.getID = function() { return "switch tab, select event"; } } function switchTabFocusChecker(aInvoker) { this.type = gOpenerWnd.EVENT_FOCUS; - this.target getter = function() { return aInvoker.getContentDoc(); } + Object.defineProperty(this, "target", { get: function() { return aInvoker.getContentDoc(); }}); this.check = function(aEvent) { is(gOpenerWnd.getAccessible(document).name, "about:mozilla" + aEvent.accessible.name,