Changeset 123724 in webkit
- Timestamp:
- Jul 26, 2012 3:34:09 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 13 deleted
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r123722 r123724 1 2012-07-26 Tommy Widenflycht <tommyw@google.com> 2 3 MediaStream API: Remove DeprecatedPeerConnection 4 https://bugs.webkit.org/show_bug.cgi?id=92106 5 6 Reviewed by Adam Barth. 7 8 Changed all usages of DeprecatedPeerConnection to PeerConnection00. 9 10 * fast/dom/call-a-constructor-as-a-function-expected.txt: 11 * fast/dom/call-a-constructor-as-a-function.html: 12 * fast/mediastream/peerconnection-addstream-expected.txt: 13 * fast/mediastream/peerconnection-argument-types-expected.txt: 14 * fast/mediastream/peerconnection-eventlistener-optional-argument.html: 15 * fast/mediastream/peerconnection-mediastreamlist.html: 16 * fast/mediastream/peerconnection-removestream-expected.txt: 17 * fast/mediastream/script-tests/peerconnection-addstream.js: 18 * fast/mediastream/script-tests/peerconnection-argument-types.js: 19 * fast/mediastream/script-tests/peerconnection-removestream.js: 20 * platform/chromium/fast/dom/call-a-constructor-as-a-function-expected.txt: 21 * platform/gtk/fast/dom/call-a-constructor-as-a-function-expected.txt: 22 * platform/gtk/fast/js/global-constructors-expected.txt: 23 * platform/win/fast/dom/call-a-constructor-as-a-function-expected.txt: 24 1 25 2012-07-26 Mike West <mkwst@chromium.org> 2 26 -
trunk/LayoutTests/fast/dom/call-a-constructor-as-a-function-expected.txt
r110745 r123724 19 19 PASS Int8Array() threw exception TypeError: '[object Int8ArrayConstructor]' is not a function (evaluating 'Int8Array()'). 20 20 PASS MessageChannel() threw exception TypeError: '[object MessageChannelConstructor]' is not a function (evaluating 'MessageChannel()'). 21 SKIP webkitDeprecatedPeerConnection is not implemented.22 21 PASS SharedWorker() threw exception TypeError: '[object SharedWorkerConstructor]' is not a function (evaluating 'SharedWorker()'). 23 22 PASS Uint16Array() threw exception TypeError: '[object Uint16ArrayConstructor]' is not a function (evaluating 'Uint16Array()'). -
trunk/LayoutTests/fast/dom/call-a-constructor-as-a-function.html
r110587 r123724 7 7 description("This tests if TypeError is thrown or not when we call a constructor as a normal function."); 8 8 9 var test_constructors = ["ArrayBuffer", "AudioContext", "FormData", "DataView", "EventSource", "FileReader", "Float32Array", "Float64Array", "Audio", "Image", "Option", "Int16Array", "Int32Array", "Int8Array", "MessageChannel", " webkitDeprecatedPeerConnection", "SharedWorker", "Uint16Array", "Uint32Array", "Uint8Array", "WebKitCSSMatrix", "WebKitPoint", "WebSocket", "Worker", "XMLHttpRequest", "XSLTProcessor"];9 var test_constructors = ["ArrayBuffer", "AudioContext", "FormData", "DataView", "EventSource", "FileReader", "Float32Array", "Float64Array", "Audio", "Image", "Option", "Int16Array", "Int32Array", "Int8Array", "MessageChannel", "SharedWorker", "Uint16Array", "Uint32Array", "Uint8Array", "WebKitCSSMatrix", "WebKitPoint", "WebSocket", "Worker", "XMLHttpRequest", "XSLTProcessor"]; 10 10 11 11 test_constructors.forEach(function (constructor) { -
trunk/LayoutTests/fast/mediastream/peerconnection-addstream-expected.txt
r110587 r123724 1 Tests DeprecatedPeerConnection::addStream().1 Tests PeerConnection00::addStream(). 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". -
trunk/LayoutTests/fast/mediastream/peerconnection-argument-types-expected.txt
r116511 r123724 1 Tests the acceptable types for arguments to method for DeprecatedPeerConnectiondefination.1 Tests the acceptable types for arguments to method for PeerConnection00 defination. 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 4 5 5 6 PASS typeof webkit DeprecatedPeerConnection=== 'function' is true7 PASS new webkit DeprecatedPeerConnection() threw exception TypeError: Not enough arguments.8 PASS new webkit DeprecatedPeerConnection("STUN 203.0.113.2:2478") threw exception TypeError: Not enough arguments.9 PASS new webkit DeprecatedPeerConnection("STUN relay.example.net:3478") threw exception TypeError: Not enough arguments.10 PASS new webkit DeprecatedPeerConnection("STUN example.net") threw exception TypeError: Not enough arguments.11 PASS new webkit DeprecatedPeerConnection("STUNS 203.0.113.2:2478") threw exception TypeError: Not enough arguments.12 PASS new webkit DeprecatedPeerConnection("STUNS relay.example.net:3478") threw exception TypeError: Not enough arguments.13 PASS new webkit DeprecatedPeerConnection("STUNS example.net") threw exception TypeError: Not enough arguments.14 PASS new webkit DeprecatedPeerConnection("TURN 203.0.113.2:2478") threw exception TypeError: Not enough arguments.15 PASS new webkit DeprecatedPeerConnection("TURN relay.example.net:3478") threw exception TypeError: Not enough arguments.16 PASS new webkit DeprecatedPeerConnection("TURN example.net") threw exception TypeError: Not enough arguments.17 PASS new webkit DeprecatedPeerConnection("TURNS 203.0.113.2:2478") threw exception TypeError: Not enough arguments.18 PASS new webkit DeprecatedPeerConnection("TURNS relay.example.net:3478") threw exception TypeError: Not enough arguments.19 PASS new webkit DeprecatedPeerConnection("TURNS example.net") threw exception TypeError: Not enough arguments.20 PASS new webkit DeprecatedPeerConnection("TURN NONE") threw exception TypeError: Not enough arguments.21 PASS new webkit DeprecatedPeerConnection("TURNS NONE") threw exception TypeError: Not enough arguments.22 PASS new webkit DeprecatedPeerConnection("STUN NONE") threw exception TypeError: Not enough arguments.23 PASS new webkit DeprecatedPeerConnection("STUNS NONE") threw exception TypeError: Not enough arguments.24 PASS new webkit DeprecatedPeerConnection("undefined") threw exception TypeError: Not enough arguments.25 PASS new webkit DeprecatedPeerConnection("null") threw exception TypeError: Not enough arguments.26 PASS new webkit DeprecatedPeerConnection({}) threw exception TypeError: Not enough arguments.27 PASS new webkit DeprecatedPeerConnection(42) threw exception TypeError: Not enough arguments.28 PASS new webkit DeprecatedPeerConnection(Infinity) threw exception TypeError: Not enough arguments.29 PASS new webkit DeprecatedPeerConnection(-Infinity) threw exception TypeError: Not enough arguments.30 PASS new webkit DeprecatedPeerConnection(emptyFunction) threw exception TypeError: Not enough arguments.31 PASS new webkit DeprecatedPeerConnection("STUN 203.0.113.2:2478",emptyFunction) did not throw exception.32 PASS new webkit DeprecatedPeerConnection("STUN relay.example.net:3478",emptyFunction) did not throw exception.33 PASS new webkit DeprecatedPeerConnection("STUN example.net",emptyFunction) did not throw exception.34 PASS new webkit DeprecatedPeerConnection("STUNS 203.0.113.2:2478",emptyFunction) did not throw exception.35 PASS new webkit DeprecatedPeerConnection("STUNS relay.example.net:3478",emptyFunction) did not throw exception.36 PASS new webkit DeprecatedPeerConnection("STUNS example.net",emptyFunction) did not throw exception.37 PASS new webkit DeprecatedPeerConnection("TURN 203.0.113.2:2478",emptyFunction) did not throw exception.38 PASS new webkit DeprecatedPeerConnection("TURN relay.example.net:3478",emptyFunction) did not throw exception.39 PASS new webkit DeprecatedPeerConnection("TURN example.net",emptyFunction) did not throw exception.40 PASS new webkit DeprecatedPeerConnection("TURNS 203.0.113.2:2478",emptyFunction) did not throw exception.41 PASS new webkit DeprecatedPeerConnection("TURNS relay.example.net:3478",emptyFunction) did not throw exception.42 PASS new webkit DeprecatedPeerConnection("TURNS example.net",emptyFunction) did not throw exception.43 PASS new webkit DeprecatedPeerConnection("TURN NONE",emptyFunction) did not throw exception.44 PASS new webkit DeprecatedPeerConnection("TURNS NONE",emptyFunction) did not throw exception.45 PASS new webkit DeprecatedPeerConnection("STUN NONE",emptyFunction) did not throw exception.46 PASS new webkit DeprecatedPeerConnection("STUNS NONE",emptyFunction) did not throw exception.47 PASS new webkit DeprecatedPeerConnection("TURN NONE",undefined) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.48 PASS new webkit DeprecatedPeerConnection("TURNS NONE",{}) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.49 PASS new webkit DeprecatedPeerConnection("STUN NONE",42) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.50 PASS new webkit DeprecatedPeerConnection("STUNS NONE",Infinity) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.51 PASS new webkit DeprecatedPeerConnection("STUNS NONE",-Infinity) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.6 PASS typeof webkitPeerConnection00 === 'function' is true 7 PASS new webkitPeerConnection00() threw exception TypeError: Not enough arguments. 8 PASS new webkitPeerConnection00("STUN 203.0.113.2:2478") threw exception TypeError: Not enough arguments. 9 PASS new webkitPeerConnection00("STUN relay.example.net:3478") threw exception TypeError: Not enough arguments. 10 PASS new webkitPeerConnection00("STUN example.net") threw exception TypeError: Not enough arguments. 11 PASS new webkitPeerConnection00("STUNS 203.0.113.2:2478") threw exception TypeError: Not enough arguments. 12 PASS new webkitPeerConnection00("STUNS relay.example.net:3478") threw exception TypeError: Not enough arguments. 13 PASS new webkitPeerConnection00("STUNS example.net") threw exception TypeError: Not enough arguments. 14 PASS new webkitPeerConnection00("TURN 203.0.113.2:2478") threw exception TypeError: Not enough arguments. 15 PASS new webkitPeerConnection00("TURN relay.example.net:3478") threw exception TypeError: Not enough arguments. 16 PASS new webkitPeerConnection00("TURN example.net") threw exception TypeError: Not enough arguments. 17 PASS new webkitPeerConnection00("TURNS 203.0.113.2:2478") threw exception TypeError: Not enough arguments. 18 PASS new webkitPeerConnection00("TURNS relay.example.net:3478") threw exception TypeError: Not enough arguments. 19 PASS new webkitPeerConnection00("TURNS example.net") threw exception TypeError: Not enough arguments. 20 PASS new webkitPeerConnection00("TURN NONE") threw exception TypeError: Not enough arguments. 21 PASS new webkitPeerConnection00("TURNS NONE") threw exception TypeError: Not enough arguments. 22 PASS new webkitPeerConnection00("STUN NONE") threw exception TypeError: Not enough arguments. 23 PASS new webkitPeerConnection00("STUNS NONE") threw exception TypeError: Not enough arguments. 24 PASS new webkitPeerConnection00("undefined") threw exception TypeError: Not enough arguments. 25 PASS new webkitPeerConnection00("null") threw exception TypeError: Not enough arguments. 26 PASS new webkitPeerConnection00({}) threw exception TypeError: Not enough arguments. 27 PASS new webkitPeerConnection00(42) threw exception TypeError: Not enough arguments. 28 PASS new webkitPeerConnection00(Infinity) threw exception TypeError: Not enough arguments. 29 PASS new webkitPeerConnection00(-Infinity) threw exception TypeError: Not enough arguments. 30 PASS new webkitPeerConnection00(emptyFunction) threw exception TypeError: Not enough arguments. 31 PASS new webkitPeerConnection00("STUN 203.0.113.2:2478",emptyFunction) did not throw exception. 32 PASS new webkitPeerConnection00("STUN relay.example.net:3478",emptyFunction) did not throw exception. 33 PASS new webkitPeerConnection00("STUN example.net",emptyFunction) did not throw exception. 34 PASS new webkitPeerConnection00("STUNS 203.0.113.2:2478",emptyFunction) did not throw exception. 35 PASS new webkitPeerConnection00("STUNS relay.example.net:3478",emptyFunction) did not throw exception. 36 PASS new webkitPeerConnection00("STUNS example.net",emptyFunction) did not throw exception. 37 PASS new webkitPeerConnection00("TURN 203.0.113.2:2478",emptyFunction) did not throw exception. 38 PASS new webkitPeerConnection00("TURN relay.example.net:3478",emptyFunction) did not throw exception. 39 PASS new webkitPeerConnection00("TURN example.net",emptyFunction) did not throw exception. 40 PASS new webkitPeerConnection00("TURNS 203.0.113.2:2478",emptyFunction) did not throw exception. 41 PASS new webkitPeerConnection00("TURNS relay.example.net:3478",emptyFunction) did not throw exception. 42 PASS new webkitPeerConnection00("TURNS example.net",emptyFunction) did not throw exception. 43 PASS new webkitPeerConnection00("TURN NONE",emptyFunction) did not throw exception. 44 PASS new webkitPeerConnection00("TURNS NONE",emptyFunction) did not throw exception. 45 PASS new webkitPeerConnection00("STUN NONE",emptyFunction) did not throw exception. 46 PASS new webkitPeerConnection00("STUNS NONE",emptyFunction) did not throw exception. 47 PASS new webkitPeerConnection00("TURN NONE",undefined) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17. 48 PASS new webkitPeerConnection00("TURNS NONE",{}) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17. 49 PASS new webkitPeerConnection00("STUN NONE",42) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17. 50 PASS new webkitPeerConnection00("STUNS NONE",Infinity) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17. 51 PASS new webkitPeerConnection00("STUNS NONE",-Infinity) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17. 52 52 PASS successfullyParsed is true 53 53 -
trunk/LayoutTests/fast/mediastream/peerconnection-eventlistener-optional-argument.html
r110587 r123724 11 11 description("This test confirms if the third argument of addEventListener() and removeEventListener() is optional."); 12 12 13 var pc = new webkit DeprecatedPeerConnection("some.server.com", function() {});13 var pc = new webkitPeerConnection00("some.server.com", function() {}); 14 14 shouldBe('pc.addEventListener("foo", function() {})', 'undefined'); 15 15 shouldBe('pc.addEventListener("foo", function() {}, false)', 'undefined'); -
trunk/LayoutTests/fast/mediastream/peerconnection-mediastreamlist.html
r110587 r123724 12 12 description("This test confirms that out-of-bounds access of MediaStreamList returns undefined."); 13 13 14 var pc = new webkit DeprecatedPeerConnection("", function() {});14 var pc = new webkitPeerConnection00("", function() {}); 15 15 16 16 shouldBeUndefined('pc.localStreams[0xbadc0ded]'); -
trunk/LayoutTests/fast/mediastream/peerconnection-removestream-expected.txt
r110587 r123724 1 Tests DeprecatedPeerConnection::removeStream().1 Tests PeerConnection00::removeStream(). 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 4 5 5 6 PASS pc.removeStream() threw TypeError: Not enough arguments7 PASS pc.removeStream(undefined) threw Error: TYPE_MISMATCH_ERR: DOM Exception 178 PASS pc.removeStream(null) threw Error: TYPE_MISMATCH_ERR: DOM Exception 179 PASS pc.removeStream(new Array()) threw TypeError: Type error10 PASS pc.removeStream({}) threwTypeError: Type error11 PASS pc.removeStream(42) threwTypeError: Type error12 PASS pc.removeStream(Infinity) threwTypeError: Type error13 PASS pc.removeStream(-Infinity) threwTypeError: Type error6 PASS pc.removeStream(); threw exception TypeError: Not enough arguments. 7 PASS pc.removeStream(undefined); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17. 8 PASS pc.removeStream(null); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17. 9 PASS pc.removeStream(new Array()); threw exception TypeError: Type error. 10 PASS pc.removeStream({}); threw exception TypeError: Type error. 11 PASS pc.removeStream(42); threw exception TypeError: Type error. 12 PASS pc.removeStream(Infinity); threw exception TypeError: Type error. 13 PASS pc.removeStream(-Infinity); threw exception TypeError: Type error. 14 14 PASS successfullyParsed is true 15 15 -
trunk/LayoutTests/fast/mediastream/script-tests/peerconnection-addstream.js
r110587 r123724 1 description("Tests DeprecatedPeerConnection::addStream().");1 description("Tests PeerConnection00::addStream()."); 2 2 3 var pc = new webkit DeprecatedPeerConnection("STUN some.server.com", function() {});3 var pc = new webkitPeerConnection00("STUN some.server.com", function() {}); 4 4 5 5 try { -
trunk/LayoutTests/fast/mediastream/script-tests/peerconnection-argument-types.js
r116511 r123724 1 description("Tests the acceptable types for arguments to method for DeprecatedPeerConnectiondefination.");1 description("Tests the acceptable types for arguments to method for PeerConnection00 defination."); 2 2 3 3 function test(expression, expressionShouldThrow, expectedException) { … … 22 22 var objectThrowingException = new ObjectThrowingException(); 23 23 24 shouldBeTrue("typeof webkit DeprecatedPeerConnection=== 'function'");24 shouldBeTrue("typeof webkitPeerConnection00 === 'function'"); 25 25 26 26 // 0 Argument 27 test('new webkit DeprecatedPeerConnection()', true,'TypeError: Not enough arguments');27 test('new webkitPeerConnection00()', true,'TypeError: Not enough arguments'); 28 28 29 // 1 Argument (new webkit DeprecatedPeerConnectionrequires at least 2 arguments).30 test('new webkit DeprecatedPeerConnection("STUN 203.0.113.2:2478")', true, 'TypeError: Not enough arguments');31 test('new webkit DeprecatedPeerConnection("STUN relay.example.net:3478")', true, 'TypeError: Not enough arguments');32 test('new webkit DeprecatedPeerConnection("STUN example.net")', true, 'TypeError: Not enough arguments');33 test('new webkit DeprecatedPeerConnection("STUNS 203.0.113.2:2478")', true, 'TypeError: Not enough arguments');34 test('new webkit DeprecatedPeerConnection("STUNS relay.example.net:3478")', true, 'TypeError: Not enough arguments');35 test('new webkit DeprecatedPeerConnection("STUNS example.net")', true, 'TypeError: Not enough arguments');36 test('new webkit DeprecatedPeerConnection("TURN 203.0.113.2:2478")', true, 'TypeError: Not enough arguments');37 test('new webkit DeprecatedPeerConnection("TURN relay.example.net:3478")', true, 'TypeError: Not enough arguments');38 test('new webkit DeprecatedPeerConnection("TURN example.net")', true, 'TypeError: Not enough arguments');39 test('new webkit DeprecatedPeerConnection("TURNS 203.0.113.2:2478")', true, 'TypeError: Not enough arguments');40 test('new webkit DeprecatedPeerConnection("TURNS relay.example.net:3478")', true, 'TypeError: Not enough arguments');41 test('new webkit DeprecatedPeerConnection("TURNS example.net")', true, 'TypeError: Not enough arguments');42 test('new webkit DeprecatedPeerConnection("TURN NONE")', true, 'TypeError: Not enough arguments');43 test('new webkit DeprecatedPeerConnection("TURNS NONE")', true, 'TypeError: Not enough arguments');44 test('new webkit DeprecatedPeerConnection("STUN NONE")', true, 'TypeError: Not enough arguments');45 test('new webkit DeprecatedPeerConnection("STUNS NONE")', true, 'TypeError: Not enough arguments');46 test('new webkit DeprecatedPeerConnection("undefined")', true, 'TypeError: Not enough arguments');47 test('new webkit DeprecatedPeerConnection("null")', true, 'TypeError: Not enough arguments');48 test('new webkit DeprecatedPeerConnection({})', true, 'TypeError: Not enough arguments');49 test('new webkit DeprecatedPeerConnection(42)', true, 'TypeError: Not enough arguments');50 test('new webkit DeprecatedPeerConnection(Infinity)', true, 'TypeError: Not enough arguments');51 test('new webkit DeprecatedPeerConnection(-Infinity)', true, 'TypeError: Not enough arguments');52 test('new webkit DeprecatedPeerConnection(emptyFunction)', true, 'TypeError: Not enough arguments');29 // 1 Argument (new webkitPeerConnection00 requires at least 2 arguments). 30 test('new webkitPeerConnection00("STUN 203.0.113.2:2478")', true, 'TypeError: Not enough arguments'); 31 test('new webkitPeerConnection00("STUN relay.example.net:3478")', true, 'TypeError: Not enough arguments'); 32 test('new webkitPeerConnection00("STUN example.net")', true, 'TypeError: Not enough arguments'); 33 test('new webkitPeerConnection00("STUNS 203.0.113.2:2478")', true, 'TypeError: Not enough arguments'); 34 test('new webkitPeerConnection00("STUNS relay.example.net:3478")', true, 'TypeError: Not enough arguments'); 35 test('new webkitPeerConnection00("STUNS example.net")', true, 'TypeError: Not enough arguments'); 36 test('new webkitPeerConnection00("TURN 203.0.113.2:2478")', true, 'TypeError: Not enough arguments'); 37 test('new webkitPeerConnection00("TURN relay.example.net:3478")', true, 'TypeError: Not enough arguments'); 38 test('new webkitPeerConnection00("TURN example.net")', true, 'TypeError: Not enough arguments'); 39 test('new webkitPeerConnection00("TURNS 203.0.113.2:2478")', true, 'TypeError: Not enough arguments'); 40 test('new webkitPeerConnection00("TURNS relay.example.net:3478")', true, 'TypeError: Not enough arguments'); 41 test('new webkitPeerConnection00("TURNS example.net")', true, 'TypeError: Not enough arguments'); 42 test('new webkitPeerConnection00("TURN NONE")', true, 'TypeError: Not enough arguments'); 43 test('new webkitPeerConnection00("TURNS NONE")', true, 'TypeError: Not enough arguments'); 44 test('new webkitPeerConnection00("STUN NONE")', true, 'TypeError: Not enough arguments'); 45 test('new webkitPeerConnection00("STUNS NONE")', true, 'TypeError: Not enough arguments'); 46 test('new webkitPeerConnection00("undefined")', true, 'TypeError: Not enough arguments'); 47 test('new webkitPeerConnection00("null")', true, 'TypeError: Not enough arguments'); 48 test('new webkitPeerConnection00({})', true, 'TypeError: Not enough arguments'); 49 test('new webkitPeerConnection00(42)', true, 'TypeError: Not enough arguments'); 50 test('new webkitPeerConnection00(Infinity)', true, 'TypeError: Not enough arguments'); 51 test('new webkitPeerConnection00(-Infinity)', true, 'TypeError: Not enough arguments'); 52 test('new webkitPeerConnection00(emptyFunction)', true, 'TypeError: Not enough arguments'); 53 53 54 54 //2 Argument 55 test('new webkitDeprecatedPeerConnection("STUN 203.0.113.2:2478",emptyFunction)', false); 56 test('new webkitDeprecatedPeerConnection("STUN relay.example.net:3478",emptyFunction)', false); 57 test('new webkitDeprecatedPeerConnection("STUN example.net",emptyFunction)',false); 58 test('new webkitDeprecatedPeerConnection("STUNS 203.0.113.2:2478",emptyFunction)', false); 59 test('new webkitDeprecatedPeerConnection("STUNS relay.example.net:3478",emptyFunction)', false); 60 test('new webkitDeprecatedPeerConnection("STUNS example.net",emptyFunction)', false); 61 test('new webkitDeprecatedPeerConnection("TURN 203.0.113.2:2478",emptyFunction)', false); 62 test('new webkitDeprecatedPeerConnection("TURN relay.example.net:3478",emptyFunction)', false); 63 test('new webkitDeprecatedPeerConnection("TURN example.net",emptyFunction)', false); 64 test('new webkitDeprecatedPeerConnection("TURNS 203.0.113.2:2478",emptyFunction)', false); 65 test('new webkitDeprecatedPeerConnection("TURNS relay.example.net:3478",emptyFunction)', false); 66 test('new webkitDeprecatedPeerConnection("TURNS example.net",emptyFunction)', false); 67 test('new webkitDeprecatedPeerConnection("TURN NONE",emptyFunction)', false); 68 test('new webkitDeprecatedPeerConnection("TURNS NONE",emptyFunction)',false); 69 test('new webkitDeprecatedPeerConnection("STUN NONE",emptyFunction)', false); 70 test('new webkitDeprecatedPeerConnection("STUNS NONE",emptyFunction)', false); 71 test('new webkitDeprecatedPeerConnection("TURN NONE",undefined)', true); 72 test('new webkitDeprecatedPeerConnection("TURNS NONE",{})', true); 73 test('new webkitDeprecatedPeerConnection("STUN NONE",42)', true); 74 test('new webkitDeprecatedPeerConnection("STUNS NONE",Infinity)', true); 75 test('new webkitDeprecatedPeerConnection("STUNS NONE",-Infinity)', true); 76 77 55 test('new webkitPeerConnection00("STUN 203.0.113.2:2478",emptyFunction)', false); 56 test('new webkitPeerConnection00("STUN relay.example.net:3478",emptyFunction)', false); 57 test('new webkitPeerConnection00("STUN example.net",emptyFunction)',false); 58 test('new webkitPeerConnection00("STUNS 203.0.113.2:2478",emptyFunction)', false); 59 test('new webkitPeerConnection00("STUNS relay.example.net:3478",emptyFunction)', false); 60 test('new webkitPeerConnection00("STUNS example.net",emptyFunction)', false); 61 test('new webkitPeerConnection00("TURN 203.0.113.2:2478",emptyFunction)', false); 62 test('new webkitPeerConnection00("TURN relay.example.net:3478",emptyFunction)', false); 63 test('new webkitPeerConnection00("TURN example.net",emptyFunction)', false); 64 test('new webkitPeerConnection00("TURNS 203.0.113.2:2478",emptyFunction)', false); 65 test('new webkitPeerConnection00("TURNS relay.example.net:3478",emptyFunction)', false); 66 test('new webkitPeerConnection00("TURNS example.net",emptyFunction)', false); 67 test('new webkitPeerConnection00("TURN NONE",emptyFunction)', false); 68 test('new webkitPeerConnection00("TURNS NONE",emptyFunction)',false); 69 test('new webkitPeerConnection00("STUN NONE",emptyFunction)', false); 70 test('new webkitPeerConnection00("STUNS NONE",emptyFunction)', false); 71 test('new webkitPeerConnection00("TURN NONE",undefined)', true); 72 test('new webkitPeerConnection00("TURNS NONE",{})', true); 73 test('new webkitPeerConnection00("STUN NONE",42)', true); 74 test('new webkitPeerConnection00("STUNS NONE",Infinity)', true); 75 test('new webkitPeerConnection00("STUNS NONE",-Infinity)', true); 78 76 79 77 window.jsTestIsAsync = false; -
trunk/LayoutTests/fast/mediastream/script-tests/peerconnection-removestream.js
r110587 r123724 1 description("Tests DeprecatedPeerConnection::removeStream().");1 description("Tests PeerConnection00::removeStream()."); 2 2 3 var pc = new webkit DeprecatedPeerConnection("STUN some.server.com", function() {});3 var pc = new webkitPeerConnection00("STUN some.server.com", function() {}); 4 4 5 try { 6 pc.removeStream(); 7 } catch(e) { 8 testPassed('pc.removeStream() threw ' + e); 9 } 10 11 try { 12 pc.removeStream(undefined); 13 } catch(e) { 14 testPassed('pc.removeStream(undefined) threw ' + e); 15 } 16 17 try { 18 pc.removeStream(null); 19 } catch(e) { 20 testPassed('pc.removeStream(null) threw ' + e); 21 } 22 23 try { 24 pc.removeStream(new Array()); 25 } catch(e) { 26 testPassed('pc.removeStream(new Array()) threw ' + e); 27 } 28 try { 29 pc.removeStream({}); 30 } catch(e) { 31 testPassed('pc.removeStream({}) threw' + e); 32 } 33 try { 34 pc.removeStream(42); 35 } catch(e) { 36 testPassed('pc.removeStream(42) threw' + e); 37 } 38 try { 39 pc.removeStream(Infinity); 40 } catch(e) { 41 testPassed('pc.removeStream(Infinity) threw' + e); 42 } 43 try { 44 pc.removeStream(-Infinity); 45 } catch(e) { 46 testPassed('pc.removeStream(-Infinity) threw' + e); 47 } 5 shouldThrow('pc.removeStream();'); 6 shouldThrow('pc.removeStream(undefined);'); 7 shouldThrow('pc.removeStream(null);'); 8 shouldThrow('pc.removeStream(new Array());'); 9 shouldThrow('pc.removeStream({});'); 10 shouldThrow('pc.removeStream(42);'); 11 shouldThrow('pc.removeStream(Infinity);'); 12 shouldThrow('pc.removeStream(-Infinity);'); 48 13 49 14 window.successfullyParsed = true; -
trunk/LayoutTests/platform/chromium/fast/dom/call-a-constructor-as-a-function-expected.txt
r110587 r123724 19 19 PASS Int8Array() threw exception TypeError: DOM object constructor cannot be called as a function.. 20 20 PASS MessageChannel() threw exception TypeError: DOM object constructor cannot be called as a function.. 21 PASS webkitDeprecatedPeerConnection() threw exception TypeError: DOM object constructor cannot be called as a function..22 21 SKIP SharedWorker is not implemented. 23 22 PASS Uint16Array() threw exception TypeError: DOM object constructor cannot be called as a function.. -
trunk/LayoutTests/platform/gtk/fast/dom/call-a-constructor-as-a-function-expected.txt
r110603 r123724 19 19 PASS Int8Array() threw exception TypeError: '[object Int8ArrayConstructor]' is not a function (evaluating 'Int8Array()'). 20 20 PASS MessageChannel() threw exception TypeError: '[object MessageChannelConstructor]' is not a function (evaluating 'MessageChannel()'). 21 PASS webkitDeprecatedPeerConnection() threw exception TypeError: '[object DeprecatedPeerConnectionConstructor]' is not a function (evaluating 'webkitDeprecatedPeerConnection()').22 21 PASS SharedWorker() threw exception TypeError: '[object SharedWorkerConstructor]' is not a function (evaluating 'SharedWorker()'). 23 22 PASS Uint16Array() threw exception TypeError: '[object Uint16ArrayConstructor]' is not a function (evaluating 'Uint16Array()'). -
trunk/LayoutTests/platform/gtk/fast/js/global-constructors-expected.txt
r118915 r123724 343 343 PASS XPathResult.toString() is '[object XPathResultConstructor]' 344 344 PASS XSLTProcessor.toString() is '[object XSLTProcessorConstructor]' 345 FAIL webkitDeprecatedPeerConnection.toString() should be [object webkitDeprecatedPeerConnectionConstructor]. Was [object DeprecatedPeerConnectionConstructor].346 345 FAIL webkitMediaStream.toString() should be [object webkitMediaStreamConstructor]. Was [object MediaStreamConstructor]. 347 346 FAIL webkitPeerConnection00.toString() should be [object webkitPeerConnection00Constructor]. Was [object PeerConnection00Constructor]. -
trunk/LayoutTests/platform/win/fast/dom/call-a-constructor-as-a-function-expected.txt
r118554 r123724 19 19 PASS Int8Array() threw exception TypeError: '[object Int8ArrayConstructor]' is not a function (evaluating 'Int8Array()'). 20 20 PASS MessageChannel() threw exception TypeError: '[object MessageChannelConstructor]' is not a function (evaluating 'MessageChannel()'). 21 SKIP webkitDeprecatedPeerConnection is not implemented.22 21 PASS SharedWorker() threw exception TypeError: '[object SharedWorkerConstructor]' is not a function (evaluating 'SharedWorker()'). 23 22 PASS Uint16Array() threw exception TypeError: '[object Uint16ArrayConstructor]' is not a function (evaluating 'Uint16Array()'). -
trunk/Source/WebCore/CMakeLists.txt
r123722 r123724 190 190 Modules/intents/NavigatorIntents.idl 191 191 192 Modules/mediastream/DeprecatedPeerConnection.idl193 192 Modules/mediastream/DOMWindowMediaStream.idl 194 193 Modules/mediastream/IceCallback.idl … … 207 206 Modules/mediastream/PeerConnection00.idl 208 207 Modules/mediastream/SessionDescription.idl 209 Modules/mediastream/SignalingCallback.idl210 208 211 209 Modules/networkinfo/NavigatorNetworkInfoConnection.idl … … 815 813 Modules/intents/NavigatorIntents.cpp 816 814 817 Modules/mediastream/DeprecatedPeerConnection.cpp818 815 Modules/mediastream/IceCandidate.cpp 819 816 Modules/mediastream/LocalMediaStream.cpp -
trunk/Source/WebCore/ChangeLog
r123722 r123724 1 2012-07-26 Tommy Widenflycht <tommyw@google.com> 2 3 MediaStream API: Remove DeprecatedPeerConnection 4 https://bugs.webkit.org/show_bug.cgi?id=92106 5 6 Reviewed by Adam Barth. 7 8 Since we are getting ready to add an updated PeerConnection 9 the old DeprecatedPeerConnection will have to go. 10 11 No new tests, and old tests converted to use PeerConnection00. 12 13 * CMakeLists.txt: 14 * GNUmakefile.list.am: 15 * Modules/mediastream/DOMWindowMediaStream.idl: 16 * Modules/mediastream/DeprecatedPeerConnection.cpp: Removed. 17 * Modules/mediastream/DeprecatedPeerConnection.h: Removed. 18 * Modules/mediastream/DeprecatedPeerConnection.idl: Removed. 19 * Modules/mediastream/SignalingCallback.h: Removed. 20 * Modules/mediastream/SignalingCallback.idl: Removed. 21 * PlatformBlackBerry.cmake: 22 * PlatformEfl.cmake: 23 * UseJSC.cmake: 24 * WebCore.gypi: 25 * bindings/generic/RuntimeEnabledFeatures.h: 26 * bindings/js/JSDeprecatedPeerConnectionCustom.cpp: Removed. 27 * dom/EventTargetFactory.in: 28 * platform/mediastream/DeprecatedPeerConnectionHandler.h: Removed. 29 * platform/mediastream/DeprecatedPeerConnectionHandlerClient.h: Removed. 30 * platform/mediastream/blackberry/DeprecatedPeerConnectionHandler.cpp: Removed. 31 * platform/mediastream/chromium/DeprecatedPeerConnectionHandler.cpp: Removed. 32 * platform/mediastream/chromium/DeprecatedPeerConnectionHandlerInternal.cpp: Removed. 33 * platform/mediastream/chromium/DeprecatedPeerConnectionHandlerInternal.h: Removed. 34 * platform/mediastream/gstreamer/DeprecatedPeerConnectionHandler.cpp: Removed. 35 1 36 2012-07-26 Mike West <mkwst@chromium.org> 2 37 -
trunk/Source/WebCore/GNUmakefile.list.am
r123722 r123724 111 111 DerivedSources/WebCore/JSDedicatedWorkerContext.cpp \ 112 112 DerivedSources/WebCore/JSDedicatedWorkerContext.h \ 113 DerivedSources/WebCore/JSDeprecatedPeerConnection.cpp \114 DerivedSources/WebCore/JSDeprecatedPeerConnection.h \115 113 DerivedSources/WebCore/JSDeviceMotionEvent.cpp \ 116 114 DerivedSources/WebCore/JSDeviceMotionEvent.h \ … … 508 506 DerivedSources/WebCore/JSSharedWorker.cpp \ 509 507 DerivedSources/WebCore/JSSharedWorker.h \ 510 DerivedSources/WebCore/JSSignalingCallback.cpp \511 DerivedSources/WebCore/JSSignalingCallback.h \512 508 DerivedSources/WebCore/JSSourceBuffer.cpp \ 513 509 DerivedSources/WebCore/JSSourceBuffer.h \ … … 705 701 $(WebCore)/Modules/mediasource/SourceBuffer.idl \ 706 702 $(WebCore)/Modules/mediasource/SourceBufferList.idl \ 707 $(WebCore)/Modules/mediastream/DeprecatedPeerConnection.idl \708 703 $(WebCore)/Modules/mediastream/DOMWindowMediaStream.idl \ 709 704 $(WebCore)/Modules/mediastream/IceCallback.idl \ … … 722 717 $(WebCore)/Modules/mediastream/PeerConnection00.idl \ 723 718 $(WebCore)/Modules/mediastream/SessionDescription.idl \ 724 $(WebCore)/Modules/mediastream/SignalingCallback.idl \725 719 $(WebCore)/Modules/notifications/Notification.idl \ 726 720 $(WebCore)/Modules/notifications/NotificationCenter.idl \ … … 1179 1173 Source/WebCore/Modules/mediasource/SourceBufferList.cpp \ 1180 1174 Source/WebCore/Modules/mediasource/SourceBufferList.h \ 1181 Source/WebCore/Modules/mediastream/DeprecatedPeerConnection.cpp \1182 Source/WebCore/Modules/mediastream/DeprecatedPeerConnection.h \1183 1175 Source/WebCore/Modules/mediastream/IceCallback.h \ 1184 1176 Source/WebCore/Modules/mediastream/IceCandidate.cpp \ … … 1209 1201 Source/WebCore/Modules/mediastream/SessionDescription.cpp \ 1210 1202 Source/WebCore/Modules/mediastream/SessionDescription.h \ 1211 Source/WebCore/Modules/mediastream/SignalingCallback.h \1212 1203 Source/WebCore/Modules/mediastream/UserMediaClient.h \ 1213 1204 Source/WebCore/Modules/mediastream/UserMediaController.h \ … … 1437 1428 Source/WebCore/bindings/js/JSDataViewCustom.cpp \ 1438 1429 Source/WebCore/bindings/js/JSDedicatedWorkerContextCustom.cpp \ 1439 Source/WebCore/bindings/js/JSDeprecatedPeerConnectionCustom.cpp \1440 1430 Source/WebCore/bindings/js/JSDeviceMotionEventCustom.cpp \ 1441 1431 Source/WebCore/bindings/js/JSDeviceOrientationEventCustom.cpp \ … … 3540 3530 Source/WebCore/platform/linux/GamepadDeviceLinux.cpp \ 3541 3531 Source/WebCore/platform/linux/GamepadDeviceLinux.h \ 3542 Source/WebCore/platform/mediastream/DeprecatedPeerConnectionHandler.h \3543 Source/WebCore/platform/mediastream/DeprecatedPeerConnectionHandlerClient.h \3544 3532 Source/WebCore/platform/mediastream/IceCandidateDescriptor.cpp \ 3545 3533 Source/WebCore/platform/mediastream/IceCandidateDescriptor.h \ … … 3560 3548 Source/WebCore/platform/mediastream/SessionDescriptionDescriptor.cpp \ 3561 3549 Source/WebCore/platform/mediastream/SessionDescriptionDescriptor.h \ 3562 Source/WebCore/platform/mediastream/gstreamer/DeprecatedPeerConnectionHandler.cpp \3563 3550 Source/WebCore/platform/mediastream/gstreamer/MediaStreamCenterGStreamer.cpp \ 3564 3551 Source/WebCore/platform/mediastream/gstreamer/MediaStreamCenterGStreamer.h \ -
trunk/Source/WebCore/Modules/mediastream/DOMWindowMediaStream.idl
r111876 r123724 31 31 Supplemental=DOMWindow 32 32 ] DOMWindowMediaStream { 33 attribute [V8EnabledAtRuntime] DeprecatedPeerConnectionConstructor webkitDeprecatedPeerConnection;34 33 attribute [V8EnabledAtRuntime] MediaStreamConstructor webkitMediaStream; 35 34 attribute [V8EnabledAtRuntime] PeerConnection00Constructor webkitPeerConnection00; -
trunk/Source/WebCore/PlatformBlackBerry.cmake
r123068 r123724 237 237 if (ENABLE_MEDIA_STREAM) 238 238 LIST(APPEND WebCore_SOURCES 239 platform/mediastream/blackberry/DeprecatedPeerConnectionHandler.cpp240 239 platform/mediastream/blackberry/MediaStreamCenterBlackBerry.cpp 241 240 ) -
trunk/Source/WebCore/PlatformEfl.cmake
r123218 r123724 80 80 platform/image-decoders/webp/WEBPImageDecoder.cpp 81 81 platform/linux/GamepadDeviceLinux.cpp 82 platform/mediastream/gstreamer/DeprecatedPeerConnectionHandler.cpp83 82 platform/mediastream/gstreamer/MediaStreamCenterGStreamer.cpp 84 83 platform/network/soup/CookieJarSoup.cpp -
trunk/Source/WebCore/UseJSC.cmake
r123434 r123724 50 50 bindings/js/JSCustomVoidCallback.cpp 51 51 bindings/js/JSCustomXPathNSResolver.cpp 52 bindings/js/JSDeprecatedPeerConnectionCustom.cpp53 52 bindings/js/JSDictionary.cpp 54 53 bindings/js/JSDOMBinding.cpp -
trunk/Source/WebCore/WebCore.gypi
r123722 r123724 437 437 'platform/mac/WebCoreView.h', 438 438 'platform/mac/WebFontCache.h', 439 'platform/mediastream/DeprecatedPeerConnectionHandler.h',440 'platform/mediastream/DeprecatedPeerConnectionHandlerClient.h',441 439 'platform/mediastream/IceCandidateDescriptor.cpp', 442 440 'platform/mediastream/IceCandidateDescriptor.h', … … 455 453 'platform/mediastream/SessionDescriptionDescriptor.cpp', 456 454 'platform/mediastream/SessionDescriptionDescriptor.h', 457 'platform/mediastream/chromium/DeprecatedPeerConnectionHandler.cpp',458 'platform/mediastream/chromium/DeprecatedPeerConnectionHandlerInternal.cpp',459 'platform/mediastream/chromium/DeprecatedPeerConnectionHandlerInternal.h',460 455 'platform/mediastream/chromium/MediaStreamCenterChromium.cpp', 461 456 'platform/mediastream/chromium/MediaStreamCenterChromium.h', … … 831 826 'Modules/mediasource/SourceBuffer.idl', 832 827 'Modules/mediasource/SourceBufferList.idl', 833 'Modules/mediastream/DeprecatedPeerConnection.idl',834 828 'Modules/mediastream/DOMWindowMediaStream.idl', 835 829 'Modules/mediastream/IceCallback.idl', … … 848 842 'Modules/mediastream/PeerConnection00.idl', 849 843 'Modules/mediastream/SessionDescription.idl', 850 'Modules/mediastream/SignalingCallback.idl',851 844 'Modules/notifications/DOMWindowNotifications.idl', 852 845 'Modules/notifications/Notification.idl', … … 1548 1541 'Modules/mediasource/SourceBufferList.cpp', 1549 1542 'Modules/mediasource/SourceBufferList.h', 1550 'Modules/mediastream/DeprecatedPeerConnection.cpp',1551 'Modules/mediastream/DeprecatedPeerConnection.h',1552 1543 'Modules/mediastream/IceCallback.h', 1553 1544 'Modules/mediastream/IceCandidate.cpp', … … 1578 1569 'Modules/mediastream/SessionDescription.cpp', 1579 1570 'Modules/mediastream/SessionDescription.h', 1580 'Modules/mediastream/SignalingCallback.h',1581 1571 'Modules/mediastream/UserMediaClient.h', 1582 1572 'Modules/mediastream/UserMediaController.cpp', … … 1978 1968 'bindings/js/JSDataViewCustom.cpp', 1979 1969 'bindings/js/JSDedicatedWorkerContextCustom.cpp', 1980 'bindings/js/JSDeprecatedPeerConnectionCustom.cpp',1981 1970 'bindings/js/JSDesktopNotificationsCustom.cpp', 1982 1971 'bindings/js/JSDeviceMotionEventCustom.cpp', -
trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h
r123424 r123724 188 188 static bool peerConnectionEnabled() { return isMediaStreamEnabled && isPeerConnectionEnabled; } 189 189 static void setPeerConnectionEnabled(bool isEnabled) { isPeerConnectionEnabled = isEnabled; } 190 static bool webkitDeprecatedPeerConnectionEnabled() { return peerConnectionEnabled(); }191 190 static bool webkitPeerConnection00Enabled() { return peerConnectionEnabled(); } 192 191 #endif -
trunk/Source/WebCore/dom/EventTargetFactory.in
r123627 r123724 6 6 DOMApplicationCache 7 7 DOMWindow 8 DeprecatedPeerConnection conditional=MEDIA_STREAM9 8 EventSource 10 9 FileReader conditional=BLOB
Note: See TracChangeset
for help on using the changeset viewer.