Use 48-hour preset test window
This commit is contained in:
1 parent
aa4c2e3dab
commit
5711573650
4 files changed
+11
-11
No files matched your search
@@ -16,7 +16,7 @@
|
||||
const SCHEDULER_EPOCH_MAX = 0xffffffff;
|
||||
const EARLY_JOIN_MS = 60 * 60 * 1000;
|
||||
const DEFAULT_START_HOUR = 17;
|
||||
const DEFAULT_WINDOW_DAYS = 1;
|
||||
const DEFAULT_WINDOW_DAYS = 2;
|
||||
const SCHEDULE_MODE_RELATIVE = "relative";
|
||||
const SCHEDULE_MODE_ABSOLUTE = "absolute";
|
||||
const CLOCK_RESET_COMMAND = "clkreboot";
|
||||
|
||||
+3
-3
@@ -9,7 +9,7 @@ create a shareable temporary-radio test URL.</span>
|
||||
<div data-role="content">
|
||||
<div data-role="test-content" hidden>
|
||||
<section class="preset-test-hero" aria-labelledby="preset-test-title">
|
||||
<p class="preset-test-eyebrow" data-role="preset-test-eyebrow">MeshCore · one-day temporary preset test</p>
|
||||
<p class="preset-test-eyebrow" data-role="preset-test-eyebrow">MeshCore · default 48-hour temporary preset test</p>
|
||||
<div class="preset-test-hero-row">
|
||||
<div>
|
||||
<h2 id="preset-test-title">
|
||||
@@ -375,8 +375,8 @@ clock</code></pre>
|
||||
tuple. The generated URL converts the times to exact UTC instants, keeps
|
||||
the date punctuation readable, and keeps <code>tz</code> so the page
|
||||
displays them in the organizer's local time zone. With no URL settings,
|
||||
the builder starts at 5:00 PM tomorrow and ends at 5:00 PM the following
|
||||
day in the selected time zone.
|
||||
the builder starts at 5:00 PM tomorrow and ends at 5:00 PM two days
|
||||
later in the selected time zone, creating a 48-hour window.
|
||||
</p>
|
||||
|
||||
<div class="preset-test-generator-layout">
|
||||
|
||||
+1
-1
@@ -30,4 +30,4 @@ extra_javascript:
|
||||
- _javascript/telemetry_decoder.js
|
||||
- _javascript/management_decoder.js
|
||||
- _javascript/filter_tool.js
|
||||
- _javascript/preset_test.js?v=20260923-1
|
||||
- _javascript/preset_test.js?v=20260923-2
|
||||
@@ -121,9 +121,9 @@ assert.strictEqual(
|
||||
);
|
||||
assert.strictEqual(
|
||||
defaults.endMs,
|
||||
Date.parse("2026-09-24T17:00:00-07:00")
|
||||
Date.parse("2026-09-25T17:00:00-07:00")
|
||||
);
|
||||
assert.strictEqual(defaults.endEpoch - defaults.startEpoch, 24 * 60 * 60);
|
||||
assert.strictEqual(defaults.endEpoch - defaults.startEpoch, 48 * 60 * 60);
|
||||
assert.strictEqual(defaults.freq, config.freq);
|
||||
assert.strictEqual(defaults.bw, 500);
|
||||
assert.strictEqual(defaults.sf, 8);
|
||||
@@ -131,10 +131,10 @@ assert.strictEqual(defaults.cr, 7);
|
||||
assert.strictEqual(defaults.tx, 22);
|
||||
assert.strictEqual(defaults.tz, config.tz);
|
||||
assert.strictEqual(tool.isDefaultPreset(defaults), true);
|
||||
assert.strictEqual(tool.isDefaultPreset(config), false);
|
||||
assert.strictEqual(tool.isDefaultPreset(config), true);
|
||||
assert.strictEqual(tool.presetPageTitle(defaults), "Default temporary radio test · 910.1 MHz");
|
||||
assert.match(tool.presetPageSummary(defaults), /910\.1 MHz, 500 kHz, SF8, CR7, 22 dBm/);
|
||||
assert.strictEqual(tool.presetEyebrow(defaults), "MeshCore · default 24-hour temporary preset test");
|
||||
assert.strictEqual(tool.presetEyebrow(defaults), "MeshCore · default 48-hour temporary preset test");
|
||||
|
||||
const dstDefault = tool.configFromSearch(
|
||||
"?tz=America%2FLos_Angeles",
|
||||
@@ -147,9 +147,9 @@ assert.strictEqual(
|
||||
);
|
||||
assert.strictEqual(
|
||||
tool.zonedInputValue(dstDefault.endMs, dstDefault.tz),
|
||||
"2026-03-08T17:00"
|
||||
"2026-03-09T17:00"
|
||||
);
|
||||
assert.strictEqual(dstDefault.endMs - dstDefault.startMs, 23 * 60 * 60 * 1000);
|
||||
assert.strictEqual(dstDefault.endMs - dstDefault.startMs, 47 * 60 * 60 * 1000);
|
||||
assert.strictEqual(tool.isDefaultPreset(dstDefault), true);
|
||||
|
||||
const requestedLink = tool.configFromSearch(
|
||||
|
||||
Reference in new issue
Block a user