Allow WebKit clients to specify a minimum effective width for layout.
[WebKit-https.git] / LayoutTests / resources / ui-helper.js
index d026ebe..e4df524 100644 (file)
@@ -468,4 +468,12 @@ window.UIHelper = class UIHelper {
             })
         });
     }
+
+    static setMinimumEffectiveWidth(effectiveWidth)
+    {
+        if (!this.isWebKit2())
+            return Promise.resolve();
+
+        return new Promise(resolve => testRunner.runUIScript(`uiController.setMinimumEffectiveWidth(${effectiveWidth})`, resolve));
+    }
 }