Skip to content

Commit

Permalink
Remove unnecessary parameters from async_test
Browse files Browse the repository at this point in the history
The `null` and `undefined` are placeholders for the `property` argument.
They'll be no use when the `property` is removed from `async_test`
and should be removed.
  • Loading branch information
qiuzhong committed Nov 21, 2018
1 parent b37b12d commit 53ef62c
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion websockets/binary/002.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
t.done();
});

}, null);
});
</script>
2 changes: 1 addition & 1 deletion websockets/binary/004.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
t.done();
})

}, null);
});
</script>
2 changes: 1 addition & 1 deletion websockets/constructor/013.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
}, ws[i]);
ws[i].onerror = t.step_func(function() {assert_unreached()});
}
}, null);
});
</script>

2 changes: 1 addition & 1 deletion websockets/cookies/003.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
ws.onerror = ws.onclose = t.step_func(function(e) {assert_unreached(e.type)});
});
document.body.appendChild(iframe);
}, null);
});
</script>
2 changes: 1 addition & 1 deletion websockets/cookies/004.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
});
ws.onerror = ws.onclose = t.step_func(function(e) {assert_unreached(e.type)});
document.body.appendChild(iframe);
}, null)
});
</script>
2 changes: 1 addition & 1 deletion websockets/cookies/007.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
if (new RegExp('ws_test_'+cookie_id+'=test').test(document.cookie)) {
assert_unreached('cookie was set during script execution');
}
}, null);
});
</script>
2 changes: 1 addition & 1 deletion websockets/interfaces/CloseEvent/clean-close.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
assert_equals(e.wasClean,true);
t.done();
});
}, null);
});
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
assert_equals(e.data, data);
t.done();
})
}, null);
});
</script>
2 changes: 1 addition & 1 deletion websockets/interfaces/WebSocket/close/close-basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
});
ws.close();
assert_equals(ws.readyState, ws.CLOSING);
}, undefined);
});
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
});
}, 1000);
ws.onopen = ws.onclose = t.unreached_func();
}, undefined);
});
</script>
2 changes: 1 addition & 1 deletion websockets/interfaces/WebSocket/close/close-nested.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
});
ws.close();
assert_equals(ws.readyState, ws.CLOSING);
}, undefined);
});
</script>
2 changes: 1 addition & 1 deletion websockets/interfaces/WebSocket/events/003.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
var ev = document.createEvent('UIEvents');
ev.initUIEvent('open', false, false, window, 5);
ws.dispatchEvent(ev);
}, null);
});
</script>
2 changes: 1 addition & 1 deletion websockets/interfaces/WebSocket/events/007.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
var ev = document.createEvent('UIEvents');
ev.initUIEvent('message', false, false, window, 5);
ws.dispatchEvent(ev);
}, null);
});
</script>
2 changes: 1 addition & 1 deletion websockets/interfaces/WebSocket/events/009.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
var ev = document.createEvent('UIEvents');
ev.initUIEvent('close', false, false, window, 5);
ws.dispatchEvent(ev);
}, null);
});
</script>
2 changes: 1 addition & 1 deletion websockets/keeping-connection-open/001.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
});
}, 20000);
})
}, null);
});
</script>
2 changes: 1 addition & 1 deletion websockets/opening-handshake/001.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
t.step_timeout(() => t.done(), 50);
});
ws.onmessage = ws.onopen = t.unreached_func();
}, null);
});
</script>
2 changes: 1 addition & 1 deletion websockets/opening-handshake/002.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
ws.close();
});
ws.onerror = ws.onmessage = ws.onclose = t.unreached_func();
}, null);
});
</script>
2 changes: 1 addition & 1 deletion websockets/unload-a-document/002.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<p>Test requires popup blocker disabled</p>
<div id=log></div>
<script>
var t = async_test(null);
var t = async_test();
var w;
var uuid;
t.step(function() {
Expand Down
2 changes: 1 addition & 1 deletion websockets/unload-a-document/004.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div id=log></div>
<script>
var uuid;
var t = async_test(null)
var t = async_test();
t.step(function() {uuid = token()});
var navigate = t.step_func(function() {
document.getElementsByTagName("iframe")[0].src = 'data:text/html,<body onload="history.back()">';
Expand Down
2 changes: 1 addition & 1 deletion websockets/unload-a-document/005.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<p>Test requires popup blocker disabled</p>
<div id=log></div>
<script>
var t = async_test(null);
var t = async_test();
t.step(function() {
var w = window.open("005-1.html");
add_result_callback(function() {
Expand Down

0 comments on commit 53ef62c

Please sign in to comment.