aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-009.https.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-009.https.html')
-rw-r--r--tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-009.https.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-009.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-009.https.html
index 21d004df0ee..b23191ae340 100644
--- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-009.https.html
+++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-009.https.html
@@ -23,7 +23,8 @@ try {
a.prototype = undefined;
registerPaint('foo5', a);
} catch(ex) {
- if (ex.name == 'TypeError' && ex.message == "Failed to execute 'registerPaint' on 'PaintWorkletGlobalScope': The 'prototype' object on the class does not exist.")
+ // The prototype object is undefined, not an object.
+ if (ex.name == 'TypeError')
testsPassed = true;
}