Added step_func to test.

This commit is contained in:
Alan Jeffrey 2016-10-28 15:45:42 -05:00
parent 1004d7a1f6
commit e142de2d65

View file

@ -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);