Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(713)

Unified Diff: third_party/WebKit/Source/core/testing/Internals.idl

Issue 2338623004: Add Blink setting to block doc.written scripts on 2g-like networks (Closed)
Patch Set: Nit Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | third_party/WebKit/Source/web/FrameLoaderClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698