2024-06-11 17:01:51 +08:00
|
|
|
// This file is part of OpenCV project.
|
|
|
|
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
|
|
|
// of this distribution and at http://opencv.org/license.html.
|
|
|
|
|
2024-06-17 17:46:10 +08:00
|
|
|
QUnit.test("init_cv", (assert) => {
|
|
|
|
if (cv instanceof Promise) {
|
2024-06-11 17:01:51 +08:00
|
|
|
const done = assert.async();
|
|
|
|
cv.then((ready_cv) => {
|
|
|
|
cv = ready_cv;
|
|
|
|
done();
|
|
|
|
});
|
2024-06-17 17:46:10 +08:00
|
|
|
} else if (cv.getBuildInformation === undefined) {
|
|
|
|
const done = assert.async();
|
|
|
|
cv['onRuntimeInitialized'] = () => {
|
|
|
|
done();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
assert.ok(true);
|
|
|
|
});
|