Merge pull request #18623 from timvandermeij/uimanager-test
[Editor] Move setting `window.uiManager` back to the test code
This commit is contained in:
commit
79dce534f5
@ -806,7 +806,6 @@ class AnnotationEditorUIManager {
|
|||||||
this.isShiftKeyDown = false;
|
this.isShiftKeyDown = false;
|
||||||
|
|
||||||
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("TESTING")) {
|
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("TESTING")) {
|
||||||
window.uiManager = this;
|
|
||||||
Object.defineProperty(this, "reset", {
|
Object.defineProperty(this, "reset", {
|
||||||
value: () => {
|
value: () => {
|
||||||
this.selectAll();
|
this.selectAll();
|
||||||
|
|||||||
@ -990,7 +990,13 @@ describe("Highlight Editor", () => {
|
|||||||
"tracemonkey.pdf",
|
"tracemonkey.pdf",
|
||||||
".annotationEditorLayer",
|
".annotationEditorLayer",
|
||||||
null,
|
null,
|
||||||
null,
|
{
|
||||||
|
eventBusSetup: eventBus => {
|
||||||
|
eventBus.on("annotationeditoruimanager", ({ uiManager }) => {
|
||||||
|
window.uiManager = uiManager;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
highlightEditorColors: "red=#AB0000",
|
highlightEditorColors: "red=#AB0000",
|
||||||
supportsCaretBrowsingMode: true,
|
supportsCaretBrowsingMode: true,
|
||||||
|
|||||||
@ -832,7 +832,13 @@ describe("Stamp Editor", () => {
|
|||||||
"empty.pdf",
|
"empty.pdf",
|
||||||
".annotationEditorLayer",
|
".annotationEditorLayer",
|
||||||
null,
|
null,
|
||||||
null,
|
{
|
||||||
|
eventBusSetup: eventBus => {
|
||||||
|
eventBus.on("annotationeditoruimanager", ({ uiManager }) => {
|
||||||
|
window.uiManager = uiManager;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
enableAltText: true,
|
enableAltText: true,
|
||||||
enableUpdatedAddImage: true,
|
enableUpdatedAddImage: true,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user