Bug 1181747 followup. Also need to adjust the assert in the test.

This commit is contained in:
Boris Zbarsky 2015-07-09 02:49:10 -04:00
Родитель 11acb3521f
Коммит 29430328c7
2 изменённых файлов: 4 добавлений и 2 удалений

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

@ -714,8 +714,9 @@ exports["test requestAnimationFrame"] = createProxyTest("", function (helper) {
helper.createWorker(
'new ' + function ContentScriptScope() {
var self = (function() { return this; })();
window.requestAnimationFrame(function callback() {
assert(callback == this, "callback is equal to `this`");
assert(self == this, "self is equal to `this`");
done();
});
}

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

@ -714,8 +714,9 @@ exports["test requestAnimationFrame"] = createProxyTest("", function (helper) {
helper.createWorker(
'new ' + function ContentScriptScope() {
var self = (function() { return this; })();
window.requestAnimationFrame(function callback() {
assert(callback == this, "callback is equal to `this`");
assert(self == this, "self is equal to `this`");
done();
});
}