Skip to content

webnn: add 24 tests of integer data types to improve code coverage#59057

Merged
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-cl-7698254
Apr 9, 2026
Merged

webnn: add 24 tests of integer data types to improve code coverage#59057
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-cl-7698254

Conversation

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Apr 8, 2026

This CL adds 24 new integer data type tests across 16 files to cover
previously uncovered code paths in
services/webnn/tflite/graph_builder_tflite.cc.

Details of the added tests are shown in the following table.

Modified Test File Tests Added Types Added
pad.https.any.js 3 tests int32 (default + value), uint8
add.https.any.js 1 test int32
mul.https.any.js 2 tests int32, uint32
div.https.any.js 1 test int32
min.https.any.js 2 tests int32, uint8
max.https.any.js 2 tests int32, uint8
concat.https.any.js 2 test int32
where.https.any.js 1 test int32 values
expand.https.any.js 1 test int32
slice.https.any.js 1 test int32
transpose.https.any.js 1 test int32
equal.https.any.js 1 test int32 inputs
greater.https.any.js 1 test int32 inputs
lesser.https.any.js 1 test int32 inputs
reduce_sum.https.any.js 2 tests int32 (default + axes/keepDims)
triangular.https.any.js 2 tests int32 (upper + lower)

Bug: 491318549
Change-Id: I0bbabfa340d0708e9af7d20929c9fad83afa992d
Cq-Include-Trybots: luci.chromium.try:win11-blink-rel, mac14.arm64-blink-rel, mac14-blink-rel, mac15.arm64-blink-rel, mac15-blink-rel, linux-blink-rel
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7698254
Reviewed-by: Hu, Ningxin <ningxin.hu@intel.com>
Auto-Submit: Dai, Feng <feng.dai@intel.com>
Commit-Queue: Dai, Feng <feng.dai@intel.com>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1611940}

This CL adds 24 new integer data type tests across 16 files to cover
previously uncovered code paths in
services/webnn/tflite/graph_builder_tflite.cc.

Details of the added tests are shown in the following table.

|Modified Test File      |Tests Added|Types Added                    |
|------------------------|-----------|-------------------------------|
|pad.https.any.js        |3 tests    |int32 (default + value), uint8 |
|add.https.any.js        |1 test     |int32                          |
|mul.https.any.js        |2 tests    |int32, uint32                  |
|div.https.any.js        |1 test     |int32                          |
|min.https.any.js        |2 tests    |int32, uint8                   |
|max.https.any.js        |2 tests    |int32, uint8                   |
|concat.https.any.js     |2 test     |int32                          |
|where.https.any.js      |1 test     |int32 values                   |
|expand.https.any.js     |1 test     |int32                          |
|slice.https.any.js      |1 test     |int32                          |
|transpose.https.any.js  |1 test     |int32                          |
|equal.https.any.js      |1 test     |int32 inputs                   |
|greater.https.any.js    |1 test     |int32 inputs                   |
|lesser.https.any.js     |1 test     |int32 inputs                   |
|reduce_sum.https.any.js |2 tests    |int32 (default + axes/keepDims)|
|triangular.https.any.js |2 tests    |int32 (upper + lower)          |

Bug: 491318549
Change-Id: I0bbabfa340d0708e9af7d20929c9fad83afa992d
Cq-Include-Trybots: luci.chromium.try:win11-blink-rel, mac14.arm64-blink-rel, mac14-blink-rel, mac15.arm64-blink-rel, mac15-blink-rel, linux-blink-rel
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7698254
Reviewed-by: Hu, Ningxin <ningxin.hu@intel.com>
Auto-Submit: Dai, Feng <feng.dai@intel.com>
Commit-Queue: Dai, Feng <feng.dai@intel.com>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1611940}
Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 4b90179 into master Apr 9, 2026
27 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-7698254 branch April 9, 2026 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants