1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 14:48:08 +02:00

Merge pull request #19254 from timvandermeij/refactor-tests

Improve the test folder structure
This commit is contained in:
Tim van der Meij 2024-12-22 20:22:20 +01:00 committed by GitHub
commit 4547f230ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 7 additions and 5 deletions

View file

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>pdf.js unit test</title>
<title>PDF.js font tests</title>
<link rel="stylesheet" type="text/css" href="../../node_modules/jasmine-core/lib/jasmine-core/jasmine.css">

View file

@ -40,7 +40,7 @@
"use strict";
import { TestReporter } from "../unit/testreporter.js";
import { TestReporter } from "../reporter.js";
async function initializePDFJS(callback) {
await Promise.all(

View file

@ -13,6 +13,8 @@
* limitations under the License.
*/
/* eslint-disable no-console */
import Jasmine from "jasmine";
async function runTests(results) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Before After
Before After

View file

@ -806,7 +806,7 @@ async function startIntegrationTest() {
onAllSessionsClosed = onAllSessionsClosedAfterTests("integration");
startServer();
const { runTests } = await import("./integration-boot.mjs");
const { runTests } = await import("./integration/jasmine-boot.js");
await startBrowsers({
baseUrl: null,
initializeSession: session => {

View file

@ -42,7 +42,7 @@
import { GlobalWorkerOptions } from "pdfjs/display/worker_options.js";
import { isNodeJS } from "../../src/shared/util.js";
import { TestReporter } from "./testreporter.js";
import { TestReporter } from "../reporter.js";
async function initializePDFJS(callback) {
await Promise.all(

View file

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>pdf.js unit test</title>
<title>PDF.js unit tests</title>
<link rel="stylesheet" type="text/css" href="../../node_modules/jasmine-core/lib/jasmine-core/jasmine.css">