Commit 2f9cb148 authored by abarth@webkit.org's avatar abarth@webkit.org

IETC audio-interface-inherit.129 claims NETWORK_NO_SOURCE should not be overrideable

https://bugs.webkit.org/show_bug.cgi?id=76085

Reviewed by Eric Seidel.

As far as I can tell, the IETC test of this feature is wrong.
NETWORK_NO_SOURCE should be immutable on the interface object and on
the interface prototype object, but JavaScript should be able to shadow
the property on an instance.

* media/network-no-source-const-shadow-expected.txt: Added.
* media/network-no-source-const-shadow.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104761 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent b74b6d5f
2012-01-11 Adam Barth <abarth@webkit.org>
IETC audio-interface-inherit.129 claims NETWORK_NO_SOURCE should not be overrideable
https://bugs.webkit.org/show_bug.cgi?id=76085
Reviewed by Eric Seidel.
As far as I can tell, the IETC test of this feature is wrong.
NETWORK_NO_SOURCE should be immutable on the interface object and on
the interface prototype object, but JavaScript should be able to shadow
the property on an instance.
* media/network-no-source-const-shadow-expected.txt: Added.
* media/network-no-source-const-shadow.html: Added.
2012-01-11 Adam Barth <abarth@webkit.org>
iframe sandbox doesn't block videos from autoplaying (IETC automatic-feature-block-autoplay-video)
Test that NETWORK_NO_SOURCE is immutable at the appropriate times
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS HTMLMediaElement.NETWORK_NO_SOURCE is 3
PASS HTMLMediaElement.prototype.NETWORK_NO_SOURCE is 3
PASS element.NETWORK_NO_SOURCE is 3
PASS HTMLMediaElement.NETWORK_NO_SOURCE is 3
PASS HTMLAudioElement.prototype.NETWORK_NO_SOURCE is 3
PASS element.NETWORK_NO_SOURCE is 15
PASS successfullyParsed is true
TEST COMPLETE
<!DOCTYPE html>
<script src="../fast/js/resources/js-test-pre.js"></script>
<script>
description("Test that NETWORK_NO_SOURCE is immutable at the appropriate times");
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", "15");
</script>
<script src="../fast/js/resources/js-test-post.js"></script>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment