blob: 967741fafaa9a984b7192b0e76e1d181d34d8eea [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.ui.text.testing;
using fuchsia.ui.text;
/// This interface runs the standard suite of tests on an implementation of TextField.
/// If you maintain a TextField implementation, you should ensure to spin up the
/// text_test_suite package and call RunTest in your integration tests. Each call to
/// RunTest should contain a fresh TextField handle that points to an empty text field.
[Discoverable]
protocol TextFieldTestSuite {
RunTest(fuchsia.ui.text.TextFieldLegacy field, uint64 test_id) -> (bool passed, string:MAX message);
ListTests() -> (vector<TestInfo>:MAX results);
};
/// Indicates if the tests passed, and a human-readable message indicating test failures
/// if not.
struct TestInfo {
uint64 id;
string:MAX name;
};