Skip to content

Commit

Permalink
CLDR-17481 add instructions to Test.html, run.sh not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 committed Mar 28, 2024
1 parent fb05b74 commit 9cd27ed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
1 change: 1 addition & 0 deletions tools/cldr-apps/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "index.js",
"scripts": {
"build-test": "webpack --config webpack-test.config.js",
"watch-test": "npm run build-test -- --watch",
"test": "npm run nonbrowser-test && npm run browser-test",
"nonbrowser-test": "mocha --reporter spec test/nonbrowser/test-*.mjs",
"browser-test": "npm run build-test && mocha-headless-chrome -f test/Test.html",
Expand Down
17 changes: 7 additions & 10 deletions tools/cldr-apps/js/test/Test.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,14 @@
"
>
<h1>CLDR SurveyTool JavaScript Tests</h1>
<script>
if (location.protocol === "file:") {
document.write(
"<h1>Error</h1><p>The protocol should be <b>html:</b>, not <b>file:</b><br />A server is required; see <b>run.sh</b></p>"
);
}
</script>
<p>
<em>Important:</em> run with run.sh; open the browser console to check
<ul>
<li>in the 'js' directory, run <code>npm i</code> to install</li>
<li>To rebuild, run <code>npm run build-test</code></li>
<li>If you want to continuously compile, keep <code>npm run watch-test</code> (control-C to cancel)</li>
<li>open the browser console to check
for errors/warnings that are otherwise invisible!
</p>
</li>
</ul>
<p><em>References:</em></p>
<ul>
<li>
Expand Down
8 changes: 0 additions & 8 deletions tools/cldr-apps/js/test/run.sh

This file was deleted.

0 comments on commit 9cd27ed

Please sign in to comment.