[Modern Media Controls] Turn media/modern-media-controls/ios-inline-media-controls...
[WebKit-https.git] / LayoutTests / media / network-no-source-const-shadow.html
1 <!DOCTYPE html>
2 <script src="../resources/js-test-pre.js"></script>
3 <script>
4 description("Test that NETWORK_NO_SOURCE is immutable");
5
6 shouldBe("HTMLMediaElement.NETWORK_NO_SOURCE", "3");
7 shouldBe("HTMLMediaElement.prototype.NETWORK_NO_SOURCE", "3");
8
9 var element = document.createElement("audio");
10
11 shouldBe("element.NETWORK_NO_SOURCE", "3");
12
13 HTMLMediaElement.NETWORK_NO_SOURCE = 13;
14 HTMLMediaElement.prototype.NETWORK_NO_SOURCE = 14;
15 element.NETWORK_NO_SOURCE = 15;
16
17 shouldBe("HTMLMediaElement.NETWORK_NO_SOURCE", "3");
18 shouldBe("HTMLAudioElement.prototype.NETWORK_NO_SOURCE", "3");
19 shouldBe("element.NETWORK_NO_SOURCE", "3");
20 </script>
21 <script src="../resources/js-test-post.js"></script>