blob: 7ade6b01acb0ae15506b2ab770cecbaa18872c3d [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Entry point for all tests.
*/
import {TestTextAnnotationList} from '//ios/web/annotations/resources/text_annotation_list_test.js';
import {TestTextClick} from '//ios/web/annotations/resources/text_click_test.js';
import {TestTextDecoration} from '//ios/web/annotations/resources/text_decoration_test.js';
import {TestTextDecorator} from '//ios/web/annotations/resources/text_decorator_test.js';
import {TestTextDomObserver} from '//ios/web/annotations/resources/text_dom_observer_test.js';
import {TestDomUtils} from '//ios/web/annotations/resources/text_dom_utils_test.js';
import {TestTextExtractor} from '//ios/web/annotations/resources/text_extractor_test.js';
import {TestTextIntersectionObserver} from '//ios/web/annotations/resources/text_intersection_observer_test.js';
import {TestTextTasks} from '//ios/web/annotations/resources/text_tasks_test.js';
import {CrWebApi, gCrWeb} from '//ios/web/public/js_messaging/resources/gcrweb.js';
function testAll() {
return [
...new TestDomUtils().run(),
...new TestTextTasks().run(),
...new TestTextDomObserver().run(),
...new TestTextIntersectionObserver().run(),
...new TestTextExtractor().run(),
...new TestTextDecorator().run(),
...new TestTextClick().run(),
...new TestTextAnnotationList().run(),
...new TestTextDecoration().run(),
];
}
const textTests = new CrWebApi();
textTests.addFunction('testAll', testAll);
gCrWeb.registerApi('textTests', textTests);