skia2/modules/canvaskit/catchExceptionNop.js
Nathaniel Nifong 4cf2ab6ffe JS files to support running jasmine tests in google3
accompanied by cl/299139086

Change-Id: I9d05aab8171313d2efd2f47c0007b716e4f5a76e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/275763
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Nathaniel Nifong <nifong@google.com>
2020-03-09 14:20:27 +00:00

14 lines
474 B
JavaScript

// When running the jasmine tests in google3, this can be a nop because catching
// logs is handled already by the testing framework.
// original here http://shortn/_HeVXSB2tRh
function catchException(done, fn) {
return fn;
}
// This function would normally upload results to gold, but we don't do that
// when running the test in google3. If necessary, the test could have scuba
// turned on to serve that purpose.
function reportSurface(foo, bar, done) {
done();
}