aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-001.https.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-001.https.html')
-rw-r--r--tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-001.https.html48
1 files changed, 0 insertions, 48 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-001.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-001.https.html
deleted file mode 100644
index d18259e4d71..00000000000
--- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-001.https.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="help" href="https://drafts.css-houdini.org/css-paint-api/">
-<link rel="match" href="parse-input-arguments-ref.html">
-<style>
-.container {
- width: 100px;
- height: 100px;
-}
-
-#canvas-geometry {
- background-image: paint(geometry);
-}
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/worklet-reftest.js"></script>
-<body>
-<div id="canvas-geometry" class="container"></div>
-
-<script id="code" type="text/worklet">
-var testsPassed = false;
-try {
- registerPaint('foo', class {
- static get inputArguments() {
- throw Error('failed!');
- }
- });
-} catch(ex) {
- if (ex.name == 'Error' && ex.message == 'failed!')
- testsPassed = true;
-}
-
-registerPaint('geometry', class {
- paint(ctx, geom) {
- if (testsPassed)
- ctx.fillStyle = 'green';
- else
- ctx.fillStyle = 'red';
- ctx.fillRect(0, 0, geom.width, geom.height);
- }
-});
-</script>
-
-<script>
- importWorkletAndTerminateTestAfterAsyncPaint(CSS.paintWorklet, document.getElementById('code').textContent);
-</script>
-</body>
-</html>