https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 9ac1564951a43a313e49188ee24c90f330215b2e authored by François Beaufort on 06 December 2018, 10:51:49 UTC
[Picture-in-Picture] Don't require user gesture if capturing user media
Tip revision: 9ac1564
api-replacement-encodings.any.js
// META: title=Encoding API: replacement encoding
// META: script=resources/encodings.js

encodings_table.forEach(function(section) {
    section.encodings.filter(function(encoding) {
        return encoding.name === 'replacement';
    }).forEach(function(encoding) {
        encoding.labels.forEach(function(label) {
            test(function() {
                assert_throws(new RangeError(), function() { new TextDecoder(label); });
            }, 'Label for "replacement" should be rejected by API: ' + label);
        });
    });
});

back to top