Chromium Code Reviews| Index: third_party/WebKit/Source/core/testing/Internals.idl |
| diff --git a/third_party/WebKit/Source/core/testing/Internals.idl b/third_party/WebKit/Source/core/testing/Internals.idl |
| index 49dbe8bd5e83ab0b5096d01b5571ac5a2c22a280..f1b512ebc488d7dc58c97045f1c1108d277afb2f 100644 |
| --- a/third_party/WebKit/Source/core/testing/Internals.idl |
| +++ b/third_party/WebKit/Source/core/testing/Internals.idl |
| @@ -303,6 +303,10 @@ |
| [RaisesException] void setNetworkConnectionInfoOverride(boolean onLine, DOMString type, double downlinkMaxMbps); |
| void clearNetworkConnectionInfoOverride(); |
| + // These functions are for testing the effective connection type. You must call clearEffectiveConnectionTypeOverride at the end. |
| + [RaisesException] void setEffectiveConnectionTypeOverride(DOMString type); |
|
Nate Chapin
2016/09/16 21:56:41
These APIs want to override logic that doesn't res
jkarlin
2016/09/19 14:38:25
With the testRunner API, I'd have to configure the
|
| + void clearEffectiveConnectionTypeOverride(); |
| + |
| // This function is for testing HitRegions on Canvas2D. |
| unsigned long countHitRegions(CanvasRenderingContext2D context); |