Closed Bug 2073328 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62707 - [WebMCP] Move ModelContext unit tests to Web Platform Tests

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox158 fixed)

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 62707 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/62707
Details from upstream follow.

François Beaufort <beaufort.francois@gmail.com> wrote:

[WebMCP] Move ModelContext unit tests to Web Platform Tests

This CL moves tool tests from model_context_test.cc to WPT where
possible, removes duplicate tests already covered in WPT, and cleans up
unused test fixtures.

Tests moved to WPT:

  • ExecuteDeclarativeFormTool_Navigation ->
    declarative/executeTool-navigation.https.html
  • ExecuteDeclarativeFormTool_ValidationFailure ->
    declarative/executeTool-invalid-input.https.html
  • ExecuteDeclarativeFormTool_SPA,
    ExecuteDeclarativeFormTool_SPA_NoPreventDefault,
    ManualSubmit_RespondWithThrows,
    ExecuteDeclarativeFormTool_LateRespondWithThrows,
    ExecuteTool_RespondWith_And_Navigate ->
    declarative/executeTool-respondWith.https.html
  • ExecuteDeclarativeFormTool_SPA_NoAutoSubmit ->
    declarative/executeTool-no-autosubmit.https.html
  • ExecuteDeclarativeFormTool_FlexibleTypes ->
    declarative/executeTool-flexible-types.https.html
  • ExecuteDeclarativeFormTool_PseudoClasses,
    ExecuteDeclarativeFormTool_FormPopulatedAtEvent ->
    declarative/executeTool-pseudo-classes.https.html
  • ExecuteDeclarativeFormTool_NoToolChangeOnUnrelatedAttribute,
    ExecuteDeclarativeFormTool_NoToolChangeOnRedundantSchemaAttribute ->
    declarative/toolchange-on-attribute-mutation.https.html
  • ToolEventsDispatched ->
    imperative/executeTool-events.https.html

Tests copied to WPT (unit tests retained to verify internal ScriptToolErrorCode):

  • ExecuteDeclarativeFormTool_InvalidInput,
    ExecuteDeclarativeFormTool_InvalidSelectValue,
    ExecuteDeclarativeFormTool_ValidationFailureDetails ->
    declarative/executeTool-invalid-input.https.html
  • ExecuteDeclarativeFormTool_SPA_NoRespondWith ->
    declarative/executeTool-respondWith.https.html
  • ExecuteDeclarativeFormTool_SPA_Reject ->
    declarative/executeTool-respondWith-reject.https.html
  • ExecuteDeclarativeFormTool_Reset_Cancels,
    ExecuteDeclarativeFormTool_UnrelatedSubmitAndRemove ->
    declarative/executeTool-no-autosubmit.https.html

Duplicate tests removed (already covered in WPT):

  • ExecuteTool (covered in imperative/object-arguments.https.html)
  • GetTools_InsecureOrigin (covered in imperative/getTools-filtering.https.html)
  • ExecuteToolReturnsObject (covered in imperative/executeTool-unregister-resolution-race.https.html)
  • ExecuteDeclarativeFormTool_ToolChangeOnNameChange (covered in declarative/toolchange-on-name-change.https.html)
  • ExecuteDeclarativeFormTool_ToolChangeOnControlAddRemove (covered in declarative/toolchange-on-control-add-remove.https.html)
  • ExecuteTool_RespondWith_And_RemoveForm (covered in declarative/form_removal_submit_crash.https.html)

Bug: none
Change-Id: I5665d8f88ccf9f0af2a5d966d850488f5e7bd6df
Reviewed-on: https://chromium-review.googlesource.com/8405307
WPT-Export-Revision: 0da76d3cd6d41f152aaafd6a2f71b03d370f745c

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 67 tests and 2 subtests

Status Summary

Firefox

OK : 9[GitHub] 60[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 2[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 4[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 22[GitHub] 126[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
ERROR : 2
NOTRUN : 1

Chrome

OK : 7
PASS : 9
FAIL : 9
TIMEOUT: 3
ERROR : 1
NOTRUN : 2

Safari

OK : 9
FAIL : 22

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.