blob: 22f99c93bf7d7195be1e2d73b3bc44dd8bf62c93 [file] [log] [blame]
Test Encrypted Media extension of WebKitMediaKeys isTypeSupported() method.
Always return false for a null type.
EXPECTED (WebKitMediaKeys.isTypeSupported(null) == 'false') OK
Always return false for an empty type.
EXPECTED (WebKitMediaKeys.isTypeSupported('') == 'false') OK
EXPECTED (WebKitMediaKeys.isTypeSupported('', '') == 'false') OK
EXPECTED (WebKitMediaKeys.isTypeSupported('', null) == 'false') OK
EXPECTED (WebKitMediaKeys.isTypeSupported('', undefined) == 'false') OK
EXPECTED (WebKitMediaKeys.isTypeSupported('', 'video/invalid') == 'false') OK
Always return true for supported types.
EXPECTED (WebKitMediaKeys.isTypeSupported('com.webcore.mock') == 'true') OK
Always return true for supported types and containers.
EXPECTED (WebKitMediaKeys.isTypeSupported('com.webcore.mock', 'video/mock') == 'true') OK
Always return false for supported types but unsupported containers.
EXPECTED (WebKitMediaKeys.isTypeSupported('com.webcore.mock', 'video/invalid') == 'false') OK
END OF TEST