mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1207499 - Part 12: Remove use of expression closure from widget/. r=roc
--HG-- extra : commitid : GR0hQlmclGY extra : rebase_source : b0f1b90db5c4e8547041842b5efe7b0fb3281eb4
This commit is contained in:
parent
39625ef8cd
commit
60b3dd821e
@ -44,7 +44,7 @@
|
||||
|
||||
function onLoad() {
|
||||
foo();
|
||||
setTimeout(function() foo(), 0);
|
||||
setTimeout(() => foo(), 0);
|
||||
}
|
||||
]]></script>
|
||||
</window>
|
||||
|
@ -51,7 +51,9 @@ function shouldThrowException(fun, exception) {
|
||||
e.result === exception)
|
||||
}
|
||||
}
|
||||
function doesntThrowException(fun) !shouldThrowException(fun)
|
||||
function doesntThrowException(fun) {
|
||||
return !shouldThrowException(fun);
|
||||
}
|
||||
|
||||
var baseWindow = getBaseWindowInterface(this);
|
||||
var nativeHandle = baseWindow.nativeHandle;
|
||||
|
@ -67,7 +67,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
function doesntThrow(s,c,m) !shouldThrow(s,c,m)
|
||||
function doesntThrow(s,c,m) {
|
||||
return !shouldThrow(s,c,m);
|
||||
}
|
||||
|
||||
ok(doesntThrow(TP.STATE_NO_PROGRESS, 0, 0), "No progress state can be set");
|
||||
ok(doesntThrow(TP.STATE_INDETERMINATE, 0, 0), "Indeterminate state can be set");
|
||||
|
Loading…
Reference in New Issue
Block a user