1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Enable the "should have an alt attribute from toolTip" unit-test in Node.js

Despite the pending-message mentioning "Image", this appears to be another case where the code actually depends on [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob#browser_compatibility); note cf3ca8b5bc/src/core/xfa/template.js (L3453)
This commit is contained in:
Jonas Jenwald 2024-11-03 00:10:23 +01:00
parent cf3ca8b5bc
commit faf9e32ecb

View file

@ -13,7 +13,6 @@
* limitations under the License.
*/
import { isNodeJS } from "../../src/shared/util.js";
import { XFAFactory } from "../../src/core/xfa/factory.js";
describe("XFAFactory", function () {
@ -145,9 +144,6 @@ describe("XFAFactory", function () {
});
it("should have an alt attribute from toolTip", async () => {
if (isNodeJS) {
pending("Image is not supported in Node.js.");
}
const xml = `
<?xml version="1.0"?>
<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">