зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1253016 - Fix a DOM test that uses legacy define behavior. r=bz
This commit is contained in:
Родитель
2006354ac1
Коммит
c292e5a931
|
@ -27,9 +27,8 @@ ok(document.location === location, "properties are properly aliased");
|
||||||
|
|
||||||
var canDefine = false;
|
var canDefine = false;
|
||||||
try {
|
try {
|
||||||
var foo;
|
this.__defineGetter__.call(this, 'bar', function() {});
|
||||||
this.__defineGetter__.call(foo, 'bar', function() {});
|
this.__defineSetter__.call(this, 'bar', function() {});
|
||||||
this.__defineSetter__.call(foo, 'bar', function() {});
|
|
||||||
canDefine = true;
|
canDefine = true;
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
ok(canDefine, "Should have access to __defineGetter__ and __defineSetter__");
|
ok(canDefine, "Should have access to __defineGetter__ and __defineSetter__");
|
||||||
|
|
Загрузка…
Ссылка в новой задаче