Bug 1399401 - Escape backslashes in GCLI screenshot test,r=pmoore
authorJ. Ryan Stinnett <jryans@gmail.com>
Fri, 08 Dec 2017 16:43:43 -0500
changeset 776793 1f8e34bd956bd3e80e46c68e510c8159d0008e5a
parent 776792 e4c4f0ee3e74bf899d1fee024abfd067b6ec2509
child 776794 221d4804b6ed022ee578c6002e8c7def408fa632
child 776841 ae5f6843bb631a32869fa29beb24a36498ed205a
push id104994
push usermaglione.k@gmail.com
push dateTue, 03 Apr 2018 18:21:08 +0000
reviewerspmoore
bugs1399401
milestone61.0a1
Bug 1399401 - Escape backslashes in GCLI screenshot test,r=pmoore
devtools/client/commandline/test/browser_cmd_screenshot.js
--- a/devtools/client/commandline/test/browser_cmd_screenshot.js
+++ b/devtools/client/commandline/test/browser_cmd_screenshot.js
@@ -95,17 +95,17 @@ function* addTabWithToolbarRunTests(win)
     },
   ]);
 
   // Test capture to file
   let file = FileUtils.getFile("TmpD", [ "TestScreenshotFile.png" ]);
 
   yield helpers.audit(options, [
     {
-      setup: "screenshot " + file.path,
+      setup: "screenshot " + file.path.replace(/\\/g, "\\\\"),
       check: {
         args: {
           filename: { value: "" + file.path },
           fullpage: { value: false },
           clipboard: { value: false },
         },
       },
       exec: {