File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 [clj-chrome-devtools.automation.fixture :as cdp-fixture]
1010 [clj-chrome-devtools.automation.launcher :as cdp-launcher]
1111 [clj-chrome-devtools.commands.page :as page]
12- [clj-chrome-devtools.commands.dom :as dom]
1312 [clj-chrome-devtools.commands.emulation :as emulation]
1413 [clj-chrome-devtools.commands.browser :as browser]
1514 [clojure.string :as string]
170169 {:errors [(format " Could not parse ImageMagick output\n stdout: %s \n stderr: %s"
171170 stdout stderr)]}))))))
172171
173- (defn- body-dimensions [{:keys [connection] :as session}]
174- (when-let [body (cdp-automation/sel1 session " body" )]
175- (:model (dom/get-box-model connection body))))
176-
177172(defn- browser-dimensions [{:keys [connection]}]
178173 (select-keys (:bounds (browser/get-window-for-target connection {}))
179174 [:width :height ]))
194189 :mobile false }))
195190 (emulation/set-page-scale-factor connection {:page-scale-factor 1.0 })))
196191
197- (defn- take-screenshot [session {:keys [reference-file screenshot-directory resize-to-contents]} opts ]
192+ (defn- take-screenshot [session {:keys [reference-file screenshot-directory resize-to-contents]} _opts ]
198193 (when (and resize-to-contents (some resize-to-contents [:height? :width? ]))
199194 (resize-window-to-contents! session resize-to-contents))
200195
Original file line number Diff line number Diff line change 3838 (let [connect-url (get-in config [:options :closure-defines 'figwheel.repl/connect-url])]
3939 (assert connect-url " Could not detect a url to connect to" )
4040 connect-url)
41- (catch Exception e
41+ (catch Exception _e
4242 (fig-api/stop build-id)
4343 nil )))))
4444
You can’t perform that action at this time.
0 commit comments