aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-006.https.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-006.https.html')
-rw-r--r--tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-006.https.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-006.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-006.https.html
index 664b7a8c1a0..e99ab05a88d 100644
--- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-006.https.html
+++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-006.https.html
@@ -21,7 +21,8 @@ var testsPassed = false;
try {
registerPaint('', class { });
} catch(ex) {
- if (ex.name == 'TypeError' && ex.message == "Failed to execute 'registerPaint' on 'PaintWorkletGlobalScope': The empty string is not a valid name.")
+ // The empty string is not a valid name.
+ if (ex.name == 'TypeError')
testsPassed = true;
}