зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1181747 followup. Also need to adjust the assert in the test.
This commit is contained in:
Родитель
11acb3521f
Коммит
29430328c7
|
@ -714,8 +714,9 @@ exports["test requestAnimationFrame"] = createProxyTest("", function (helper) {
|
||||||
|
|
||||||
helper.createWorker(
|
helper.createWorker(
|
||||||
'new ' + function ContentScriptScope() {
|
'new ' + function ContentScriptScope() {
|
||||||
|
var self = (function() { return this; })();
|
||||||
window.requestAnimationFrame(function callback() {
|
window.requestAnimationFrame(function callback() {
|
||||||
assert(callback == this, "callback is equal to `this`");
|
assert(self == this, "self is equal to `this`");
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -714,8 +714,9 @@ exports["test requestAnimationFrame"] = createProxyTest("", function (helper) {
|
||||||
|
|
||||||
helper.createWorker(
|
helper.createWorker(
|
||||||
'new ' + function ContentScriptScope() {
|
'new ' + function ContentScriptScope() {
|
||||||
|
var self = (function() { return this; })();
|
||||||
window.requestAnimationFrame(function callback() {
|
window.requestAnimationFrame(function callback() {
|
||||||
assert(callback == this, "callback is equal to `this`");
|
assert(self == this, "self is equal to `this`");
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче