From 0c6b2c640a0c0f9069745250083aff0d57e0d0c9 Mon Sep 17 00:00:00 2001 From: Andrea Marchesini Date: Thu, 25 Oct 2018 10:44:26 +0200 Subject: [PATCH] Bug 1501924 - Fix a wrong use of assert_throws in createImageBitmap-invalid-args, r=Ms2ger --- .../2dcontext/imagebitmap/createImageBitmap-invalid-args.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/web-platform/tests/2dcontext/imagebitmap/createImageBitmap-invalid-args.html b/testing/web-platform/tests/2dcontext/imagebitmap/createImageBitmap-invalid-args.html index 39707e83cb03..004b3ca6bf39 100644 --- a/testing/web-platform/tests/2dcontext/imagebitmap/createImageBitmap-invalid-args.html +++ b/testing/web-platform/tests/2dcontext/imagebitmap/createImageBitmap-invalid-args.html @@ -80,7 +80,7 @@ testCases = [ // cause InvalidStateError. // // Note: https://bugs.chromium.org/p/chromium/issues/detail?id=799025 - assert_throws(e, function() { throw e }, new DOMException('', 'InvalidStateError')); + assert_throws("InvalidStateError", () => { throw e }); }); } },