mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Added step_func to test.
This commit is contained in:
parent
1004d7a1f6
commit
e142de2d65
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ async_test(function(t) {
|
|||
|
||||
var action_idx = 0;
|
||||
|
||||
iframe.addEventListener("mozbrowserlocationchange", e => {
|
||||
iframe.addEventListener("mozbrowserlocationchange", t.step_func(e => {
|
||||
received_events.push(e.detail.url);
|
||||
received_events.push(e.detail.canGoBack);
|
||||
received_events.push(e.detail.canGoForward);
|
||||
|
@ -49,7 +49,7 @@ async_test(function(t) {
|
|||
assert_array_equals(received_events, expected_events);
|
||||
t.done();
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
||||
document.body.appendChild(iframe);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue