Skip to content

Commit

Permalink
Fix JS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tombh committed Jun 18, 2019
1 parent 31def7c commit 554f7f3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion webext/test/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ global.dimensions = {

global.document = {
addEventListener: () => {},
body: {
contains: () => {
return true;
}
},
getElementById: () => {},
getElementsByTagName: () => {
return [
Expand Down Expand Up @@ -135,7 +140,12 @@ let functions = {
let text_builder = new TextBuilder(
channel,
graphics_builder.dimensions,
graphics_builder
graphics_builder,
{
browsh: {
use_experimental_text_visibility: true
}
}
);
graphics_builder._getScreenshotWithText(() => {
graphics_builder._getScreenshotWithoutText();
Expand Down

0 comments on commit 554f7f3

Please sign in to comment.