Skip to content

Commit

Permalink
Fix broken DOM tests
Browse files Browse the repository at this point in the history
These were broken due to some changes in
d670020, which makes HUD.init require
that the document is loaded.
  • Loading branch information
philc committed Mar 3, 2020
1 parent be9ef7f commit 2c62a4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/dom_tests/dom_test_setup.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
window.vimiumDomTestsAreRunning = true

// Install frontend event handlers.
HUD.init()
Frame.registerFrameId({chromeFrameId: 0});

getSelection = () =>
window.getSelection().toString()

// Shoulda.js doesn't support async code, so we try not to use any.
Utils.nextTick = (func) => func()

document.addEventListener("DOMContentLoaded", () => HUD.init());

0 comments on commit 2c62a4f

Please sign in to comment.