Skip to content

Commit

Permalink
Merge pull request #19254 from timvandermeij/refactor-tests
Browse files Browse the repository at this point in the history
Improve the test folder structure
  • Loading branch information
timvandermeij authored Dec 22, 2024
2 parents 94f425d + cdce9c2 commit 4547f23
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 5 deletions.
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

0 comments on commit 4547f23

Please sign in to comment.