fx-compat: Fix search dialogs (#2631)
This commit is contained in:
parent
b78b9cad1f
commit
8face792c0
15 changed files with 1056 additions and 1217 deletions
|
@ -73,7 +73,7 @@ describe("ZoteroPane", function() {
|
|||
// TODO: Test changing a condition
|
||||
function (dialog) {},
|
||||
'accept',
|
||||
'chrome://zotero/content/searchDialog.xul'
|
||||
'chrome://zotero/content/searchDialog.xhtml'
|
||||
);
|
||||
var id = yield zp.newSearch();
|
||||
yield promise;
|
||||
|
@ -86,7 +86,7 @@ describe("ZoteroPane", function() {
|
|||
var promise = waitForDialog(
|
||||
function (dialog) {},
|
||||
'cancel',
|
||||
'chrome://zotero/content/searchDialog.xul'
|
||||
'chrome://zotero/content/searchDialog.xhtml'
|
||||
);
|
||||
var id = yield zp.newSearch();
|
||||
yield promise;
|
||||
|
@ -766,7 +766,7 @@ describe("ZoteroPane", function() {
|
|||
describe("#editSelectedCollection()", function () {
|
||||
it("should edit a saved search", function* () {
|
||||
var search = yield createDataObject('search');
|
||||
var promise = waitForWindow('chrome://zotero/content/searchDialog.xul', function (win) {
|
||||
var promise = waitForWindow('chrome://zotero/content/searchDialog.xhtml', function (win) {
|
||||
let searchBox = win.document.getElementById('search-box');
|
||||
var c = searchBox.search.getCondition(
|
||||
searchBox.search.addCondition("title", "contains", "foo")
|
||||
|
@ -783,7 +783,7 @@ describe("ZoteroPane", function() {
|
|||
it("should edit a saved search in a group", function* () {
|
||||
var group = yield getGroup();
|
||||
var search = yield createDataObject('search', { libraryID: group.libraryID });
|
||||
var promise = waitForWindow('chrome://zotero/content/searchDialog.xul', function (win) {
|
||||
var promise = waitForWindow('chrome://zotero/content/searchDialog.xhtml', function (win) {
|
||||
let searchBox = win.document.getElementById('search-box');
|
||||
var c = searchBox.search.getCondition(
|
||||
searchBox.search.addCondition("title", "contains", "foo")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue