//////////////////////////////////////////////////////////////////////////////
-static skiagm::GM* F1(void*) { return new SelfTestGM("selftest1", SK_ColorGREEN); }
-static skiagm::GM* F2(void*) { return new SelfTestGM("selftest2", SK_ColorBLUE); }
+// We use translucent colors to make sure we are properly handling cases like
+// those which caused https://code.google.com/p/skia/issues/detail?id=1079
+// ('gm generating spurious pixel_error messages as of r7258')
+static SkColor kTranslucentGreen = 0x7700EE00;
+static SkColor kTranslucentBlue = 0x770000DD;
+
+static skiagm::GM* F1(void*) { return new SelfTestGM("selftest1", kTranslucentGreen); }
+static skiagm::GM* F2(void*) { return new SelfTestGM("selftest2", kTranslucentBlue); }
static skiagm::GMRegistry gR1(F1);
static skiagm::GMRegistry gR2(F2);
+++ /dev/null
-out/Debug/gm --match simpleaaclip_path --config 8888 --config 565 -r gm/tests/tempfiles/aaclip-images --writeJsonSummary gm/tests/outputs/aaclip-readback/output-actual/json-summary.txt
+++ /dev/null
-{
- "actual-results" : {
- "failed" : null,
- "failure-ignored" : null,
- "no-comparison" : null,
- "succeeded" : {
- "simpleaaclip_path_565" : {
- "checksum" : 14145667878792355483
- },
- "simpleaaclip_path_8888" : {
- "checksum" : 3793109275220252029
- }
- }
- },
- "expected-results" : {
- "simpleaaclip_path_565" : {
- "checksums" : [ 14145667878792355483 ],
- "ignore-failure" : false
- },
- "simpleaaclip_path_8888" : {
- "checksums" : [ 3793109275220252029 ],
- "ignore-failure" : false
- }
- }
-}
+++ /dev/null
-reading from gm/tests/tempfiles/aaclip-images
-drawing... simpleaaclip_path [640 480]
-Ran 1 tests: 1 passed, 0 failed, 0 missing reference images
+++ /dev/null
-out/Debug/gm --match simpleaaclip_path --config 8888 --config 565 -w gm/tests/tempfiles/aaclip-images --writeJsonSummary gm/tests/outputs/aaclip-write/output-actual/json-summary.txt
+++ /dev/null
-{
- "actual-results" : {
- "failed" : null,
- "failure-ignored" : null,
- "no-comparison" : {
- "simpleaaclip_path_565" : {
- "checksum" : 14145667878792355483
- },
- "simpleaaclip_path_8888" : {
- "checksum" : 3793109275220252029
- }
- },
- "succeeded" : null
- },
- "expected-results" : null
-}
+++ /dev/null
-writing to gm/tests/tempfiles/aaclip-images
-drawing... simpleaaclip_path [640 480]
-Ran 1 tests: 1 passed, 0 failed, 1 missing reference images
"actual-results" : {
"failed" : {
"565/selftest1" : {
- "checksum" : 9948284449770991531
+ "checksum" : 9512553915271796906
},
"8888/selftest1" : {
- "checksum" : 9948284449770991531
+ "checksum" : 14022967492765711532
}
},
"failure-ignored" : null,
},
"expected-results" : {
"565/selftest1" : {
- "checksums" : [ 8143889227369140487 ],
+ "checksums" : [ 11071285354315388429 ],
"ignore-failure" : false
},
"8888/selftest1" : {
- "checksums" : [ 8143889227369140487 ],
+ "checksums" : [ 16527650414256125612 ],
"ignore-failure" : false
}
}
"actual-results" : {
"failed" : {
"565/selftest1" : {
- "checksum" : 9948284449770991531
+ "checksum" : 9512553915271796906
},
"8888/selftest1" : {
- "checksum" : 9948284449770991531
+ "checksum" : 14022967492765711532
}
},
"failure-ignored" : null,
},
"expected-results" : {
"565/selftest1" : {
- "checksums" : [ 8143889227369140487 ],
+ "checksums" : [ 11071285354315388429 ],
"ignore-failure" : false
},
"8888/selftest1" : {
- "checksums" : [ 8143889227369140487 ],
+ "checksums" : [ 16527650414256125612 ],
"ignore-failure" : false
}
}
"failure-ignored" : null,
"no-comparison" : {
"565/selftest1" : {
- "checksum" : 9948284449770991531
+ "checksum" : 9512553915271796906
},
"8888/selftest1" : {
- "checksum" : 9948284449770991531
+ "checksum" : 14022967492765711532
}
},
"succeeded" : null
"no-comparison" : null,
"succeeded" : {
"565/selftest1" : {
- "checksum" : 9948284449770991531
+ "checksum" : 9512553915271796906
},
"8888/selftest1" : {
- "checksum" : 9948284449770991531
+ "checksum" : 14022967492765711532
}
}
},
"expected-results" : {
"565/selftest1" : {
- "checksums" : [ 9948284449770991531 ],
+ "checksums" : [ 9512553915271796906 ],
"ignore-failure" : false
},
"8888/selftest1" : {
- "checksums" : [ 9948284449770991531 ],
+ "checksums" : [ 14022967492765711532 ],
"ignore-failure" : false
}
}
"no-comparison" : null,
"succeeded" : {
"565/selftest1" : {
- "checksum" : 9948284449770991531
+ "checksum" : 9512553915271796906
},
"8888/selftest1" : {
- "checksum" : 9948284449770991531
+ "checksum" : 14022967492765711532
}
}
},
"expected-results" : {
"565/selftest1" : {
- "checksums" : [ 9948284449770991531 ],
+ "checksums" : [ 9512553915271796906 ],
"ignore-failure" : false
},
"8888/selftest1" : {
- "checksums" : [ 9948284449770991531 ],
+ "checksums" : [ 14022967492765711532 ],
"ignore-failure" : false
}
}
"no-comparison" : null,
"succeeded" : {
"565/selftest1" : {
- "checksum" : 9948284449770991531
+ "checksum" : 9512553915271796906
},
"8888/selftest1" : {
- "checksum" : 9948284449770991531
+ "checksum" : 14022967492765711532
}
}
},
"expected-results" : {
"565/selftest1" : {
- "checksums" : [ 9948284449770991531 ],
+ "checksums" : [ 9512553915271796906 ],
"ignore-failure" : false
},
"8888/selftest1" : {
- "checksums" : [ 9948284449770991531 ],
+ "checksums" : [ 14022967492765711532 ],
"ignore-failure" : false
}
}
"no-comparison" : null,
"succeeded" : {
"565/selftest1" : {
- "checksum" : 9948284449770991531
+ "checksum" : 9512553915271796906
},
"8888/selftest1" : {
- "checksum" : 9948284449770991531
+ "checksum" : 14022967492765711532
}
}
},
"expected-results" : {
"565/selftest1" : {
- "checksums" : [ 9948284449770991531 ],
+ "checksums" : [ 9512553915271796906 ],
"ignore-failure" : false
},
"8888/selftest1" : {
- "checksums" : [ 9948284449770991531 ],
+ "checksums" : [ 14022967492765711532 ],
"ignore-failure" : false
}
}
"failure-ignored" : null,
"no-comparison" : {
"565/selftest1" : {
- "checksum" : 9948284449770991531
+ "checksum" : 9512553915271796906
},
"8888/selftest1" : {
- "checksum" : 9948284449770991531
+ "checksum" : 14022967492765711532
}
},
"succeeded" : null
# section should be empty.
gm_test "--hierarchy --match selftest1 $CONFIGS" "$GM_OUTPUTS/no-readpath"
-# Run a test which generates partially transparent images, write out those
-# images, and read them back in.
-#
-# This test would have caught
-# http://code.google.com/p/skia/issues/detail?id=1079 ('gm generating
-# spurious pixel_error messages as of r7258').
-#
-# TODO(epoger): Disabled pending https://code.google.com/p/skia/issues/detail?id=1142
-# ('gm self-tests: aaclip checksums failing')
-#
-#IMAGEDIR=$GM_TEMPFILES/aaclip-images
-#rm -rf $IMAGEDIR
-#mkdir -p $IMAGEDIR
-#gm_test "--match simpleaaclip_path $CONFIGS -w $IMAGEDIR" "$GM_OUTPUTS/aaclip-write"
-#gm_test "--match simpleaaclip_path $CONFIGS -r $IMAGEDIR" "$GM_OUTPUTS/aaclip-readback"
-
echo "All tests passed."