|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | *
|
5 | 5 | * This code is free software; you can redistribute it and/or modify it
|
|
52 | 52 | import javax.imageio.ImageWriter;
|
53 | 53 | import javax.imageio.stream.ImageOutputStream;
|
54 | 54 |
|
55 |
| -/** |
56 |
| - * @test |
| 55 | +/* |
| 56 | + * @test id=PolySingle |
57 | 57 | * @bug 8191814
|
58 |
| - * @summary Verifies that Marlin rendering generates the same |
59 |
| - * images with and without clipping optimization with all possible |
60 |
| - * stroke (cap/join) and/or dashes or fill modes (EO rules) |
61 |
| - * for paths made of either 9 lines, 4 quads, 2 cubics (random) |
62 |
| - * Note: Use the argument -slow to run more intensive tests (too much time) |
63 |
| - * |
| 58 | + * @summary Runs the test with "-poly" option, single-precision |
64 | 59 | * @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine ClipShapeTest -poly
|
| 60 | + */ |
| 61 | + |
| 62 | +/* |
| 63 | + * @test id=PolyDoDashSingle |
| 64 | + * @bug 8191814 |
| 65 | + * @summary Runs the test with "-poly -doDash" options, single-precision |
65 | 66 | * @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine ClipShapeTest -poly -doDash
|
| 67 | + */ |
| 68 | + |
| 69 | +/* |
| 70 | + * @test id=CubicSingle |
| 71 | + * @bug 8191814 |
| 72 | + * @summary Runs the test with "-cubic" option, single-precision |
66 | 73 | * @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine ClipShapeTest -cubic
|
| 74 | + */ |
| 75 | + |
| 76 | +/* |
| 77 | + * @test id=CubicDoDashSingle |
| 78 | + * @bug 8191814 |
| 79 | + * @summary Runs the test with "-cubic -doDash" options, single-precision |
67 | 80 | * @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine ClipShapeTest -cubic -doDash
|
| 81 | + */ |
| 82 | + |
| 83 | +/* |
| 84 | + * @test id=Poly |
| 85 | + * @bug 8191814 |
| 86 | + * @summary Runs the test with "-poly" option, double-precision |
68 | 87 | * @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.DMarlinRenderingEngine ClipShapeTest -poly
|
| 88 | + */ |
| 89 | + |
| 90 | +/* |
| 91 | + * @test id=PolyDoDash |
| 92 | + * @bug 8191814 |
| 93 | + * @summary Runs the test with "-poly -doDash" options, double-precision |
69 | 94 | * @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.DMarlinRenderingEngine ClipShapeTest -poly -doDash
|
| 95 | + */ |
| 96 | + |
| 97 | +/* |
| 98 | + * @test id=Cubic |
| 99 | + * @bug 8191814 |
| 100 | + * @summary Runs the test with "-cubic" option, double-precision |
70 | 101 | * @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.DMarlinRenderingEngine ClipShapeTest -cubic
|
| 102 | + */ |
| 103 | + |
| 104 | +/* |
| 105 | + * @test id=CubicDoDash |
| 106 | + * @bug 8191814 |
| 107 | + * @summary Runs the test with "-cubic -doDash" options, double-precision |
71 | 108 | * @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.DMarlinRenderingEngine ClipShapeTest -cubic -doDash
|
72 |
| -*/ |
| 109 | + */ |
| 110 | + |
| 111 | +/** |
| 112 | + * Verifies that Marlin rendering generates the same images with and without |
| 113 | + * clipping optimization with all possible stroke (cap/join) and/or dashes or |
| 114 | + * fill modes (EO rules) for paths made of either 9 lines, 4 quads, 2 cubics |
| 115 | + * (random). |
| 116 | + * <p> |
| 117 | + * Note: Use the argument {@code -slow} to run more intensive tests (too much |
| 118 | + * time). |
| 119 | + */ |
73 | 120 | public final class ClipShapeTest {
|
74 | 121 |
|
75 | 122 | // test options:
|
|
0 commit comments