From ea04c32c9da533ade422d16bd7f880cf10a744f2 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 27 Dec 2020 19:48:00 -0500 Subject: [PATCH] Fix running of tests after adding tab bar --- chrome/content/zotero/overlay.js | 9 +++++++++ chrome/content/zotero/standalone/standalone.xul | 1 + 2 files changed, 10 insertions(+) diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js index 9b4754aca7..5c0540a18d 100644 --- a/chrome/content/zotero/overlay.js +++ b/chrome/content/zotero/overlay.js @@ -41,6 +41,15 @@ var ZoteroOverlay = new function () { throw new Error("Skipping loading"); } + // Keep in sync with standalone.xul + if (Zotero.test) { + let ns = 'http://www.w3.org/1999/xhtml'; + let div = document.createElementNS(ns, 'div'); + let beforeNode = document.getElementById('browser'); + div.id = 'tab-bar-container'; + beforeNode.parentNode.insertBefore(div, beforeNode); + } + ZoteroPane.init(); } catch (e) { diff --git a/chrome/content/zotero/standalone/standalone.xul b/chrome/content/zotero/standalone/standalone.xul index 080d95d2e5..42434bb6aa 100644 --- a/chrome/content/zotero/standalone/standalone.xul +++ b/chrome/content/zotero/standalone/standalone.xul @@ -416,6 +416,7 @@ +