Protractor中的untrackOutstandingTimeouts设置是什么?

ale*_*cxe 11 javascript testing automation angularjs protractor

在Protractor参考配置中,有提到的untrackOutstandingTimeouts设置:

// Protractor will track outstanding $timeouts by default, and report them in 
// the error message if Protractor fails to synchronize with Angular in time. 
// In order to do this Protractor needs to decorate $timeout. 
// CAUTION: If your app decorates $timeout, you must turn on this flag. This 
// is false by default.
untrackOutstandingTimeouts: false,
Run Code Online (Sandbox Code Playgroud)

我从来没有见过有人改变设置.设置的实际用法是什么?我应该什么时候设置它true

Vla*_*dac 3

跟踪未完成的超时,以便量角器错误可以报告它们。如果关闭此功能,您将不会在错误中获得超时信息。

但是,如果您装饰$timeout对象(无论出于何种原因需要装饰它),您可能需要将其关闭,因为 Protractor 也会装饰同一个对象,并且您在需要时不会看到对其所做的更改。

这是根据用户请求添加到此处的。