Merge pull request #3311 from brendandahl/wrap-driver
Wrap driver code in closure.
This commit is contained in:
commit
13d4f3b7cd
@ -21,6 +21,7 @@
|
||||
/*
|
||||
* A Test Driver for PDF.js
|
||||
*/
|
||||
(function DriverClosure() {
|
||||
|
||||
// Disable worker support for running test as
|
||||
// https://github.com/mozilla/pdf.js/pull/764#issuecomment-2638944
|
||||
@ -43,7 +44,7 @@ function queryParams() {
|
||||
return params;
|
||||
}
|
||||
|
||||
function load() {
|
||||
window.load = function load() {
|
||||
var params = queryParams();
|
||||
browser = params.browser;
|
||||
var manifestFile = params.manifestFile;
|
||||
@ -79,7 +80,7 @@ function load() {
|
||||
setTimeout(function() {
|
||||
r.send(null);
|
||||
}, delay);
|
||||
}
|
||||
};
|
||||
|
||||
function cleanup() {
|
||||
// Clear out all the stylesheets since a new one is created for each font.
|
||||
@ -416,3 +417,5 @@ function log(str) {
|
||||
if (str.lastIndexOf('\n') >= 0)
|
||||
checkScrolling();
|
||||
}
|
||||
|
||||
})(); // DriverClosure
|
||||
|
Loading…
x
Reference in New Issue
Block a user