chore(build): fix flakiness of the element probe global test
This commit is contained in:
parent
62c2ed7c43
commit
fb16c39496
|
@ -354,7 +354,7 @@ export function setValueOnPath(global: any, path: string, value: any) {
|
|||
var obj: any = global;
|
||||
while (parts.length > 1) {
|
||||
var name = parts.shift();
|
||||
if (obj.hasOwnProperty(name)) {
|
||||
if (obj.hasOwnProperty(name) && isPresent(obj[name])) {
|
||||
obj = obj[name];
|
||||
} else {
|
||||
obj = obj[name] = {};
|
||||
|
|
|
@ -23,5 +23,5 @@ export function enableDebugTools(ref: ComponentRef): void {
|
|||
* Disables Angular 2 tools.
|
||||
*/
|
||||
export function disableDebugTools(): void {
|
||||
context.ng = undefined;
|
||||
delete context.ng;
|
||||
}
|
||||
|
|
|
@ -72,4 +72,4 @@ export const ELEMENT_PROBE_PROVIDERS: any[] = CONST_EXPR([
|
|||
CONST_EXPR(new Provider(AppViewListener, {useExisting: DebugElementViewListener})),
|
||||
]);
|
||||
|
||||
export const ELEMENT_PROBE_BINDINGS = ELEMENT_PROBE_PROVIDERS;
|
||||
export const ELEMENT_PROBE_BINDINGS = ELEMENT_PROBE_PROVIDERS;
|
||||
|
|
|
@ -68,7 +68,7 @@ export function main() {
|
|||
|
||||
async.done();
|
||||
});
|
||||
}), 10000);
|
||||
}), 1000);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue