Changeset 126779 in webkit
- Timestamp:
- Aug 27, 2012 11:54:15 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r126778 r126779 1 2012-08-27 Tommy Widenflycht <tommyw@google.com> 2 3 MediaStream API: Fix review comments from patch #93119 4 https://bugs.webkit.org/show_bug.cgi?id=95064 5 6 Reviewed by Adam Barth. 7 8 * fast/mediastream/RTCIceCandidate-expected.txt: 9 * fast/mediastream/RTCIceCandidate.html: 10 * fast/mediastream/RTCSessionDescription-expected.txt: 11 * fast/mediastream/RTCSessionDescription.html: 12 * fast/mediastream/constructors-expected.txt: 13 * fast/mediastream/constructors.html: 14 1 15 2012-08-27 Simon Fraser <simon.fraser@apple.com> 2 16 -
trunk/LayoutTests/fast/mediastream/RTCIceCandidate-expected.txt
r126328 r126779 8 8 PASS candidate.sdpMid is "bar" 9 9 PASS candidate.sdpMLineIndex is 6 10 PASS initializer = JSON.parse(JSON.stringify(candidate)); did not throw exception. 10 11 PASS candidate = new RTCIceCandidate(initializer); did not throw exception. 11 12 PASS candidate.candidate is "foo" -
trunk/LayoutTests/fast/mediastream/RTCIceCandidate.html
r126328 r126779 18 18 shouldBe('candidate.sdpMLineIndex', '6'); 19 19 20 initializer = JSON.parse(JSON.stringify(candidate)); 20 shouldNotThrow('initializer = JSON.parse(JSON.stringify(candidate));'); 21 21 22 shouldNotThrow('candidate = new RTCIceCandidate(initializer);'); 22 23 shouldBe('candidate.candidate', '"foo"'); -
trunk/LayoutTests/fast/mediastream/RTCSessionDescription-expected.txt
r126333 r126779 7 7 PASS sessionDescription.type is "offer" 8 8 PASS sessionDescription.sdp is "foobar" 9 PASS initializer = JSON.parse(JSON.stringify(sessionDescription)); did not throw exception. 9 10 PASS sessionDescription = new RTCSessionDescription(initializer); did not throw exception. 10 11 PASS sessionDescription.type is "offer" -
trunk/LayoutTests/fast/mediastream/RTCSessionDescription.html
r126333 r126779 17 17 shouldBe('sessionDescription.sdp', '"foobar"'); 18 18 19 initializer = JSON.parse(JSON.stringify(sessionDescription)); 19 shouldNotThrow('initializer = JSON.parse(JSON.stringify(sessionDescription));'); 20 20 21 shouldNotThrow("sessionDescription = new RTCSessionDescription(initializer);"); 21 22 shouldBe('sessionDescription.type', '"offer"'); -
trunk/LayoutTests/fast/mediastream/constructors-expected.txt
r118586 r126779 7 7 PASS typeof SessionDescription === 'function' is true 8 8 PASS typeof IceCandidate === 'function' is true 9 PASS typeof webkitRTCPeerConnection === 'function' is true 10 PASS typeof RTCSessionDescription === 'function' is true 11 PASS typeof RTCIceCandidate === 'function' is true 12 PASS webkitPeerConnection00() threw exception TypeError: DOM object constructor cannot be called as a function.. 13 PASS SessionDescription() threw exception TypeError: DOM object constructor cannot be called as a function.. 14 PASS IceCandidate() threw exception TypeError: DOM object constructor cannot be called as a function.. 15 PASS webkitRTCPeerConnection() threw exception TypeError: DOM object constructor cannot be called as a function.. 16 PASS RTCSessionDescription() threw exception TypeError: DOM object constructor cannot be called as a function.. 17 PASS RTCIceCandidate() threw exception TypeError: DOM object constructor cannot be called as a function.. 9 18 PASS new webkitPeerConnection00('STUN foobar.com:12345', function(){}); did not throw exception. 10 PASS new webkitPeerConnection00('STUN foobar.com:12345'); threw exception TypeError: Not enough arguments.11 PASS new webkitPeerConnection00('STUN foobar.com:12345', null); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.12 PASS new webkitPeerConnection00('STUN foobar.com:12345', undefined); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.13 PASS new webkitPeerConnection00('STUN foobar.com:12345', 'STUN'); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.14 19 PASS new SessionDescription(''); did not throw exception. 15 20 PASS new IceCandidate('', ''); did not throw exception. 21 PASS new webkitRTCPeerConnection({iceServers:[{uri:'stun://foobar.com:12345'}]}, null); did not throw exception. 22 PASS new RTCSessionDescription({type:'offer',sdp:'foobar'}); did not throw exception. 23 PASS new RTCIceCandidate({candidate:'foo'}); did not throw exception. 16 24 PASS successfullyParsed is true 17 25 -
trunk/LayoutTests/fast/mediastream/constructors.html
r118586 r126779 14 14 shouldBeTrue("typeof SessionDescription === 'function'"); 15 15 shouldBeTrue("typeof IceCandidate === 'function'"); 16 shouldBeTrue("typeof webkitRTCPeerConnection === 'function'"); 17 shouldBeTrue("typeof RTCSessionDescription === 'function'"); 18 shouldBeTrue("typeof RTCIceCandidate === 'function'"); 19 20 shouldThrow("webkitPeerConnection00()"); 21 shouldThrow("SessionDescription()"); 22 shouldThrow("IceCandidate()"); 23 shouldThrow("webkitRTCPeerConnection()"); 24 shouldThrow("RTCSessionDescription()"); 25 shouldThrow("RTCIceCandidate()"); 16 26 17 27 shouldNotThrow("new webkitPeerConnection00('STUN foobar.com:12345', function(){});"); 18 shouldThrow("new webkitPeerConnection00('STUN foobar.com:12345');");19 shouldThrow("new webkitPeerConnection00('STUN foobar.com:12345', null);");20 shouldThrow("new webkitPeerConnection00('STUN foobar.com:12345', undefined);");21 shouldThrow("new webkitPeerConnection00('STUN foobar.com:12345', 'STUN');");22 23 28 shouldNotThrow("new SessionDescription('');"); 24 29 shouldNotThrow("new IceCandidate('', '');"); 30 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{uri:'stun://foobar.com:12345'}]}, null);"); 31 shouldNotThrow("new RTCSessionDescription({type:'offer',sdp:'foobar'});"); 32 shouldNotThrow("new RTCIceCandidate({candidate:'foo'});"); 25 33 26 34 window.jsTestIsAsync = false; -
trunk/Source/WebCore/ChangeLog
r126777 r126779 1 2012-08-27 Tommy Widenflycht <tommyw@google.com> 2 3 MediaStream API: Fix review comments from patch #93119 4 https://bugs.webkit.org/show_bug.cgi?id=95064 5 6 Reviewed by Adam Barth. 7 8 Adding const to accessors. 9 10 Change covered by exisiting tests.. 11 12 * Modules/mediastream/RTCIceCandidate.cpp: 13 (WebCore::RTCIceCandidate::candidate): 14 (WebCore::RTCIceCandidate::sdpMid): 15 (WebCore::RTCIceCandidate::sdpMLineIndex): 16 * Modules/mediastream/RTCIceCandidate.h: 17 (RTCIceCandidate): 18 * Modules/mediastream/RTCSessionDescription.cpp: 19 (WebCore::RTCSessionDescription::create): 20 (WebCore::RTCSessionDescription::type): 21 (WebCore::RTCSessionDescription::sdp): 22 * Modules/mediastream/RTCSessionDescription.h: 23 (RTCSessionDescription): 24 1 25 2012-08-27 Simon Fraser <simon.fraser@apple.com> 2 26 -
trunk/Source/WebCore/Modules/mediastream/RTCIceCandidate.cpp
r126328 r126779 74 74 } 75 75 76 const String& RTCIceCandidate::candidate() 76 const String& RTCIceCandidate::candidate() const 77 77 { 78 78 return m_descriptor->candidate(); 79 79 } 80 80 81 const String& RTCIceCandidate::sdpMid() 81 const String& RTCIceCandidate::sdpMid() const 82 82 { 83 83 return m_descriptor->sdpMid(); 84 84 } 85 85 86 unsigned short RTCIceCandidate::sdpMLineIndex() 86 unsigned short RTCIceCandidate::sdpMLineIndex() const 87 87 { 88 88 return m_descriptor->sdpMLineIndex(); -
trunk/Source/WebCore/Modules/mediastream/RTCIceCandidate.h
r126328 r126779 51 51 virtual ~RTCIceCandidate(); 52 52 53 const String& candidate() ;54 const String& sdpMid() ;55 unsigned short sdpMLineIndex() ;53 const String& candidate() const; 54 const String& sdpMid() const; 55 unsigned short sdpMLineIndex() const; 56 56 57 57 RTCIceCandidateDescriptor* descriptor(); -
trunk/Source/WebCore/Modules/mediastream/RTCSessionDescription.cpp
r126333 r126779 57 57 String sdp; 58 58 ok = dictionary.get("sdp", sdp); 59 if (!ok || !sdp.length()) {59 if (!ok || sdp.isEmpty()) { 60 60 ec = TYPE_MISMATCH_ERR; 61 61 return 0; … … 80 80 } 81 81 82 const String& RTCSessionDescription::type() 82 const String& RTCSessionDescription::type() const 83 83 { 84 84 return m_descriptor->type(); … … 93 93 } 94 94 95 const String& RTCSessionDescription::sdp() 95 const String& RTCSessionDescription::sdp() const 96 96 { 97 97 return m_descriptor->sdp(); -
trunk/Source/WebCore/Modules/mediastream/RTCSessionDescription.h
r126333 r126779 50 50 virtual ~RTCSessionDescription(); 51 51 52 const String& type() ;52 const String& type() const; 53 53 void setType(const String&, ExceptionCode&); 54 54 55 const String& sdp() ;55 const String& sdp() const; 56 56 void setSdp(const String&, ExceptionCode&); 57 57
Note: See TracChangeset
for help on using the changeset viewer.