mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 30a08266e1951b16ab2587068de64041095bbc2f
This commit is contained in:
parent
7b5ec99d25
commit
19a2b8047d
185 changed files with 3858 additions and 329 deletions
|
@ -13,4 +13,13 @@ detection_test('BarcodeDetectionTest', async t => {
|
|||
assert_equals(result[2], 'qr_code', 'format 3');
|
||||
}, 'get supported barcode formats');
|
||||
|
||||
detection_test('BarcodeDetectionTest', async (t, detectionTest) => {
|
||||
// Disable built-in support for barcode detection to test fallback handling.
|
||||
detectionTest.MockBarcodeDetectionProvider().simulateNoImplementation();
|
||||
|
||||
const result = await BarcodeDetector.getSupportedFormats();
|
||||
assert_equals(result.length, 0, 'result.length');
|
||||
|
||||
}, 'getSupportedFormats() resolves with empty list when unsupported');
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue