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