fx-compat: Replace nsIDOMParser with new DOMParser()

This commit is contained in:
Dan Stillman 2020-07-05 17:20:31 -04:00
parent 993320655e
commit dd2ff63019
14 changed files with 19 additions and 38 deletions

View file

@ -420,8 +420,7 @@ describe("Zotero.Sync.Storage.Mode.WebDAV", function () {
req.respond(201, { "Fake-Server-Match": 1 }, "");
}
else if (req.method == "PUT" && req.url == `${davURL}zotero/${item.key}.prop`) {
var parser = Components.classes["@mozilla.org/xmlextras/domparser;1"]
.createInstance(Components.interfaces.nsIDOMParser);
var parser = new DOMParser();
var doc = parser.parseFromString(req.requestBody, "text/xml");
assert.equal(
doc.documentElement.getElementsByTagName('mtime')[0].textContent, mtime