Merge pull request #19254 from timvandermeij/refactor-tests
Improve the test folder structure
This commit is contained in:
commit
4547f230ba
@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<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">
|
<link rel="stylesheet" type="text/css" href="../../node_modules/jasmine-core/lib/jasmine-core/jasmine.css">
|
||||||
|
|
||||||
|
|||||||
@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
import { TestReporter } from "../unit/testreporter.js";
|
import { TestReporter } from "../reporter.js";
|
||||||
|
|
||||||
async function initializePDFJS(callback) {
|
async function initializePDFJS(callback) {
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
|
|||||||
@ -13,6 +13,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* eslint-disable no-console */
|
||||||
|
|
||||||
import Jasmine from "jasmine";
|
import Jasmine from "jasmine";
|
||||||
|
|
||||||
async function runTests(results) {
|
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");
|
onAllSessionsClosed = onAllSessionsClosedAfterTests("integration");
|
||||||
startServer();
|
startServer();
|
||||||
|
|
||||||
const { runTests } = await import("./integration-boot.mjs");
|
const { runTests } = await import("./integration/jasmine-boot.js");
|
||||||
await startBrowsers({
|
await startBrowsers({
|
||||||
baseUrl: null,
|
baseUrl: null,
|
||||||
initializeSession: session => {
|
initializeSession: session => {
|
||||||
|
|||||||
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
import { GlobalWorkerOptions } from "pdfjs/display/worker_options.js";
|
import { GlobalWorkerOptions } from "pdfjs/display/worker_options.js";
|
||||||
import { isNodeJS } from "../../src/shared/util.js";
|
import { isNodeJS } from "../../src/shared/util.js";
|
||||||
import { TestReporter } from "./testreporter.js";
|
import { TestReporter } from "../reporter.js";
|
||||||
|
|
||||||
async function initializePDFJS(callback) {
|
async function initializePDFJS(callback) {
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<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">
|
<link rel="stylesheet" type="text/css" href="../../node_modules/jasmine-core/lib/jasmine-core/jasmine.css">
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user