Skip to content

Commit

Permalink
Local copy of QUnit 2.19.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronyeh committed Jun 2, 2023
1 parent d9f8714 commit cfcbae1
Show file tree
Hide file tree
Showing 4 changed files with 7,543 additions and 7 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@
"entry",
"tests/flow.html",
"tests/flow.css",
"tests/qunit/qunit.css",
"tests/qunit/qunit.js",
"releases/vexflow-min.js",
"releases/vexflow-debug.js",
"AUTHORS.md"
Expand Down
10 changes: 3 additions & 7 deletions tests/flow.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
Use flow-old-browser.html instead.
-->
<head>
<title>VexFlow - JavaScript Music Notation and Guitar Tab</title>
<title>VexFlow Tests</title>
<link rel="stylesheet" href="flow.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../node_modules/qunit/qunit/qunit.css" type="text/css" media="screen" />
<link rel="stylesheet" href="qunit/qunit.css" />
<script src="qunit/qunit.js"></script>
<meta charset="UTF-8" />
</head>
<body>
Expand Down Expand Up @@ -147,10 +148,6 @@ <h3>
// document.fonts.forEach((fontFace) => console.log(fontFace));
}

// Load qunit.js as late as possible to avoid a race condition!
// The QUnit module drop down box doesn't appear if Vex.Flow.Test.runTests() runs too late.
await loadScript('../node_modules/qunit/qunit/qunit.js');

// Optionally specify the QUnit module or filter in the fragment identifier.
if (hashParams) {
if (hashParams.has('module')) {
Expand All @@ -164,7 +161,6 @@ <h3>
// Show only failed tests.
QUnit.config.hidepassed = true;
QUnit.config.noglobals = true;
QUnit.start();
VF.Test.run();
</script>
</body>
Expand Down
Loading

0 comments on commit cfcbae1

Please sign in to comment.