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
c882ddc3
Unverified
Commit
c882ddc3
authored
Feb 21, 2014
by
boklm
Browse files
Add a mozmill test to visit check.tpo and take a screenshot
parent
e2a1462c
Changes
1
Hide whitespace changes
Inline
Side-by-side
mozmill-tests/tbb-tests/tbbScreenshot.js
0 → 100644
View file @
c882ddc3
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"
use strict
"
;
// Include this if opening relocatable, potentially remotely located files
const
BASE_URL
=
collector
.
addHttpResource
(
"
../mozilla-mozmill-tests/data/
"
);
const
TEST_DATA
=
BASE_URL
+
"
path/file.html
"
;
// Include this if opening external urls
// const TEST_DATA = "http://www.external.url/path/file.html";
// Include this only if specifying a timeout other than 5000ms
const
TEST_EXAMPLE_TIMEOUT
=
3000
;
var
screenshot
=
require
(
"
../mozilla-mozmill-tests/firefox/lib/screenshot
"
);
// Setup for the test
var
setupModule
=
function
(
aModule
)
{
aModule
.
controller
=
mozmill
.
getBrowserController
();
}
// Run the test
var
testStartTBB
=
function
()
{
controller
.
open
(
'
http://check.torproject.org
'
);
controller
.
waitForPageLoad
();
screenshot
.
create
(
controller
,
[]);
}
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