blob: 928e720730ed3cbf69961c46d626e8c552ef35d5 [file] [log] [blame]
<!DOCTYPE html>
<script src="../resources/js-test-pre.js"></script>
<script>
description("Test that NETWORK_NO_SOURCE is immutable");
shouldBe("HTMLMediaElement.NETWORK_NO_SOURCE", "3");
shouldBe("HTMLMediaElement.prototype.NETWORK_NO_SOURCE", "3");
var element = document.createElement("audio");
shouldBe("element.NETWORK_NO_SOURCE", "3");
HTMLMediaElement.NETWORK_NO_SOURCE = 13;
HTMLMediaElement.prototype.NETWORK_NO_SOURCE = 14;
element.NETWORK_NO_SOURCE = 15;
shouldBe("HTMLMediaElement.NETWORK_NO_SOURCE", "3");
shouldBe("HTMLAudioElement.prototype.NETWORK_NO_SOURCE", "3");
shouldBe("element.NETWORK_NO_SOURCE", "3");
</script>
<script src="../resources/js-test-post.js"></script>