init_cv.js 590 B

12345678910111213141516171819
  1. // This file is part of OpenCV project.
  2. // It is subject to the license terms in the LICENSE file found in the top-level directory
  3. // of this distribution and at http://opencv.org/license.html.
  4. QUnit.test("init_cv", (assert) => {
  5. if (cv instanceof Promise) {
  6. const done = assert.async();
  7. cv.then((ready_cv) => {
  8. cv = ready_cv;
  9. done();
  10. });
  11. } else if (cv.getBuildInformation === undefined) {
  12. const done = assert.async();
  13. cv['onRuntimeInitialized'] = () => {
  14. done();
  15. }
  16. }
  17. assert.ok(true);
  18. });