xref: /aosp_15_r20/external/skia/modules/canvaskit/catchExceptionNop.js (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1*c8dee2aaSAndroid Build Coastguard Worker// When running the jasmine tests in google3, this can be a nop because catching
2*c8dee2aaSAndroid Build Coastguard Worker// logs is handled already by the testing framework.
3*c8dee2aaSAndroid Build Coastguard Worker// original here http://shortn/_HeVXSB2tRh
4*c8dee2aaSAndroid Build Coastguard Workerfunction catchException(done, fn) {
5*c8dee2aaSAndroid Build Coastguard Worker    return fn;
6*c8dee2aaSAndroid Build Coastguard Worker}
7*c8dee2aaSAndroid Build Coastguard Worker
8*c8dee2aaSAndroid Build Coastguard Worker// This function would normally upload results to gold, but we don't do that
9*c8dee2aaSAndroid Build Coastguard Worker// when running the test in google3. If necessary, the test could have scuba
10*c8dee2aaSAndroid Build Coastguard Worker// turned on to serve that purpose.
11*c8dee2aaSAndroid Build Coastguard Workerfunction reportSurface(foo, bar, done) {
12*c8dee2aaSAndroid Build Coastguard Worker  done();
13*c8dee2aaSAndroid Build Coastguard Worker}
14