Update web-platform-tests to revision 30a08266e1951b16ab2587068de64041095bbc2f

This commit is contained in:
WPT Sync Bot 2020-04-08 08:19:32 +00:00
parent 7b5ec99d25
commit 19a2b8047d
185 changed files with 3858 additions and 329 deletions

View file

@ -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>