Remove a test that was accidentally checked in with r218408.
authorryanhaddad@apple.com <ryanhaddad@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Jun 2017 23:15:53 +0000 (23:15 +0000)
committerryanhaddad@apple.com <ryanhaddad@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Jun 2017 23:15:53 +0000 (23:15 +0000)
Unreviewed test gardening.

* webrtc/datachannel/test.html: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218425 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/webrtc/datachannel/test.html [deleted file]

index 89575ae..e822992 100644 (file)
@@ -1,3 +1,11 @@
+2017-06-16  Ryan Haddad  <ryanhaddad@apple.com>
+
+        Remove a test that was accidentally checked in with r218408.
+
+        Unreviewed test gardening.
+
+        * webrtc/datachannel/test.html: Removed.
+
 2017-06-16  Matt Lewis  <jlewis3@apple.com>
 
         Marked imported/w3c/web-platform-tests/IndexedDB/large-nested-cloning.html as flaky.
diff --git a/LayoutTests/webrtc/datachannel/test.html b/LayoutTests/webrtc/datachannel/test.html
deleted file mode 100644 (file)
index e2ab31b..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-<!doctype html>
-<html>
-  <head>
-    <meta charset="utf-8">
-    <title>Testing basic data channel from offerer to receiver</title>
-    <script src="../../resources/testharness.js"></script>
-    <script src="../../resources/testharnessreport.js"></script>
-  </head>
-  <body>
-    <script src ="../routines.js"></script>
-    <script>
-var localChannel;
-var remoteChannel;
-
-function closeDataChannels() {
-    localChannel.close();
-    remoteChannel.close();
-    closeConnections();
-}
-
-function receiveMessages(event)
-{
-    try {
-        if (++counter === 1)
-            assert_equals(event.data, "one");
-        else if (counter === 2)
-            assert_equals(event.data, "two");
-        else if (counter === 3)
-            assert_equals(event.data, "three");
-        else if (counter === 4) {
-            assert_equals(event.data, "four");
-            closeDataChannels();
-            finishTest();
-        } else
-            assert_unreached();
-    } catch(e) {
-        console.log(e);
-    }
-}
-
-function sendMessages(channel)
-{
-    channel.send("one");
-    channel.send("two");
-    channel.send("three");
-    channel.send("four");
-}
-
-var finishTest;
-promise_test((test) => {
-    counter = 0;
-    return new Promise((resolve, reject) => {
-        finishTest = resolve;
-        createConnections((localConnection) => {
-            localChannel = localConnection.createDataChannel('sendDataChannel');
-            localChannel.onopen = () => { sendMessages(localChannel) };
-        }, (remoteConnection) => {
-            remoteConnection.ondatachannel = (event) => {
-                remoteChannel = event.channel;
-                remoteChannel.onmessage = receiveMessages;
-            };
-        });
-        setTimeout(() => { reject("Test timed out"); }, 5000);
-    });
-}, "Basic data channel exchange from offerer to receiver");
-
-promise_test((test) => {
-    counter = 0;
-    return new Promise((resolve, reject) => {
-        finishTest = resolve;
-        createConnections((localConnection) => {
-            localChannel = localConnection.createDataChannel('sendDataChannel');
-            localChannel.onmessage = receiveMessages;
-        }, (remoteConnection) => {
-            remoteConnection.ondatachannel = (event) => {
-                remoteChannel = event.channel;
-                remoteChannel.onopen = () => { sendMessages(remoteChannel) };
-            };
-        });
-        setTimeout(() => { reject("Test timed out"); }, 5000);
-    });
-}, "Basic data channel exchange from receiver to offerer");
-
-
-promise_test((test) => {
-    counter = 0;
-    return new Promise((resolve, reject) => {
-        finishTest = resolve;
-        createConnections((localConnection) => {
-            localChannel = localConnection.createDataChannel('sendDataChannel');
-            localChannel.onopen = () => { sendMessages(localChannel) };
-        }, (remoteConnection) => {
-            remoteConnection.ondatachannel = (event) => {
-                remoteChannel = event.channel;
-                remoteChannel.onmessage = receiveMessages;
-            };
-        }, { filterOutICECandidate: (candidate) => { return candidate && candidate.candidate.toLowerCase().indexOf("udp") == -1; } });
-        setTimeout(() => { reject("Test timed out"); }, 5000);
-    });
-}, "Basic data channel exchange from offerer to receiver using UDP only");
-
-promise_test((test) => {
-    counter = 0;
-    return new Promise((resolve, reject) => {
-        var checkDataChannelOptions = (channel, init) => {
-            assert_equals(channel.ordered, init.ordered, "ordered");
-            assert_equals(channel.maxPacketLifeTime, init.maxPacketLifeTime, "maxPacketLifeTime");
-            assert_equals(channel.maxRetransmitTime, init.maxRetransmitTime, "maxRetransmitTime");
-            assert_equals(channel.maxRetransmits, init.maxRetransmits, "maxRetransmits");
-            assert_equals(channel.protocol, init.protocol, "protocol");
-            assert_equals(channel.negotiated, init.negotiated, "negotiated");
-            assert_equals(channel.id, init.id, "id");
-        };
-
-        finishTest = resolve;
-        createConnections((localConnection) => {
-            var init = { ordered: true, maxPacketLifeTime: 10, maxRetransmitTime: 11, protocol: "whatever", negotiated: false, id: 1 };
-            localChannel = localConnection.createDataChannel('sendDataChannel', init);
-            checkDataChannelOptions(localChannel, init)
-            localChannel.onopen = () => { sendMessages(localChannel) };
-        }, (remoteConnection) => {
-            remoteConnection.ondatachannel = (event) => {
-                remoteChannel = event.channel;
-                remoteChannel.onmessage = receiveMessages;
-            };
-        });
-        setTimeout(() => { reject("Test timed out"); }, 5000);
-    });
-}, "Basic data channel exchange from offerer to receiver");
-
-    </script>
-  </body>
-</html>