| head.js |
Any shared setup for these tests lives here. |
3218 |
- |
| test_Chat.js |
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ |
36848 |
- |
| test_ChatUtils.js |
Constants for test memories
|
23899 |
- |
| test_Conversation.js |
|
3992 |
- |
| test_ConversationSuggestions.js |
Creates a sandbox with stubs for openAIEngine methods used by buildConversation/loadPrompt.
Returns { sb, fakeEngineInstance } — caller must call sb.restore() in finally.
@param {object} runResult - Resolved value for fakeEngineInstance.run.
@param {sinon.SinonSandbox} [existingSb] - Reuse an existing sandbox instead of creating one.
@returns {{ sb: sinon.SinonSandbox, fakeEngineInstance: object }}
|
46930 |
- |
| test_engine_build_object_form.js |
|
6482 |
- |
| test_intent_classifier.js |
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ |
12951 |
- |
| test_ManageTabs.js |
|
13336 |
- |
| test_Memories.js |
Minimal gate-passing session bundle used to exercise the sessions pipeline.
The fake engines below return canned output regardless of input, so the exact
contents only matter for `renderSessionsForPrompt` assertions.
|
48580 |
- |
| test_MemoriesChatSource.js |
|
13217 |
- |
| test_MemoriesHistorySource.js |
Create a single visit object for PlacesUtils.history.insertMany.
@param {string} url
@param {string} title
@param {number} baseMs base timestamp in ms
@param {number} offsetMs offset from base in ms (negative = earlier)
|
29766 |
- |
| test_MemoriesHistorySource_blocklist.js |
Test blocking word present in history title
|
1761 |
- |
| test_MemoriesManager.js |
Constants for test memories
|
36234 |
- |
| test_MemoriesSessionGate.js |
Build a session bundle with sensible defaults. Override any field.
@param {object} [overrides] Fields to override on the default session.
@returns {object} A session bundle for the gate under test.
|
7265 |
- |
| test_MemoriesSessions.js |
|
5483 |
- |
| test_Message.js |
|
1483 |
- |
| test_PromptLoader_buildConversation.js |
|
7872 |
- |
| test_PromptOptimizer.js |
Testing Strategy for compactMessages (Prompt Compaction)
This suite verifies the middleware's structural safety and inter-turn
deduplication logic. Coverage includes:
- test_no_tool_calls_bypass: Verifies arrays without tool calls are safely deep-cloned and passed through unmodified.
- test_basic_deduplication: Verifies older page reads are replaced with placeholders when the exact same URL is read in a later turn.
- test_multi_url_partial_deduplication: Verifies precise index-matching when only a subset of URLs overlap across multi-URL requests.
- test_global_failsafe_non_array: Verifies invalid non-array inputs are safely bypassed without throwing errors.
- test_granular_failsafe_bad_json: Verifies malformed JSON arguments/contents are skipped gracefully without crashing the pipeline.
|
6863 |
- |
| test_SearchBrowsingHistory.js |
Mock engine that returns a fixed vector per entry title, mirroring the one
used in the PlacesSemanticHistoryManager unit tests. Titles not in `entries`
embed to a zero vector.
|
23173 |
- |
| test_SearchBrowsingHistoryDomainBoost.js |
|
1865 |
- |
| test_SecurityProperties.js |
|
916 |
- |
| test_SensitiveInfoDetector.js |
|
20348 |
- |
| test_TelemetryManager.js |
|
4930 |
- |
| test_TelemetryUtils.js |
|
26390 |
- |
| test_TitleGeneration.js |
Constants for preference keys and test values
|
13177 |
- |
| test_ToolDefinitions.js |
Tests for validating tool definitions in Tools.sys.mjs
The tests are designed to verify that tool definitions are in compliance
with the OpenAI API standard.
These tests ensure that:
1. Tool definitions have the correct structure
2. Parameters match what the actual functions accept
3. Required fields are present and correctly specified
4. Parameter types are valid and consistent
|
4900 |
- |
| test_Tools_AddMemory.js |
|
4034 |
- |
| test_Tools_GetOpenTabs.js |
|
9417 |
- |
| test_Tools_GetPageContent.js |
|
15821 |
- |
| test_Tools_GetUserMemories.js |
|
1062 |
- |
| test_Tools_ManageTabs.js |
Schema / registration tests
|
6142 |
- |
| test_Tools_RunSearch.js |
|
6546 |
- |
| test_Tools_SearchBrowsingHistory.js |
searchBrowsingHistory tests
Wrapper test: ensures Tools.searchBrowsingHistory() returns a valid JSON
structure for time-range browsing history search (empty searchTerm).
|
5115 |
- |
| test_Tools_WorldCup.js |
|
6653 |
- |
| test_Utils.js |
Constants for preference keys and test values
|
11202 |
- |
| test_Utils_RemoteSettings.js |
|
3065 |
- |
| test_Utils_RemoteSettings_ChatModelChoice.js |
|
3698 |
- |
| xpcshell.toml |
|
1229 |
- |