[PathKit] Re-create test expectations

See https://skia-review.googlesource.com/c/skia/+/149620

Bug: skia:
Change-Id: I2a8c88e813b5084f667d08317145866b57bbd7ab
Reviewed-on: https://skia-review.googlesource.com/149681
Reviewed-by: Ravi Mistry <rmistry@google.com>
This commit is contained in:
Kevin Lubick 2018-08-27 14:37:47 -04:00
parent 22b21ea25b
commit 1fd58fd34f
4 changed files with 77 additions and 15 deletions

View File

@ -1,4 +1,59 @@
{
"bug8228": {
"p1": [[0, "0x41fd5557", "0x4292aaab"],
[1, "0x41fd5557", "0x41555556"],
[3, "0x41fd5557", "0x41200002", "0x420c0000", "0x41200002", "0x3f3504f3"],
[1, "0x426071c7", "0x41200002"],
[3, "0x426dc71d", "0x41200002", "0x426dc71d", "0x41555556", "0x3f3504f3"],
[1, "0x426dc71d", "0x4292aaab"],
[3, "0x426dc71d", "0x42995555", "0x426071c7", "0x42995555", "0x3f3504f3"],
[1, "0x420c0000", "0x42995555"],
[3, "0x41fd5557", "0x42995555", "0x41fd5557", "0x4292aaab", "0x3f3504f3"],
[5]],
"fillType1": "kWinding_FillType",
"p2": [[0, "0x41200000", "0x41200000"],
[1, "0x41eb2366", "0x41200000"],
[3, "0x41e9d2b6", "0x4127bdec", "0x41e9d2b6", "0x412feb1c", "0x3f7c9333"],
[1, "0x41e9d2b6", "0x42855349"],
[3, "0x41e9d2b6", "0x428b82b9", "0x4201483b", "0x428b82b9", "0x3f3504f3"],
[1, "0x424fa11f", "0x428b82b9"],
[3, "0x425bffff", "0x428b82b9", "0x425bffff", "0x42855349", "0x3f3504f3"],
[1, "0x425bffff", "0x412feb1c"],
[3, "0x425bffff", "0x4127bdec", "0x425b57a7", "0x41200000", "0x3f7c9333"],
[1, "0x4282f24d", "0x41200000"],
[3, "0x42829e21", "0x4127bdec", "0x42829e21", "0x412feb1c", "0x3f7c9333"],
[1, "0x42829e21", "0x42855349"],
[3, "0x42829e21", "0x428b82b9", "0x4288cd91", "0x428b82b9", "0x3f3504f3"],
[1, "0x42affa03", "0x428b82b9"],
[3, "0x42b62973", "0x428b82b9", "0x42b62973", "0x42855349", "0x3f3504f3"],
[1, "0x42b62973", "0x412feb1c"],
[3, "0x42b62973", "0x4127bdec", "0x42b5d547", "0x41200000", "0x3f7c9333"],
[1, "0x42dc0000", "0x41200000"],
[1, "0x42dc0000", "0x42dc0000"],
[1, "0x41200000", "0x42dc0000"],
[1, "0x41200000", "0x41200000"],
[5]],
"fillType2": "kWinding_FillType",
"op": "kIntersect_SkPathOp",
"expectSuccess": "yes",
"expectMatch": "yes",
"succeeded": true,
"out": [[0, "0x41fd5557", "0x428b5eed"],
[3, "0x41ffeb3f", "0x428b82b9", "0x4201483b", "0x428b82b9", "0x3f7e8c92"],
[1, "0x424fa11f", "0x428b82b9"],
[3, "0x425bffff", "0x428b82b9", "0x425bffff", "0x42855349", "0x3f3504f3"],
[1, "0x425bffff", "0x412feb1c"],
[3, "0x425bffff", "0x4127bdec", "0x425b57a7", "0x41200000", "0x3f7c9333"],
[1, "0x426071c7", "0x41200002"],
[3, "0x426dc71d", "0x41200002", "0x426dc71d", "0x41555556", "0x3f3504f3"],
[1, "0x426dc71d", "0x4292aaab"],
[3, "0x426dc71d", "0x42995555", "0x426071c7", "0x42995555", "0x3f3504f3"],
[1, "0x420c0000", "0x42995555"],
[3, "0x41fd5557", "0x42995555", "0x41fd5557", "0x4292aaab", "0x3f3504f3"],
[1, "0x41fd5557", "0x428b5eed"],
[5]],
"fillTypeOut": "kEvenOdd_FillType"
},
"op_4": {
"p1": [[0, "0x40d7ea90", "0x3fa58930"],
[1, "0x40ad3d93", "0x3fa58930"],
@ -1309,10 +1364,10 @@
"expectSuccess": "yes",
"expectMatch": "yes",
"succeeded": true,
"out": [[0, "0x3e3a17e9", "0x3f6650f4"],
"out": [[0, "0x3c5eca1e", "0x3f7f2117"],
[4, "0x3d8974bf", "0x3f76e4fe", "0x3dfc2d2f", "0x3f6e9eec", "0x3e3a17e9", "0x3f6650f4"],
[4, "0x3f869a2b", "0x3ed77554", "0x400526b5", "0x3e2beb3b", "0x401a06a5", "0x3e2453fa"],
[4, "0x40304464", "0x3e1c3d84", "0x401373c4", "0x3ed8c676", "0x3c5eca1e", "0x3f7f2117"],
[4, "0x3d8974bf", "0x3f76e4fe", "0x3dfc2d2f", "0x3f6e9eec", "0x3e3a17e9", "0x3f6650f4"],
[5],
[0, "0x00000000", "0x3f800000"],
[1, "0x3a823135", "0x3f808231"],
@ -1342,21 +1397,22 @@
"expectMatch": "yes",
"succeeded": true,
"out": [[0, "0x3e3a19ed", "0x3ff32856"],
[4, "0x3f869a5e", "0x3fb5dd48", "0x400526b9", "0x3f957d67", "0x401a06a5", "0x3f948a7f"],
[4, "0x40304464", "0x3f9387b1", "0x401373c4", "0x3fb6319d", "0x3c5eca15", "0x3fff908b"],
[4, "0x3d8975f8", "0x3ffb7273", "0x3dfc2fc0", "0x3ff74f5e", "0x3e3a19ed", "0x3ff32856"],
[4, "0x3dfc2fc0", "0x3ff74f5e", "0x3d8975f8", "0x3ffb7273", "0x3c5eca15", "0x3fff908b"],
[4, "0x401373c4", "0x3fb6319d", "0x40304464", "0x3f9387b1", "0x401a06a5", "0x3f948a7f"],
[4, "0x400526b9", "0x3f957d67", "0x3f869a5e", "0x3fb5dd48", "0x3e3a19ed", "0x3ff32856"],
[5],
[0, "0x00000000", "0x40000000"],
[1, "0x3a823105", "0x40004119"],
[1, "0x3a81f508", "0x4000411d"],
[1, "0x3a886142", "0x40004457"],
[4, "0xbd5f2079", "0x40026aa2", "0xbddbb0a6", "0x40048e27", "0xbe2139ad", "0x4006ae52"],
[4, "0xbe8f1187", "0x400bdda1", "0xbeca5965", "0x40115f91", "0xbf007a89", "0x4017330a"],
[4, "0xbf9ca665", "0x403efae9", "0xbf8636ae", "0x405f746e", "0xbf34b724", "0x40677ebc"],
[4, "0xbe9941e9", "0x4071094d", "0x3eaf9206", "0x40582b12", "0x3a886142", "0x40004457"],
[1, "0x3a88a357", "0x40004452"],
[0, "0xbf007a89", "0x4017330a"],
[4, "0xbeca5965", "0x40115f91", "0xbe8f1187", "0x400bdda1", "0xbe2139ad", "0x4006ae52"],
[4, "0xbddbb0a6", "0x40048e27", "0xbd5f2079", "0x40026aa2", "0x3a886142", "0x40004457"],
[4, "0x3eaf9206", "0x40582b12", "0xbe9941e9", "0x4071094d", "0xbf34b724", "0x40677ebc"],
[4, "0xbf8636ae", "0x405f746e", "0xbf9ca665", "0x403efae9", "0xbf007a89", "0x4017330a"],
[5],
[0, "0x3a88a357", "0x40004452"],
[1, "0x3a823105", "0x40004119"],
[4, "0x3ba2d9dd", "0x400019a7", "0x3c12a838", "0x3fffe494", "0x3c53f79e", "0x3fff9604"],
[1, "0x3a81f508", "0x4000411d"],
[1, "0x3a886142", "0x40004457"],
[1, "0x3a88a357", "0x40004452"],
[5]],
"fillTypeOut": "kEvenOdd_FillType"
},

View File

@ -5869,9 +5869,11 @@
"out": [[0, "0x42f60000", "0x44160000"],
[1, "0x00000000", "0x44160000"],
[1, "0x00000000", "0x00000000"],
[1, "0x42f60000", "0x00000000"],
[1, "0x4c00002a", "0x00000000"],
[1, "0x4c00002a", "0x44160000"],
[1, "0x4bfffff0", "0x44160000"],
[1, "0x42f60000", "0x44160000"],
[5]],
"fillTypeOut": "kEvenOdd_FillType"
},
@ -5989,6 +5991,7 @@
[1, "0x42c80000", "0x41f00000"],
[1, "0x42dc0000", "0x41f00000"],
[1, "0x42dc0000", "0x42b40000"],
[1, "0x42dc0000", "0x437f0000"],
[1, "0x42dc0000", "0x4c000006"],
[1, "0x41200000", "0x4c000006"],
[1, "0x41200000", "0x42b40000"],
@ -6095,6 +6098,7 @@
[1, "0x42c80000", "0x41f00000"],
[1, "0x42dc0000", "0x41f00000"],
[1, "0x42dc0000", "0x42b40000"],
[1, "0x42dc0000", "0x437f0000"],
[1, "0x42dc0000", "0x4c000011"],
[1, "0x41200000", "0x4c000011"],
[1, "0x41200000", "0x42b40000"],

View File

@ -125,7 +125,7 @@ describe('PathKit\'s PathOps Behavior', function() {
r.json().then((json)=>{
expect(json).toBeTruthy();
let testNames = Object.keys(json);
expect(testNames.length).toBe(362); // Remove if test data changes a lot.
expect(testNames.length).toBe(363); // Remove if test data changes a lot.
testNames.sort();
for (testName of testNames) {
let test = json[testName];

View File

@ -48,6 +48,8 @@ verifiers {
builders { name: "Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Release-All-Android" }
builders { name: "Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Release-All-Android_Vulkan" }
builders { name: "Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All" }
builders { name: "Test-Debian9-EMCC-GCE-CPU-AVX2-asmjs-Release-All-PathKit" }
builders { name: "Test-Debian9-EMCC-GCE-CPU-AVX2-wasm-Release-All-PathKit" }
builders { name: "Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-ASAN" }
builders { name: "Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-Vulkan" }
builders { name: "Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Release-All" }