| Index: third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHost.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHost.js b/third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHost.js
|
| index 528fda298277ea56c2297ef55881d034d18501a6..14d426c2b175154e8992131afb2dcf2ef1eaed7d 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHost.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHost.js
|
| @@ -522,3 +522,16 @@ window.InspectorFrontendHost = InspectorFrontendHost;
|
| * @type {!Common.EventTarget}
|
| */
|
| InspectorFrontendHost.events;
|
| +
|
| +/**
|
| + * @param {!Object<string, string>=} prefs
|
| + * @return {boolean}
|
| + */
|
| +Host.isUnderTest = function(prefs) {
|
| + if (InspectorFrontendHost.isUnderTest())
|
| + return true;
|
| +
|
| + if (prefs)
|
| + return prefs['isUnderTest'] === 'true';
|
| + return Common.settings.createSetting('isUnderTest', false).get();
|
| +};
|
|
|