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:
Tooru Fujisawa 2015-09-23 18:42:20 +09:00
parent 39625ef8cd
commit 60b3dd821e
3 changed files with 7 additions and 3 deletions

View File

@ -44,7 +44,7 @@
function onLoad() {
foo();
setTimeout(function() foo(), 0);
setTimeout(() => foo(), 0);
}
]]></script>
</window>

View File

@ -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;

View File

@ -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");