Title: [115651] trunk/LayoutTests
- Revision
- 115651
- Author
- [email protected]
- Date
- 2012-04-30 10:45:00 -0700 (Mon, 30 Apr 2012)
Log Message
MediaStream API: Adding a test for the experimental PeerConnection00
https://bugs.webkit.org/show_bug.cgi?id=82881
Reviewed by Dimitri Glazkov.
Tests construction of objects.
* fast/mediastream/constructors-expected.txt: Added.
* fast/mediastream/constructors.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (115650 => 115651)
--- trunk/LayoutTests/ChangeLog 2012-04-30 17:44:58 UTC (rev 115650)
+++ trunk/LayoutTests/ChangeLog 2012-04-30 17:45:00 UTC (rev 115651)
@@ -1,3 +1,15 @@
+2012-04-30 Tommy Widenflycht <[email protected]>
+
+ MediaStream API: Adding a test for the experimental PeerConnection00
+ https://bugs.webkit.org/show_bug.cgi?id=82881
+
+ Reviewed by Dimitri Glazkov.
+
+ Tests construction of objects.
+
+ * fast/mediastream/constructors-expected.txt: Added.
+ * fast/mediastream/constructors.html: Added.
+
2012-04-30 Justin Schuh <[email protected]>
loadOrRedirectSubframe should return the owner element's frame
Added: trunk/LayoutTests/fast/mediastream/constructors-expected.txt (0 => 115651)
--- trunk/LayoutTests/fast/mediastream/constructors-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/mediastream/constructors-expected.txt 2012-04-30 17:45:00 UTC (rev 115651)
@@ -0,0 +1,15 @@
+Tests the JSEP PeerConnection related constructors.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS typeof webkitPeerConnection00 === 'function' is true
+PASS typeof SessionDescription === 'function' is true
+PASS typeof IceCandidate === 'function' is true
+PASS new webkitPeerConnection00('STUN foobar.com:12345', function(){}); did not throw exception.
+PASS new SessionDescription(''); did not throw exception.
+PASS new IceCandidate('', ''); did not throw exception.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: trunk/LayoutTests/fast/mediastream/constructors.html (0 => 115651)
--- trunk/LayoutTests/fast/mediastream/constructors.html (rev 0)
+++ trunk/LayoutTests/fast/mediastream/constructors.html 2012-04-30 17:45:00 UTC (rev 115651)
@@ -0,0 +1,35 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<link rel="stylesheet" href=""
+<script src=""
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<script>
+description("Tests the JSEP PeerConnection related constructors.");
+
+function shouldNotThrow(_expression_)
+{
+ try {
+ eval(_expression_);
+ testPassed(_expression_ + " did not throw exception.");
+ } catch(e) {
+ testFailed(_expression_ + " should not throw exception. Threw exception " + e);
+ }
+}
+
+shouldBeTrue("typeof webkitPeerConnection00 === 'function'");
+shouldBeTrue("typeof SessionDescription === 'function'");
+shouldBeTrue("typeof IceCandidate === 'function'");
+
+shouldNotThrow("new webkitPeerConnection00('STUN foobar.com:12345', function(){});");
+shouldNotThrow("new SessionDescription('');");
+shouldNotThrow("new IceCandidate('', '');");
+
+window.jsTestIsAsync = false;
+</script>
+<script src=""
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes