skia2/experimental/wasm-skp-debugger/tests/debuggerinit.js
Nathaniel Nifong d3d13af110 Add a wasm debugger test that uses a WebGL surface
Change-Id: I9fef343d8ae958ca6382f6a781a31b6a583728bd
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/241756
Commit-Queue: Nathaniel Nifong <nifong@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2019-09-16 19:07:04 +00:00

15 lines
376 B
JavaScript

jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000;
let Debugger = null;
const LoadDebugger = new Promise(function(resolve, reject) {
if (Debugger) {
resolve();
} else {
DebuggerInit({
locateFile: (file) => '/debugger/bin/'+file,
}).ready().then((_Debugger) => {
Debugger = _Debugger;
resolve();
});
}
});