Bug 1253016 - Fix a DOM test that uses legacy define behavior. r=bz

This commit is contained in:
Tom Schuster 2016-03-12 15:02:12 +01:00
Родитель 2006354ac1
Коммит c292e5a931
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -27,9 +27,8 @@ ok(document.location === location, "properties are properly aliased");
var canDefine = false;
try {
var foo;
this.__defineGetter__.call(foo, 'bar', function() {});
this.__defineSetter__.call(foo, 'bar', function() {});
this.__defineGetter__.call(this, 'bar', function() {});
this.__defineSetter__.call(this, 'bar', function() {});
canDefine = true;
} catch (e) {}
ok(canDefine, "Should have access to __defineGetter__ and __defineSetter__");