Skip to content

Commit

Permalink
Fix QUnit bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronyeh committed Jun 21, 2023
1 parent a6a50dd commit 6c05dee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/flow-headless-browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</head>
<body>
<div id="qunit-tests"></div>
<script src="../node_modules/qunit/qunit/qunit.js"></script>
<script src="qunit/qunit.js"></script>
<script src="../build/cjs/vexflow-debug-with-tests.js"></script>
<script>
QUnit.config.noglobals = true;
Expand Down
6 changes: 2 additions & 4 deletions tests/flow-old-browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
<head>
<title>VexFlow - JavaScript Music Notation and Guitar Tab</title>
<link rel="stylesheet" href="flow.css" type="text/css" media="screen" />
<link rel="stylesheet" href="support/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 @@ -119,9 +120,6 @@ <h3>
return Vex.Flow.Font.loadWebFonts();
}
})
// 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.
.then(() => loadScript('support/qunit.js'))
.then(() => {
// Show only failed tests.
QUnit.config.hidepassed = true;
Expand Down

0 comments on commit 6c05dee

Please sign in to comment.