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

@ -14,7 +14,9 @@ describe('MutationObserver', ifEnvSupports('MutationObserver', function() {
let elt: HTMLDivElement;
const testZone = Zone.current.fork({name: 'test'});
beforeEach(function() { elt = document.createElement('div'); });
beforeEach(function() {
elt = document.createElement('div');
});
it('should run observers within the zone', function(done) {
let ob;
@ -35,12 +37,18 @@ describe('MutationObserver', ifEnvSupports('MutationObserver', function() {
let ob: MutationObserver;
let flag = false;
const elt = document.createElement('div');
const childZone =
Zone.current.fork({name: 'test', onInvokeTask: function() { flag = true; }});
const childZone = Zone.current.fork({
name: 'test',
onInvokeTask: function() {
flag = true;
}
});
childZone.run(function() { ob = new MutationObserver(function() {}); });
childZone.run(function() {
ob = new MutationObserver(function() {});
});
ob !.disconnect();
ob!.disconnect();
expect(flag).toBe(false);
});
}));
@ -62,6 +70,6 @@ describe('WebKitMutationObserver', ifEnvSupports('WebKitMutationObserver', funct
ob.observe(elt, {childList: true});
});
elt !.innerHTML = '<p>hey</p>';
elt!.innerHTML = '<p>hey</p>';
});
}));