| Index: LayoutTests/netinfo/web-worker.html
|
| diff --git a/LayoutTests/netinfo/web-worker.html b/LayoutTests/netinfo/web-worker.html
|
| index a7e42cfa468ffb8b403161ed2a1f1be0807559d8..7f776075a68b6f7ae31b1465d633945c979d1089 100644
|
| --- a/LayoutTests/netinfo/web-worker.html
|
| +++ b/LayoutTests/netinfo/web-worker.html
|
| @@ -17,16 +17,16 @@ var msg_count = 0;
|
|
|
| worker.addEventListener('message', function(e) {
|
| if (msg_count == 0) {
|
| - if (e.data != connection.type) {
|
| + if (e.data != connection.type + ',' + connection.downlinkMax) {
|
| testFailed("Worker type disagrees with main frame.");
|
| }
|
| - internals.setNetworkConnectionInfo(newConnectionType);
|
| + internals.setNetworkConnectionInfo(newConnectionType, newDownlinkMax);
|
| } else if (msg_count == 1) {
|
| - if (e.data != newConnectionType)
|
| + if (e.data != newConnectionType + ',' + newDownlinkMax)
|
| testFailed("Worker switched to wrong connection type.");
|
| - internals.setNetworkConnectionInfo(initialType);
|
| + internals.setNetworkConnectionInfo(initialType, initialDownlinkMax);
|
| } else if (msg_count == 2) {
|
| - if (e.data != initialType)
|
| + if (e.data != initialType + ',' + initialDownlinkMax)
|
| testFailed("Worker did not revert back to initial type.");
|
| finishJSTest();
|
| }
|
|
|