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:
commit
4547f230ba
8 changed files with 7 additions and 5 deletions
|
@ -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">
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
import { TestReporter } from "../unit/testreporter.js";
|
||||
import { TestReporter } from "../reporter.js";
|
||||
|
||||
async function initializePDFJS(callback) {
|
||||
await Promise.all(
|
||||
|
|
|
@ -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 |
|
@ -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 => {
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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">
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue