build: reformat repo to new clang@1.4.0 (#36613)

PR Close #36613
This commit is contained in:
Joey Perrott
2020-04-13 16:40:21 -07:00
committed by atscott
parent 5e80e7e216
commit 698b0288be
1160 changed files with 31667 additions and 24000 deletions

View File

@ -6,50 +6,62 @@
* found in the LICENSE file at https://angular.io/license
*/
(function(_global) {
var mark = _global['__zone_symbol__mark'];
var measure = _global['__zone_symbol__measure'];
var testRunner = _global['__zone_symbol__testRunner'];
var setTimeout = _global['setTimeout'];
var clearTimeout = _global['clearTimeout'];
var nativeSetTimeout = _global['__zone_symbol__setTimeout'];
var nativeClearTimeout = _global['__zone_symbol__clearTimeout'];
var zone = _global['__zone_symbol__callbackZone'];
var testTarget = {
title: 'timer',
times: 10,
before: function() {
_global['__zone_symbol__callbackContext'].measureName = 'setTimeout_callback';
_global['__zone_symbol__callbackContext'].type = 'macroTask';
_global['__zone_symbol__callbackContext'].source = 'setTimeout';
},
apis: [
{
supportClear: true,
method: 'setTimeout',
nativeMethod: '__zone_symbol__setTimeout',
clearMethod: 'clearTimeout',
nativeClearMethod: '__zone_symbol__clearTimeout',
run: function() { return setTimeout(function() {}); },
runClear: function(timerId) { return clearTimeout(timerId); },
nativeRun: function() { return nativeSetTimeout(function() {}); },
nativeRunClear: function(timerId) { return nativeClearTimeout(timerId); }
var mark = _global['__zone_symbol__mark'];
var measure = _global['__zone_symbol__measure'];
var testRunner = _global['__zone_symbol__testRunner'];
var setTimeout = _global['setTimeout'];
var clearTimeout = _global['clearTimeout'];
var nativeSetTimeout = _global['__zone_symbol__setTimeout'];
var nativeClearTimeout = _global['__zone_symbol__clearTimeout'];
var zone = _global['__zone_symbol__callbackZone'];
var testTarget = {
title: 'timer',
times: 10,
before: function() {
_global['__zone_symbol__callbackContext'].measureName = 'setTimeout_callback';
_global['__zone_symbol__callbackContext'].type = 'macroTask';
_global['__zone_symbol__callbackContext'].source = 'setTimeout';
},
apis: [
{
supportClear: true,
method: 'setTimeout',
nativeMethod: '__zone_symbol__setTimeout',
clearMethod: 'clearTimeout',
nativeClearMethod: '__zone_symbol__clearTimeout',
run: function() {
return setTimeout(function() {});
},
{
isCallback: true,
supportClear: false,
method: 'setTimeout_callback',
nativeMethod: 'native_setTimeout_callback',
run: function() { zone.run(function() { setTimeout(function() {}); }); },
nativeRun: function() {
var func = function() {};
nativeSetTimeout(function() {
mark('native_setTimeout_callback');
func.apply(this, arguments);
measure('native_setTimeout_callback', 'native_setTimeout_callback');
});
}
runClear: function(timerId) {
return clearTimeout(timerId);
},
nativeRun: function() {
return nativeSetTimeout(function() {});
},
nativeRunClear: function(timerId) {
return nativeClearTimeout(timerId);
}
],
};
return testRunner(testTarget);
},
{
isCallback: true,
supportClear: false,
method: 'setTimeout_callback',
nativeMethod: 'native_setTimeout_callback',
run: function() {
zone.run(function() {
setTimeout(function() {});
});
},
nativeRun: function() {
var func = function() {};
nativeSetTimeout(function() {
mark('native_setTimeout_callback');
func.apply(this, arguments);
measure('native_setTimeout_callback', 'native_setTimeout_callback');
});
}
}
],
};
return testRunner(testTarget);
}(typeof window === 'undefined' ? global : window));