Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
tor-browser-bundle-testsuite
Commits
8c3f4a2e
Unverified
Commit
8c3f4a2e
authored
Mar 03, 2014
by
boklm
Browse files
lib/screenshot.js: remove use of utils module
parent
39a19dbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
mozmill-tests/lib/screenshot.js
View file @
8c3f4a2e
...
...
@@ -7,9 +7,6 @@
Cu
.
import
(
"
resource://gre/modules/Services.jsm
"
);
// Include the required modules
var
utils
=
require
(
"
utils
"
);
/**
* This function creates a screenshot of the window provided in the given
* controller and highlights elements from the coordinates provided in the
...
...
@@ -69,12 +66,7 @@ function _saveCanvas(canvas) {
file
=
Services
.
dirsvc
.
get
(
"
TmpD
"
,
Ci
.
nsIFile
);
}
var
fileName
=
utils
.
appInfo
.
name
+
"
-
"
+
utils
.
appInfo
.
locale
+
"
.
"
+
utils
.
appInfo
.
version
+
"
.
"
+
utils
.
appInfo
.
buildID
+
"
.
"
+
utils
.
appInfo
.
os
+
"
.png
"
;
file
.
append
(
fileName
);
file
.
append
(
"
screenshot.png
"
);
// if a file already exists, don't overwrite it and create a new name
file
.
createUnique
(
Ci
.
nsIFile
.
NORMAL_FILE_TYPE
,
parseInt
(
"
0666
"
,
8
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment