HTMLElement factory doesn't need to call MediaPlayer::isAvailable
[WebKit-https.git] / LayoutTests / media / media-disabled-expected.txt
1 RUN(internals.settings.setMediaEnabled(false))
2 RUN(video = document.createElement("video"))
3 EXPECTED (video instanceof HTMLVideoElement == 'false') OK
4 EXPECTED (video instanceof HTMLUnknownElement == 'true') OK
5 RUN(audio = document.createElement("audio"))
6 EXPECTED (audio instanceof HTMLAudioElement == 'false') OK
7 EXPECTED (audio instanceof HTMLUnknownElement == 'true') OK
8
9 RUN(internals.settings.setMediaEnabled(true))
10 RUN(video = document.createElement("video"))
11 EXPECTED (video instanceof HTMLVideoElement == 'true') OK
12 RUN(audio = document.createElement("audio"))
13 EXPECTED (audio instanceof HTMLAudioElement == 'true') OK
14 END OF TEST
15