From e142de2d65692f5dcb1bf89192836bf00a9c5f75 Mon Sep 17 00:00:00 2001 From: Alan Jeffrey Date: Fri, 28 Oct 2016 15:45:42 -0500 Subject: [PATCH] Added step_func to test. --- .../mozilla/mozbrowser/mozbrowserlocationchange_event.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/wpt/mozilla/tests/mozilla/mozbrowser/mozbrowserlocationchange_event.html b/tests/wpt/mozilla/tests/mozilla/mozbrowser/mozbrowserlocationchange_event.html index c2ba1d3e4e8..3866cc6dadb 100644 --- a/tests/wpt/mozilla/tests/mozilla/mozbrowser/mozbrowserlocationchange_event.html +++ b/tests/wpt/mozilla/tests/mozilla/mozbrowser/mozbrowserlocationchange_event.html @@ -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);