Merge pull request #19100 from Rob--W/test-trailing-whitespace-fixup

Drop trailing whitespace from test/unit/api_spec.js
This commit is contained in:
calixteman 2024-11-25 09:32:02 +01:00 committed by GitHub
commit 079eb24621
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2438,19 +2438,19 @@ describe("api", function () {
const manifesto = ` const manifesto = `
The Mozilla Manifesto Addendum The Mozilla Manifesto Addendum
Pledge for a Healthy Internet Pledge for a Healthy Internet
The open, global internet is the most powerful communication and collaboration resource we have ever seen. The open, global internet is the most powerful communication and collaboration resource we have ever seen.
It embodies some of our deepest hopes for human progress. It embodies some of our deepest hopes for human progress.
It enables new opportunities for learning, building a sense of shared humanity, and solving the pressing problems It enables new opportunities for learning, building a sense of shared humanity, and solving the pressing problems
facing people everywhere. facing people everywhere.
Over the last decade we have seen this promise fulfilled in many ways. Over the last decade we have seen this promise fulfilled in many ways.
We have also seen the power of the internet used to magnify divisiveness, We have also seen the power of the internet used to magnify divisiveness,
incite violence, promote hatred, and intentionally manipulate fact and reality. incite violence, promote hatred, and intentionally manipulate fact and reality.
We have learned that we should more explicitly set out our aspirations for the human experience of the internet. We have learned that we should more explicitly set out our aspirations for the human experience of the internet.
We do so now. We do so now.
`.repeat(100); `.repeat(100);
expect(manifesto.length).toEqual(80500); expect(manifesto.length).toEqual(79300);
let loadingTask = getDocument(buildGetDocumentParams("empty.pdf")); let loadingTask = getDocument(buildGetDocumentParams("empty.pdf"));
let pdfDoc = await loadingTask.promise; let pdfDoc = await loadingTask.promise;