Chromium Code Reviews| Index: chrome/test/data/extensions/api_test/socket/api/background.js |
| diff --git a/chrome/test/data/extensions/api_test/socket/api/background.js b/chrome/test/data/extensions/api_test/socket/api/background.js |
| index 7f78b564ab9c7d340a3a2102b267e4d5a30aeed5..917db6185e254b67d752c14636b2402780ca23c1 100644 |
| --- a/chrome/test/data/extensions/api_test/socket/api/background.js |
| +++ b/chrome/test/data/extensions/api_test/socket/api/background.js |
| @@ -234,15 +234,19 @@ var testSocketListening = function() { |
| socket.create('tcp', {}, onServerSocketCreate); |
| }; |
| + |
|
mmenke
2013/04/12 21:07:41
nit: Remove extra blank line.
Bei Zhang
2013/04/15 22:30:26
Done.
|
| var onMessageReply = function(message) { |
| var parts = message.split(":"); |
| - test_type = parts[0]; |
| + var test_type = parts[0]; |
| address = parts[1]; |
| port = parseInt(parts[2]); |
| console.log("Running tests, protocol " + protocol + ", echo server " + |
| address + ":" + port); |
| if (test_type == 'tcp_server') { |
| chrome.test.runTests([ testSocketListening ]); |
| + } else if (test_type == 'multicast') { |
| + console.log("Running multicast tests"); |
| + chrome.test.runTests([ testMulticast ]); |
| } else { |
| protocol = test_type; |
| chrome.test.runTests([ testSocketCreation, testSending ]); |