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
parent 7d8173071e
commit 3bc95b7aa6
2 changed files with 4 additions and 2 deletions

View File

@ -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();
});
}

View File

@ -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();
});
}