Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the test folder structure #19254

Merged
merged 3 commits into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/font/font_test.html
Original file line number Diff line number Diff line change
@@ -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">

Expand Down
2 changes: 1 addition & 1 deletion test/font/jasmine-boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

"use strict";

import { TestReporter } from "../unit/testreporter.js";
import { TestReporter } from "../reporter.js";

async function initializePDFJS(callback) {
await Promise.all(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* limitations under the License.
*/

/* eslint-disable no-console */

import Jasmine from "jasmine";

async function runTests(results) {
Expand Down
File renamed without changes.
Binary file modified test/resources/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion test/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/jasmine-boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion test/unit/unit_test.html
Original file line number Diff line number Diff line change
@@ -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">

Expand Down
Loading